// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/privacy/dlp/v2beta1/dlp.proto

package com.google.privacy.dlp.v2beta1;

/**
 * <pre>
 * Request to search for potentially sensitive info in a list of items
 * and replace it with a default or provided content.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest}
 */
public  final class RedactContentRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.RedactContentRequest)
    RedactContentRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RedactContentRequest.newBuilder() to construct.
  private RedactContentRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RedactContentRequest() {
    items_ = java.util.Collections.emptyList();
    replaceConfigs_ = java.util.Collections.emptyList();
    imageRedactionConfigs_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RedactContentRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.google.privacy.dlp.v2beta1.InspectConfig.Builder subBuilder = null;
            if (inspectConfig_ != null) {
              subBuilder = inspectConfig_.toBuilder();
            }
            inspectConfig_ = input.readMessage(com.google.privacy.dlp.v2beta1.InspectConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(inspectConfig_);
              inspectConfig_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              items_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.ContentItem>();
              mutable_bitField0_ |= 0x00000002;
            }
            items_.add(
                input.readMessage(com.google.privacy.dlp.v2beta1.ContentItem.parser(), extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              replaceConfigs_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig>();
              mutable_bitField0_ |= 0x00000004;
            }
            replaceConfigs_.add(
                input.readMessage(com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              imageRedactionConfigs_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig>();
              mutable_bitField0_ |= 0x00000008;
            }
            imageRedactionConfigs_.add(
                input.readMessage(com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.parser(), extensionRegistry));
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        items_ = java.util.Collections.unmodifiableList(items_);
      }
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        replaceConfigs_ = java.util.Collections.unmodifiableList(replaceConfigs_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        imageRedactionConfigs_ = java.util.Collections.unmodifiableList(imageRedactionConfigs_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.privacy.dlp.v2beta1.RedactContentRequest.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.Builder.class);
  }

  public interface ReplaceConfigOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    boolean hasInfoType();
    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    com.google.privacy.dlp.v2beta1.InfoType getInfoType();
    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder();

    /**
     * <pre>
     * Content replacing sensitive information of given type. Max 256 chars.
     * </pre>
     *
     * <code>string replace_with = 2;</code>
     */
    java.lang.String getReplaceWith();
    /**
     * <pre>
     * Content replacing sensitive information of given type. Max 256 chars.
     * </pre>
     *
     * <code>string replace_with = 2;</code>
     */
    com.google.protobuf.ByteString
        getReplaceWithBytes();
  }
  /**
   * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig}
   */
  public  static final class ReplaceConfig extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)
      ReplaceConfigOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ReplaceConfig.newBuilder() to construct.
    private ReplaceConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ReplaceConfig() {
      replaceWith_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ReplaceConfig(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.privacy.dlp.v2beta1.InfoType.Builder subBuilder = null;
              if (infoType_ != null) {
                subBuilder = infoType_.toBuilder();
              }
              infoType_ = input.readMessage(com.google.privacy.dlp.v2beta1.InfoType.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(infoType_);
                infoType_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              replaceWith_ = s;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ReplaceConfig_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ReplaceConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder.class);
    }

    public static final int INFO_TYPE_FIELD_NUMBER = 1;
    private com.google.privacy.dlp.v2beta1.InfoType infoType_;
    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public boolean hasInfoType() {
      return infoType_ != null;
    }
    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
      return infoType_ == null ? com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
    }
    /**
     * <pre>
     * Type of information to replace. Only one ReplaceConfig per info_type
     * should be provided. If ReplaceConfig does not have an info_type, the DLP
     * API matches it against all info_types that are found but not specified in
     * another ReplaceConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
      return getInfoType();
    }

    public static final int REPLACE_WITH_FIELD_NUMBER = 2;
    private volatile java.lang.Object replaceWith_;
    /**
     * <pre>
     * Content replacing sensitive information of given type. Max 256 chars.
     * </pre>
     *
     * <code>string replace_with = 2;</code>
     */
    public java.lang.String getReplaceWith() {
      java.lang.Object ref = replaceWith_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        replaceWith_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Content replacing sensitive information of given type. Max 256 chars.
     * </pre>
     *
     * <code>string replace_with = 2;</code>
     */
    public com.google.protobuf.ByteString
        getReplaceWithBytes() {
      java.lang.Object ref = replaceWith_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        replaceWith_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (infoType_ != null) {
        output.writeMessage(1, getInfoType());
      }
      if (!getReplaceWithBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, replaceWith_);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (infoType_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getInfoType());
      }
      if (!getReplaceWithBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replaceWith_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig other = (com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig) obj;

      boolean result = true;
      result = result && (hasInfoType() == other.hasInfoType());
      if (hasInfoType()) {
        result = result && getInfoType()
            .equals(other.getInfoType());
      }
      result = result && getReplaceWith()
          .equals(other.getReplaceWith());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasInfoType()) {
        hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getInfoType().hashCode();
      }
      hash = (37 * hash) + REPLACE_WITH_FIELD_NUMBER;
      hash = (53 * hash) + getReplaceWith().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ReplaceConfig_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ReplaceConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder.class);
      }

      // Construct using com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (infoTypeBuilder_ == null) {
          infoType_ = null;
        } else {
          infoType_ = null;
          infoTypeBuilder_ = null;
        }
        replaceWith_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ReplaceConfig_descriptor;
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig getDefaultInstanceForType() {
        return com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.getDefaultInstance();
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig build() {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig buildPartial() {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig result = new com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig(this);
        if (infoTypeBuilder_ == null) {
          result.infoType_ = infoType_;
        } else {
          result.infoType_ = infoTypeBuilder_.build();
        }
        result.replaceWith_ = replaceWith_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig) {
          return mergeFrom((com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig other) {
        if (other == com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.getDefaultInstance()) return this;
        if (other.hasInfoType()) {
          mergeInfoType(other.getInfoType());
        }
        if (!other.getReplaceWith().isEmpty()) {
          replaceWith_ = other.replaceWith_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.privacy.dlp.v2beta1.InfoType infoType_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder> infoTypeBuilder_;
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public boolean hasInfoType() {
        return infoTypeBuilder_ != null || infoType_ != null;
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
        if (infoTypeBuilder_ == null) {
          return infoType_ == null ? com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
        } else {
          return infoTypeBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder setInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
        if (infoTypeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          infoType_ = value;
          onChanged();
        } else {
          infoTypeBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder setInfoType(
          com.google.privacy.dlp.v2beta1.InfoType.Builder builderForValue) {
        if (infoTypeBuilder_ == null) {
          infoType_ = builderForValue.build();
          onChanged();
        } else {
          infoTypeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder mergeInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
        if (infoTypeBuilder_ == null) {
          if (infoType_ != null) {
            infoType_ =
              com.google.privacy.dlp.v2beta1.InfoType.newBuilder(infoType_).mergeFrom(value).buildPartial();
          } else {
            infoType_ = value;
          }
          onChanged();
        } else {
          infoTypeBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder clearInfoType() {
        if (infoTypeBuilder_ == null) {
          infoType_ = null;
          onChanged();
        } else {
          infoType_ = null;
          infoTypeBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoType.Builder getInfoTypeBuilder() {
        
        onChanged();
        return getInfoTypeFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
        if (infoTypeBuilder_ != null) {
          return infoTypeBuilder_.getMessageOrBuilder();
        } else {
          return infoType_ == null ?
              com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
        }
      }
      /**
       * <pre>
       * Type of information to replace. Only one ReplaceConfig per info_type
       * should be provided. If ReplaceConfig does not have an info_type, the DLP
       * API matches it against all info_types that are found but not specified in
       * another ReplaceConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder> 
          getInfoTypeFieldBuilder() {
        if (infoTypeBuilder_ == null) {
          infoTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder>(
                  getInfoType(),
                  getParentForChildren(),
                  isClean());
          infoType_ = null;
        }
        return infoTypeBuilder_;
      }

      private java.lang.Object replaceWith_ = "";
      /**
       * <pre>
       * Content replacing sensitive information of given type. Max 256 chars.
       * </pre>
       *
       * <code>string replace_with = 2;</code>
       */
      public java.lang.String getReplaceWith() {
        java.lang.Object ref = replaceWith_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          replaceWith_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Content replacing sensitive information of given type. Max 256 chars.
       * </pre>
       *
       * <code>string replace_with = 2;</code>
       */
      public com.google.protobuf.ByteString
          getReplaceWithBytes() {
        java.lang.Object ref = replaceWith_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          replaceWith_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Content replacing sensitive information of given type. Max 256 chars.
       * </pre>
       *
       * <code>string replace_with = 2;</code>
       */
      public Builder setReplaceWith(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        replaceWith_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Content replacing sensitive information of given type. Max 256 chars.
       * </pre>
       *
       * <code>string replace_with = 2;</code>
       */
      public Builder clearReplaceWith() {
        
        replaceWith_ = getDefaultInstance().getReplaceWith();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Content replacing sensitive information of given type. Max 256 chars.
       * </pre>
       *
       * <code>string replace_with = 2;</code>
       */
      public Builder setReplaceWithBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        replaceWith_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)
    }

    // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig)
    private static final com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig();
    }

    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ReplaceConfig>
        PARSER = new com.google.protobuf.AbstractParser<ReplaceConfig>() {
      public ReplaceConfig parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ReplaceConfig(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<ReplaceConfig> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ReplaceConfig> getParserForType() {
      return PARSER;
    }

    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ImageRedactionConfigOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    boolean hasInfoType();
    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    com.google.privacy.dlp.v2beta1.InfoType getInfoType();
    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder();

    /**
     * <pre>
     * If true, all text found in the image, regardless whether it matches an
     * info_type, is redacted.
     * </pre>
     *
     * <code>bool redact_all_text = 2;</code>
     */
    boolean getRedactAllText();

    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    boolean hasRedactionColor();
    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    com.google.privacy.dlp.v2beta1.Color getRedactionColor();
    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    com.google.privacy.dlp.v2beta1.ColorOrBuilder getRedactionColorOrBuilder();

    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.TargetCase getTargetCase();
  }
  /**
   * <pre>
   * Configuration for determining how redaction of images should occur.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig}
   */
  public  static final class ImageRedactionConfig extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)
      ImageRedactionConfigOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ImageRedactionConfig.newBuilder() to construct.
    private ImageRedactionConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ImageRedactionConfig() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ImageRedactionConfig(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.privacy.dlp.v2beta1.InfoType.Builder subBuilder = null;
              if (targetCase_ == 1) {
                subBuilder = ((com.google.privacy.dlp.v2beta1.InfoType) target_).toBuilder();
              }
              target_ =
                  input.readMessage(com.google.privacy.dlp.v2beta1.InfoType.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.InfoType) target_);
                target_ = subBuilder.buildPartial();
              }
              targetCase_ = 1;
              break;
            }
            case 16: {
              targetCase_ = 2;
              target_ = input.readBool();
              break;
            }
            case 26: {
              com.google.privacy.dlp.v2beta1.Color.Builder subBuilder = null;
              if (redactionColor_ != null) {
                subBuilder = redactionColor_.toBuilder();
              }
              redactionColor_ = input.readMessage(com.google.privacy.dlp.v2beta1.Color.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(redactionColor_);
                redactionColor_ = subBuilder.buildPartial();
              }

              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ImageRedactionConfig_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ImageRedactionConfig_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder.class);
    }

    private int targetCase_ = 0;
    private java.lang.Object target_;
    public enum TargetCase
        implements com.google.protobuf.Internal.EnumLite {
      INFO_TYPE(1),
      REDACT_ALL_TEXT(2),
      TARGET_NOT_SET(0);
      private final int value;
      private TargetCase(int value) {
        this.value = value;
      }
      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static TargetCase valueOf(int value) {
        return forNumber(value);
      }

      public static TargetCase forNumber(int value) {
        switch (value) {
          case 1: return INFO_TYPE;
          case 2: return REDACT_ALL_TEXT;
          case 0: return TARGET_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public TargetCase
    getTargetCase() {
      return TargetCase.forNumber(
          targetCase_);
    }

    public static final int INFO_TYPE_FIELD_NUMBER = 1;
    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public boolean hasInfoType() {
      return targetCase_ == 1;
    }
    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
      if (targetCase_ == 1) {
         return (com.google.privacy.dlp.v2beta1.InfoType) target_;
      }
      return com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
    }
    /**
     * <pre>
     * Only one per info_type should be provided per request. If not
     * specified, and redact_all_text is false, the DLP API will redact all
     * text that it matches against all info_types that are found, but not
     * specified in another ImageRedactionConfig.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
      if (targetCase_ == 1) {
         return (com.google.privacy.dlp.v2beta1.InfoType) target_;
      }
      return com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
    }

    public static final int REDACT_ALL_TEXT_FIELD_NUMBER = 2;
    /**
     * <pre>
     * If true, all text found in the image, regardless whether it matches an
     * info_type, is redacted.
     * </pre>
     *
     * <code>bool redact_all_text = 2;</code>
     */
    public boolean getRedactAllText() {
      if (targetCase_ == 2) {
        return (java.lang.Boolean) target_;
      }
      return false;
    }

    public static final int REDACTION_COLOR_FIELD_NUMBER = 3;
    private com.google.privacy.dlp.v2beta1.Color redactionColor_;
    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    public boolean hasRedactionColor() {
      return redactionColor_ != null;
    }
    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.Color getRedactionColor() {
      return redactionColor_ == null ? com.google.privacy.dlp.v2beta1.Color.getDefaultInstance() : redactionColor_;
    }
    /**
     * <pre>
     * The color to use when redacting content from an image. If not specified,
     * the default is black.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.ColorOrBuilder getRedactionColorOrBuilder() {
      return getRedactionColor();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (targetCase_ == 1) {
        output.writeMessage(1, (com.google.privacy.dlp.v2beta1.InfoType) target_);
      }
      if (targetCase_ == 2) {
        output.writeBool(
            2, (boolean)((java.lang.Boolean) target_));
      }
      if (redactionColor_ != null) {
        output.writeMessage(3, getRedactionColor());
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (targetCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (com.google.privacy.dlp.v2beta1.InfoType) target_);
      }
      if (targetCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(
              2, (boolean)((java.lang.Boolean) target_));
      }
      if (redactionColor_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getRedactionColor());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig other = (com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig) obj;

      boolean result = true;
      result = result && (hasRedactionColor() == other.hasRedactionColor());
      if (hasRedactionColor()) {
        result = result && getRedactionColor()
            .equals(other.getRedactionColor());
      }
      result = result && getTargetCase().equals(
          other.getTargetCase());
      if (!result) return false;
      switch (targetCase_) {
        case 1:
          result = result && getInfoType()
              .equals(other.getInfoType());
          break;
        case 2:
          result = result && (getRedactAllText()
              == other.getRedactAllText());
          break;
        case 0:
        default:
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasRedactionColor()) {
        hash = (37 * hash) + REDACTION_COLOR_FIELD_NUMBER;
        hash = (53 * hash) + getRedactionColor().hashCode();
      }
      switch (targetCase_) {
        case 1:
          hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
          hash = (53 * hash) + getInfoType().hashCode();
          break;
        case 2:
          hash = (37 * hash) + REDACT_ALL_TEXT_FIELD_NUMBER;
          hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
              getRedactAllText());
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Configuration for determining how redaction of images should occur.
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ImageRedactionConfig_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ImageRedactionConfig_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder.class);
      }

      // Construct using com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (redactionColorBuilder_ == null) {
          redactionColor_ = null;
        } else {
          redactionColor_ = null;
          redactionColorBuilder_ = null;
        }
        targetCase_ = 0;
        target_ = null;
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_ImageRedactionConfig_descriptor;
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig getDefaultInstanceForType() {
        return com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.getDefaultInstance();
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig build() {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig buildPartial() {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig result = new com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig(this);
        if (targetCase_ == 1) {
          if (infoTypeBuilder_ == null) {
            result.target_ = target_;
          } else {
            result.target_ = infoTypeBuilder_.build();
          }
        }
        if (targetCase_ == 2) {
          result.target_ = target_;
        }
        if (redactionColorBuilder_ == null) {
          result.redactionColor_ = redactionColor_;
        } else {
          result.redactionColor_ = redactionColorBuilder_.build();
        }
        result.targetCase_ = targetCase_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig) {
          return mergeFrom((com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig other) {
        if (other == com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.getDefaultInstance()) return this;
        if (other.hasRedactionColor()) {
          mergeRedactionColor(other.getRedactionColor());
        }
        switch (other.getTargetCase()) {
          case INFO_TYPE: {
            mergeInfoType(other.getInfoType());
            break;
          }
          case REDACT_ALL_TEXT: {
            setRedactAllText(other.getRedactAllText());
            break;
          }
          case TARGET_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int targetCase_ = 0;
      private java.lang.Object target_;
      public TargetCase
          getTargetCase() {
        return TargetCase.forNumber(
            targetCase_);
      }

      public Builder clearTarget() {
        targetCase_ = 0;
        target_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder> infoTypeBuilder_;
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public boolean hasInfoType() {
        return targetCase_ == 1;
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
        if (infoTypeBuilder_ == null) {
          if (targetCase_ == 1) {
            return (com.google.privacy.dlp.v2beta1.InfoType) target_;
          }
          return com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
        } else {
          if (targetCase_ == 1) {
            return infoTypeBuilder_.getMessage();
          }
          return com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder setInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
        if (infoTypeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          target_ = value;
          onChanged();
        } else {
          infoTypeBuilder_.setMessage(value);
        }
        targetCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder setInfoType(
          com.google.privacy.dlp.v2beta1.InfoType.Builder builderForValue) {
        if (infoTypeBuilder_ == null) {
          target_ = builderForValue.build();
          onChanged();
        } else {
          infoTypeBuilder_.setMessage(builderForValue.build());
        }
        targetCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder mergeInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
        if (infoTypeBuilder_ == null) {
          if (targetCase_ == 1 &&
              target_ != com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance()) {
            target_ = com.google.privacy.dlp.v2beta1.InfoType.newBuilder((com.google.privacy.dlp.v2beta1.InfoType) target_)
                .mergeFrom(value).buildPartial();
          } else {
            target_ = value;
          }
          onChanged();
        } else {
          if (targetCase_ == 1) {
            infoTypeBuilder_.mergeFrom(value);
          }
          infoTypeBuilder_.setMessage(value);
        }
        targetCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public Builder clearInfoType() {
        if (infoTypeBuilder_ == null) {
          if (targetCase_ == 1) {
            targetCase_ = 0;
            target_ = null;
            onChanged();
          }
        } else {
          if (targetCase_ == 1) {
            targetCase_ = 0;
            target_ = null;
          }
          infoTypeBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoType.Builder getInfoTypeBuilder() {
        return getInfoTypeFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
        if ((targetCase_ == 1) && (infoTypeBuilder_ != null)) {
          return infoTypeBuilder_.getMessageOrBuilder();
        } else {
          if (targetCase_ == 1) {
            return (com.google.privacy.dlp.v2beta1.InfoType) target_;
          }
          return com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Only one per info_type should be provided per request. If not
       * specified, and redact_all_text is false, the DLP API will redact all
       * text that it matches against all info_types that are found, but not
       * specified in another ImageRedactionConfig.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder> 
          getInfoTypeFieldBuilder() {
        if (infoTypeBuilder_ == null) {
          if (!(targetCase_ == 1)) {
            target_ = com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance();
          }
          infoTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder>(
                  (com.google.privacy.dlp.v2beta1.InfoType) target_,
                  getParentForChildren(),
                  isClean());
          target_ = null;
        }
        targetCase_ = 1;
        onChanged();;
        return infoTypeBuilder_;
      }

      /**
       * <pre>
       * If true, all text found in the image, regardless whether it matches an
       * info_type, is redacted.
       * </pre>
       *
       * <code>bool redact_all_text = 2;</code>
       */
      public boolean getRedactAllText() {
        if (targetCase_ == 2) {
          return (java.lang.Boolean) target_;
        }
        return false;
      }
      /**
       * <pre>
       * If true, all text found in the image, regardless whether it matches an
       * info_type, is redacted.
       * </pre>
       *
       * <code>bool redact_all_text = 2;</code>
       */
      public Builder setRedactAllText(boolean value) {
        targetCase_ = 2;
        target_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * If true, all text found in the image, regardless whether it matches an
       * info_type, is redacted.
       * </pre>
       *
       * <code>bool redact_all_text = 2;</code>
       */
      public Builder clearRedactAllText() {
        if (targetCase_ == 2) {
          targetCase_ = 0;
          target_ = null;
          onChanged();
        }
        return this;
      }

      private com.google.privacy.dlp.v2beta1.Color redactionColor_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.Color, com.google.privacy.dlp.v2beta1.Color.Builder, com.google.privacy.dlp.v2beta1.ColorOrBuilder> redactionColorBuilder_;
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public boolean hasRedactionColor() {
        return redactionColorBuilder_ != null || redactionColor_ != null;
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public com.google.privacy.dlp.v2beta1.Color getRedactionColor() {
        if (redactionColorBuilder_ == null) {
          return redactionColor_ == null ? com.google.privacy.dlp.v2beta1.Color.getDefaultInstance() : redactionColor_;
        } else {
          return redactionColorBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public Builder setRedactionColor(com.google.privacy.dlp.v2beta1.Color value) {
        if (redactionColorBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          redactionColor_ = value;
          onChanged();
        } else {
          redactionColorBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public Builder setRedactionColor(
          com.google.privacy.dlp.v2beta1.Color.Builder builderForValue) {
        if (redactionColorBuilder_ == null) {
          redactionColor_ = builderForValue.build();
          onChanged();
        } else {
          redactionColorBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public Builder mergeRedactionColor(com.google.privacy.dlp.v2beta1.Color value) {
        if (redactionColorBuilder_ == null) {
          if (redactionColor_ != null) {
            redactionColor_ =
              com.google.privacy.dlp.v2beta1.Color.newBuilder(redactionColor_).mergeFrom(value).buildPartial();
          } else {
            redactionColor_ = value;
          }
          onChanged();
        } else {
          redactionColorBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public Builder clearRedactionColor() {
        if (redactionColorBuilder_ == null) {
          redactionColor_ = null;
          onChanged();
        } else {
          redactionColor_ = null;
          redactionColorBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public com.google.privacy.dlp.v2beta1.Color.Builder getRedactionColorBuilder() {
        
        onChanged();
        return getRedactionColorFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      public com.google.privacy.dlp.v2beta1.ColorOrBuilder getRedactionColorOrBuilder() {
        if (redactionColorBuilder_ != null) {
          return redactionColorBuilder_.getMessageOrBuilder();
        } else {
          return redactionColor_ == null ?
              com.google.privacy.dlp.v2beta1.Color.getDefaultInstance() : redactionColor_;
        }
      }
      /**
       * <pre>
       * The color to use when redacting content from an image. If not specified,
       * the default is black.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2beta1.Color redaction_color = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2beta1.Color, com.google.privacy.dlp.v2beta1.Color.Builder, com.google.privacy.dlp.v2beta1.ColorOrBuilder> 
          getRedactionColorFieldBuilder() {
        if (redactionColorBuilder_ == null) {
          redactionColorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2beta1.Color, com.google.privacy.dlp.v2beta1.Color.Builder, com.google.privacy.dlp.v2beta1.ColorOrBuilder>(
                  getRedactionColor(),
                  getParentForChildren(),
                  isClean());
          redactionColor_ = null;
        }
        return redactionColorBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)
    }

    // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig)
    private static final com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig();
    }

    public static com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ImageRedactionConfig>
        PARSER = new com.google.protobuf.AbstractParser<ImageRedactionConfig>() {
      public ImageRedactionConfig parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ImageRedactionConfig(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<ImageRedactionConfig> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<ImageRedactionConfig> getParserForType() {
      return PARSER;
    }

    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  public static final int INSPECT_CONFIG_FIELD_NUMBER = 1;
  private com.google.privacy.dlp.v2beta1.InspectConfig inspectConfig_;
  /**
   * <pre>
   * Configuration for the inspector.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
   */
  public boolean hasInspectConfig() {
    return inspectConfig_ != null;
  }
  /**
   * <pre>
   * Configuration for the inspector.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
   */
  public com.google.privacy.dlp.v2beta1.InspectConfig getInspectConfig() {
    return inspectConfig_ == null ? com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
  }
  /**
   * <pre>
   * Configuration for the inspector.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
   */
  public com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder getInspectConfigOrBuilder() {
    return getInspectConfig();
  }

  public static final int ITEMS_FIELD_NUMBER = 2;
  private java.util.List<com.google.privacy.dlp.v2beta1.ContentItem> items_;
  /**
   * <pre>
   * The list of items to inspect. Up to 100 are allowed per request.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2beta1.ContentItem> getItemsList() {
    return items_;
  }
  /**
   * <pre>
   * The list of items to inspect. Up to 100 are allowed per request.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2beta1.ContentItemOrBuilder> 
      getItemsOrBuilderList() {
    return items_;
  }
  /**
   * <pre>
   * The list of items to inspect. Up to 100 are allowed per request.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
   */
  public int getItemsCount() {
    return items_.size();
  }
  /**
   * <pre>
   * The list of items to inspect. Up to 100 are allowed per request.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.ContentItem getItems(int index) {
    return items_.get(index);
  }
  /**
   * <pre>
   * The list of items to inspect. Up to 100 are allowed per request.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.ContentItemOrBuilder getItemsOrBuilder(
      int index) {
    return items_.get(index);
  }

  public static final int REPLACE_CONFIGS_FIELD_NUMBER = 3;
  private java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig> replaceConfigs_;
  /**
   * <pre>
   * The strings to replace findings text findings with. Must specify at least
   * one of these or one ImageRedactionConfig if redacting images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig> getReplaceConfigsList() {
    return replaceConfigs_;
  }
  /**
   * <pre>
   * The strings to replace findings text findings with. Must specify at least
   * one of these or one ImageRedactionConfig if redacting images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder> 
      getReplaceConfigsOrBuilderList() {
    return replaceConfigs_;
  }
  /**
   * <pre>
   * The strings to replace findings text findings with. Must specify at least
   * one of these or one ImageRedactionConfig if redacting images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
   */
  public int getReplaceConfigsCount() {
    return replaceConfigs_.size();
  }
  /**
   * <pre>
   * The strings to replace findings text findings with. Must specify at least
   * one of these or one ImageRedactionConfig if redacting images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig getReplaceConfigs(int index) {
    return replaceConfigs_.get(index);
  }
  /**
   * <pre>
   * The strings to replace findings text findings with. Must specify at least
   * one of these or one ImageRedactionConfig if redacting images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder getReplaceConfigsOrBuilder(
      int index) {
    return replaceConfigs_.get(index);
  }

  public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER = 4;
  private java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig> imageRedactionConfigs_;
  /**
   * <pre>
   * The configuration for specifying what content to redact from images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig> getImageRedactionConfigsList() {
    return imageRedactionConfigs_;
  }
  /**
   * <pre>
   * The configuration for specifying what content to redact from images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder> 
      getImageRedactionConfigsOrBuilderList() {
    return imageRedactionConfigs_;
  }
  /**
   * <pre>
   * The configuration for specifying what content to redact from images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
   */
  public int getImageRedactionConfigsCount() {
    return imageRedactionConfigs_.size();
  }
  /**
   * <pre>
   * The configuration for specifying what content to redact from images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig getImageRedactionConfigs(int index) {
    return imageRedactionConfigs_.get(index);
  }
  /**
   * <pre>
   * The configuration for specifying what content to redact from images.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder getImageRedactionConfigsOrBuilder(
      int index) {
    return imageRedactionConfigs_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (inspectConfig_ != null) {
      output.writeMessage(1, getInspectConfig());
    }
    for (int i = 0; i < items_.size(); i++) {
      output.writeMessage(2, items_.get(i));
    }
    for (int i = 0; i < replaceConfigs_.size(); i++) {
      output.writeMessage(3, replaceConfigs_.get(i));
    }
    for (int i = 0; i < imageRedactionConfigs_.size(); i++) {
      output.writeMessage(4, imageRedactionConfigs_.get(i));
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (inspectConfig_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getInspectConfig());
    }
    for (int i = 0; i < items_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, items_.get(i));
    }
    for (int i = 0; i < replaceConfigs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, replaceConfigs_.get(i));
    }
    for (int i = 0; i < imageRedactionConfigs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, imageRedactionConfigs_.get(i));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2beta1.RedactContentRequest other = (com.google.privacy.dlp.v2beta1.RedactContentRequest) obj;

    boolean result = true;
    result = result && (hasInspectConfig() == other.hasInspectConfig());
    if (hasInspectConfig()) {
      result = result && getInspectConfig()
          .equals(other.getInspectConfig());
    }
    result = result && getItemsList()
        .equals(other.getItemsList());
    result = result && getReplaceConfigsList()
        .equals(other.getReplaceConfigsList());
    result = result && getImageRedactionConfigsList()
        .equals(other.getImageRedactionConfigsList());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasInspectConfig()) {
      hash = (37 * hash) + INSPECT_CONFIG_FIELD_NUMBER;
      hash = (53 * hash) + getInspectConfig().hashCode();
    }
    if (getItemsCount() > 0) {
      hash = (37 * hash) + ITEMS_FIELD_NUMBER;
      hash = (53 * hash) + getItemsList().hashCode();
    }
    if (getReplaceConfigsCount() > 0) {
      hash = (37 * hash) + REPLACE_CONFIGS_FIELD_NUMBER;
      hash = (53 * hash) + getReplaceConfigsList().hashCode();
    }
    if (getImageRedactionConfigsCount() > 0) {
      hash = (37 * hash) + IMAGE_REDACTION_CONFIGS_FIELD_NUMBER;
      hash = (53 * hash) + getImageRedactionConfigsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RedactContentRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.privacy.dlp.v2beta1.RedactContentRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * Request to search for potentially sensitive info in a list of items
   * and replace it with a default or provided content.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2beta1.RedactContentRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.RedactContentRequest)
      com.google.privacy.dlp.v2beta1.RedactContentRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2beta1.RedactContentRequest.class, com.google.privacy.dlp.v2beta1.RedactContentRequest.Builder.class);
    }

    // Construct using com.google.privacy.dlp.v2beta1.RedactContentRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getItemsFieldBuilder();
        getReplaceConfigsFieldBuilder();
        getImageRedactionConfigsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      if (inspectConfigBuilder_ == null) {
        inspectConfig_ = null;
      } else {
        inspectConfig_ = null;
        inspectConfigBuilder_ = null;
      }
      if (itemsBuilder_ == null) {
        items_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        itemsBuilder_.clear();
      }
      if (replaceConfigsBuilder_ == null) {
        replaceConfigs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        replaceConfigsBuilder_.clear();
      }
      if (imageRedactionConfigsBuilder_ == null) {
        imageRedactionConfigs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        imageRedactionConfigsBuilder_.clear();
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RedactContentRequest_descriptor;
    }

    public com.google.privacy.dlp.v2beta1.RedactContentRequest getDefaultInstanceForType() {
      return com.google.privacy.dlp.v2beta1.RedactContentRequest.getDefaultInstance();
    }

    public com.google.privacy.dlp.v2beta1.RedactContentRequest build() {
      com.google.privacy.dlp.v2beta1.RedactContentRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.privacy.dlp.v2beta1.RedactContentRequest buildPartial() {
      com.google.privacy.dlp.v2beta1.RedactContentRequest result = new com.google.privacy.dlp.v2beta1.RedactContentRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (inspectConfigBuilder_ == null) {
        result.inspectConfig_ = inspectConfig_;
      } else {
        result.inspectConfig_ = inspectConfigBuilder_.build();
      }
      if (itemsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          items_ = java.util.Collections.unmodifiableList(items_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.items_ = items_;
      } else {
        result.items_ = itemsBuilder_.build();
      }
      if (replaceConfigsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          replaceConfigs_ = java.util.Collections.unmodifiableList(replaceConfigs_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.replaceConfigs_ = replaceConfigs_;
      } else {
        result.replaceConfigs_ = replaceConfigsBuilder_.build();
      }
      if (imageRedactionConfigsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          imageRedactionConfigs_ = java.util.Collections.unmodifiableList(imageRedactionConfigs_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.imageRedactionConfigs_ = imageRedactionConfigs_;
      } else {
        result.imageRedactionConfigs_ = imageRedactionConfigsBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.privacy.dlp.v2beta1.RedactContentRequest) {
        return mergeFrom((com.google.privacy.dlp.v2beta1.RedactContentRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2beta1.RedactContentRequest other) {
      if (other == com.google.privacy.dlp.v2beta1.RedactContentRequest.getDefaultInstance()) return this;
      if (other.hasInspectConfig()) {
        mergeInspectConfig(other.getInspectConfig());
      }
      if (itemsBuilder_ == null) {
        if (!other.items_.isEmpty()) {
          if (items_.isEmpty()) {
            items_ = other.items_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureItemsIsMutable();
            items_.addAll(other.items_);
          }
          onChanged();
        }
      } else {
        if (!other.items_.isEmpty()) {
          if (itemsBuilder_.isEmpty()) {
            itemsBuilder_.dispose();
            itemsBuilder_ = null;
            items_ = other.items_;
            bitField0_ = (bitField0_ & ~0x00000002);
            itemsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getItemsFieldBuilder() : null;
          } else {
            itemsBuilder_.addAllMessages(other.items_);
          }
        }
      }
      if (replaceConfigsBuilder_ == null) {
        if (!other.replaceConfigs_.isEmpty()) {
          if (replaceConfigs_.isEmpty()) {
            replaceConfigs_ = other.replaceConfigs_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureReplaceConfigsIsMutable();
            replaceConfigs_.addAll(other.replaceConfigs_);
          }
          onChanged();
        }
      } else {
        if (!other.replaceConfigs_.isEmpty()) {
          if (replaceConfigsBuilder_.isEmpty()) {
            replaceConfigsBuilder_.dispose();
            replaceConfigsBuilder_ = null;
            replaceConfigs_ = other.replaceConfigs_;
            bitField0_ = (bitField0_ & ~0x00000004);
            replaceConfigsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getReplaceConfigsFieldBuilder() : null;
          } else {
            replaceConfigsBuilder_.addAllMessages(other.replaceConfigs_);
          }
        }
      }
      if (imageRedactionConfigsBuilder_ == null) {
        if (!other.imageRedactionConfigs_.isEmpty()) {
          if (imageRedactionConfigs_.isEmpty()) {
            imageRedactionConfigs_ = other.imageRedactionConfigs_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureImageRedactionConfigsIsMutable();
            imageRedactionConfigs_.addAll(other.imageRedactionConfigs_);
          }
          onChanged();
        }
      } else {
        if (!other.imageRedactionConfigs_.isEmpty()) {
          if (imageRedactionConfigsBuilder_.isEmpty()) {
            imageRedactionConfigsBuilder_.dispose();
            imageRedactionConfigsBuilder_ = null;
            imageRedactionConfigs_ = other.imageRedactionConfigs_;
            bitField0_ = (bitField0_ & ~0x00000008);
            imageRedactionConfigsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getImageRedactionConfigsFieldBuilder() : null;
          } else {
            imageRedactionConfigsBuilder_.addAllMessages(other.imageRedactionConfigs_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.privacy.dlp.v2beta1.RedactContentRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2beta1.RedactContentRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.privacy.dlp.v2beta1.InspectConfig inspectConfig_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.InspectConfig, com.google.privacy.dlp.v2beta1.InspectConfig.Builder, com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder> inspectConfigBuilder_;
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public boolean hasInspectConfig() {
      return inspectConfigBuilder_ != null || inspectConfig_ != null;
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InspectConfig getInspectConfig() {
      if (inspectConfigBuilder_ == null) {
        return inspectConfig_ == null ? com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
      } else {
        return inspectConfigBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public Builder setInspectConfig(com.google.privacy.dlp.v2beta1.InspectConfig value) {
      if (inspectConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        inspectConfig_ = value;
        onChanged();
      } else {
        inspectConfigBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public Builder setInspectConfig(
        com.google.privacy.dlp.v2beta1.InspectConfig.Builder builderForValue) {
      if (inspectConfigBuilder_ == null) {
        inspectConfig_ = builderForValue.build();
        onChanged();
      } else {
        inspectConfigBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public Builder mergeInspectConfig(com.google.privacy.dlp.v2beta1.InspectConfig value) {
      if (inspectConfigBuilder_ == null) {
        if (inspectConfig_ != null) {
          inspectConfig_ =
            com.google.privacy.dlp.v2beta1.InspectConfig.newBuilder(inspectConfig_).mergeFrom(value).buildPartial();
        } else {
          inspectConfig_ = value;
        }
        onChanged();
      } else {
        inspectConfigBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public Builder clearInspectConfig() {
      if (inspectConfigBuilder_ == null) {
        inspectConfig_ = null;
        onChanged();
      } else {
        inspectConfig_ = null;
        inspectConfigBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InspectConfig.Builder getInspectConfigBuilder() {
      
      onChanged();
      return getInspectConfigFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder getInspectConfigOrBuilder() {
      if (inspectConfigBuilder_ != null) {
        return inspectConfigBuilder_.getMessageOrBuilder();
      } else {
        return inspectConfig_ == null ?
            com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
      }
    }
    /**
     * <pre>
     * Configuration for the inspector.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.InspectConfig, com.google.privacy.dlp.v2beta1.InspectConfig.Builder, com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder> 
        getInspectConfigFieldBuilder() {
      if (inspectConfigBuilder_ == null) {
        inspectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.InspectConfig, com.google.privacy.dlp.v2beta1.InspectConfig.Builder, com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder>(
                getInspectConfig(),
                getParentForChildren(),
                isClean());
        inspectConfig_ = null;
      }
      return inspectConfigBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2beta1.ContentItem> items_ =
      java.util.Collections.emptyList();
    private void ensureItemsIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        items_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.ContentItem>(items_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ContentItem, com.google.privacy.dlp.v2beta1.ContentItem.Builder, com.google.privacy.dlp.v2beta1.ContentItemOrBuilder> itemsBuilder_;

    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.ContentItem> getItemsList() {
      if (itemsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(items_);
      } else {
        return itemsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public int getItemsCount() {
      if (itemsBuilder_ == null) {
        return items_.size();
      } else {
        return itemsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.ContentItem getItems(int index) {
      if (itemsBuilder_ == null) {
        return items_.get(index);
      } else {
        return itemsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder setItems(
        int index, com.google.privacy.dlp.v2beta1.ContentItem value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.set(index, value);
        onChanged();
      } else {
        itemsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder setItems(
        int index, com.google.privacy.dlp.v2beta1.ContentItem.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.set(index, builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder addItems(com.google.privacy.dlp.v2beta1.ContentItem value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.add(value);
        onChanged();
      } else {
        itemsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder addItems(
        int index, com.google.privacy.dlp.v2beta1.ContentItem value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.add(index, value);
        onChanged();
      } else {
        itemsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder addItems(
        com.google.privacy.dlp.v2beta1.ContentItem.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.add(builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder addItems(
        int index, com.google.privacy.dlp.v2beta1.ContentItem.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.add(index, builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder addAllItems(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2beta1.ContentItem> values) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, items_);
        onChanged();
      } else {
        itemsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder clearItems() {
      if (itemsBuilder_ == null) {
        items_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        itemsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public Builder removeItems(int index) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.remove(index);
        onChanged();
      } else {
        itemsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.ContentItem.Builder getItemsBuilder(
        int index) {
      return getItemsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.ContentItemOrBuilder getItemsOrBuilder(
        int index) {
      if (itemsBuilder_ == null) {
        return items_.get(index);  } else {
        return itemsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2beta1.ContentItemOrBuilder> 
         getItemsOrBuilderList() {
      if (itemsBuilder_ != null) {
        return itemsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(items_);
      }
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.ContentItem.Builder addItemsBuilder() {
      return getItemsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2beta1.ContentItem.getDefaultInstance());
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.ContentItem.Builder addItemsBuilder(
        int index) {
      return getItemsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2beta1.ContentItem.getDefaultInstance());
    }
    /**
     * <pre>
     * The list of items to inspect. Up to 100 are allowed per request.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.ContentItem items = 2;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.ContentItem.Builder> 
         getItemsBuilderList() {
      return getItemsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ContentItem, com.google.privacy.dlp.v2beta1.ContentItem.Builder, com.google.privacy.dlp.v2beta1.ContentItemOrBuilder> 
        getItemsFieldBuilder() {
      if (itemsBuilder_ == null) {
        itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.ContentItem, com.google.privacy.dlp.v2beta1.ContentItem.Builder, com.google.privacy.dlp.v2beta1.ContentItemOrBuilder>(
                items_,
                ((bitField0_ & 0x00000002) == 0x00000002),
                getParentForChildren(),
                isClean());
        items_ = null;
      }
      return itemsBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig> replaceConfigs_ =
      java.util.Collections.emptyList();
    private void ensureReplaceConfigsIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        replaceConfigs_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig>(replaceConfigs_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder> replaceConfigsBuilder_;

    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig> getReplaceConfigsList() {
      if (replaceConfigsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(replaceConfigs_);
      } else {
        return replaceConfigsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public int getReplaceConfigsCount() {
      if (replaceConfigsBuilder_ == null) {
        return replaceConfigs_.size();
      } else {
        return replaceConfigsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig getReplaceConfigs(int index) {
      if (replaceConfigsBuilder_ == null) {
        return replaceConfigs_.get(index);
      } else {
        return replaceConfigsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder setReplaceConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig value) {
      if (replaceConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.set(index, value);
        onChanged();
      } else {
        replaceConfigsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder setReplaceConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder builderForValue) {
      if (replaceConfigsBuilder_ == null) {
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.set(index, builderForValue.build());
        onChanged();
      } else {
        replaceConfigsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder addReplaceConfigs(com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig value) {
      if (replaceConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.add(value);
        onChanged();
      } else {
        replaceConfigsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder addReplaceConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig value) {
      if (replaceConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.add(index, value);
        onChanged();
      } else {
        replaceConfigsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder addReplaceConfigs(
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder builderForValue) {
      if (replaceConfigsBuilder_ == null) {
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.add(builderForValue.build());
        onChanged();
      } else {
        replaceConfigsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder addReplaceConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder builderForValue) {
      if (replaceConfigsBuilder_ == null) {
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.add(index, builderForValue.build());
        onChanged();
      } else {
        replaceConfigsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder addAllReplaceConfigs(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig> values) {
      if (replaceConfigsBuilder_ == null) {
        ensureReplaceConfigsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, replaceConfigs_);
        onChanged();
      } else {
        replaceConfigsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder clearReplaceConfigs() {
      if (replaceConfigsBuilder_ == null) {
        replaceConfigs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        replaceConfigsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public Builder removeReplaceConfigs(int index) {
      if (replaceConfigsBuilder_ == null) {
        ensureReplaceConfigsIsMutable();
        replaceConfigs_.remove(index);
        onChanged();
      } else {
        replaceConfigsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder getReplaceConfigsBuilder(
        int index) {
      return getReplaceConfigsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder getReplaceConfigsOrBuilder(
        int index) {
      if (replaceConfigsBuilder_ == null) {
        return replaceConfigs_.get(index);  } else {
        return replaceConfigsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder> 
         getReplaceConfigsOrBuilderList() {
      if (replaceConfigsBuilder_ != null) {
        return replaceConfigsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(replaceConfigs_);
      }
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder addReplaceConfigsBuilder() {
      return getReplaceConfigsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.getDefaultInstance());
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder addReplaceConfigsBuilder(
        int index) {
      return getReplaceConfigsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.getDefaultInstance());
    }
    /**
     * <pre>
     * The strings to replace findings text findings with. Must specify at least
     * one of these or one ImageRedactionConfig if redacting images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig replace_configs = 3;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder> 
         getReplaceConfigsBuilderList() {
      return getReplaceConfigsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder> 
        getReplaceConfigsFieldBuilder() {
      if (replaceConfigsBuilder_ == null) {
        replaceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ReplaceConfigOrBuilder>(
                replaceConfigs_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        replaceConfigs_ = null;
      }
      return replaceConfigsBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig> imageRedactionConfigs_ =
      java.util.Collections.emptyList();
    private void ensureImageRedactionConfigsIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        imageRedactionConfigs_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig>(imageRedactionConfigs_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder> imageRedactionConfigsBuilder_;

    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig> getImageRedactionConfigsList() {
      if (imageRedactionConfigsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(imageRedactionConfigs_);
      } else {
        return imageRedactionConfigsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public int getImageRedactionConfigsCount() {
      if (imageRedactionConfigsBuilder_ == null) {
        return imageRedactionConfigs_.size();
      } else {
        return imageRedactionConfigsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig getImageRedactionConfigs(int index) {
      if (imageRedactionConfigsBuilder_ == null) {
        return imageRedactionConfigs_.get(index);
      } else {
        return imageRedactionConfigsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder setImageRedactionConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig value) {
      if (imageRedactionConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.set(index, value);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder setImageRedactionConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder builderForValue) {
      if (imageRedactionConfigsBuilder_ == null) {
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.set(index, builderForValue.build());
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder addImageRedactionConfigs(com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig value) {
      if (imageRedactionConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.add(value);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder addImageRedactionConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig value) {
      if (imageRedactionConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.add(index, value);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder addImageRedactionConfigs(
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder builderForValue) {
      if (imageRedactionConfigsBuilder_ == null) {
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.add(builderForValue.build());
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder addImageRedactionConfigs(
        int index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder builderForValue) {
      if (imageRedactionConfigsBuilder_ == null) {
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.add(index, builderForValue.build());
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder addAllImageRedactionConfigs(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig> values) {
      if (imageRedactionConfigsBuilder_ == null) {
        ensureImageRedactionConfigsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, imageRedactionConfigs_);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder clearImageRedactionConfigs() {
      if (imageRedactionConfigsBuilder_ == null) {
        imageRedactionConfigs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public Builder removeImageRedactionConfigs(int index) {
      if (imageRedactionConfigsBuilder_ == null) {
        ensureImageRedactionConfigsIsMutable();
        imageRedactionConfigs_.remove(index);
        onChanged();
      } else {
        imageRedactionConfigsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder getImageRedactionConfigsBuilder(
        int index) {
      return getImageRedactionConfigsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder getImageRedactionConfigsOrBuilder(
        int index) {
      if (imageRedactionConfigsBuilder_ == null) {
        return imageRedactionConfigs_.get(index);  } else {
        return imageRedactionConfigsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder> 
         getImageRedactionConfigsOrBuilderList() {
      if (imageRedactionConfigsBuilder_ != null) {
        return imageRedactionConfigsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(imageRedactionConfigs_);
      }
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder addImageRedactionConfigsBuilder() {
      return getImageRedactionConfigsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.getDefaultInstance());
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder addImageRedactionConfigsBuilder(
        int index) {
      return getImageRedactionConfigsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.getDefaultInstance());
    }
    /**
     * <pre>
     * The configuration for specifying what content to redact from images.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig image_redaction_configs = 4;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder> 
         getImageRedactionConfigsBuilderList() {
      return getImageRedactionConfigsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder> 
        getImageRedactionConfigsFieldBuilder() {
      if (imageRedactionConfigsBuilder_ == null) {
        imageRedactionConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfig.Builder, com.google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfigOrBuilder>(
                imageRedactionConfigs_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        imageRedactionConfigs_ = null;
      }
      return imageRedactionConfigsBuilder_;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.RedactContentRequest)
  }

  // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.RedactContentRequest)
  private static final com.google.privacy.dlp.v2beta1.RedactContentRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.RedactContentRequest();
  }

  public static com.google.privacy.dlp.v2beta1.RedactContentRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<RedactContentRequest>
      PARSER = new com.google.protobuf.AbstractParser<RedactContentRequest>() {
    public RedactContentRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new RedactContentRequest(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<RedactContentRequest> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<RedactContentRequest> getParserForType() {
    return PARSER;
  }

  public com.google.privacy.dlp.v2beta1.RedactContentRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

