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

package com.google.privacy.dlp.v2beta1;

/**
 * <pre>
 * Summary of a single tranformation.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2beta1.TransformationSummary}
 */
public  final class TransformationSummary extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.TransformationSummary)
    TransformationSummaryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TransformationSummary.newBuilder() to construct.
  private TransformationSummary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private TransformationSummary() {
    fieldTransformations_ = java.util.Collections.emptyList();
    results_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TransformationSummary(
      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: {
            com.google.privacy.dlp.v2beta1.FieldId.Builder subBuilder = null;
            if (field_ != null) {
              subBuilder = field_.toBuilder();
            }
            field_ = input.readMessage(com.google.privacy.dlp.v2beta1.FieldId.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(field_);
              field_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder subBuilder = null;
            if (transformation_ != null) {
              subBuilder = transformation_.toBuilder();
            }
            transformation_ = input.readMessage(com.google.privacy.dlp.v2beta1.PrimitiveTransformation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(transformation_);
              transformation_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              results_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult>();
              mutable_bitField0_ |= 0x00000020;
            }
            results_.add(
                input.readMessage(com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.parser(), extensionRegistry));
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              fieldTransformations_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.FieldTransformation>();
              mutable_bitField0_ |= 0x00000008;
            }
            fieldTransformations_.add(
                input.readMessage(com.google.privacy.dlp.v2beta1.FieldTransformation.parser(), extensionRegistry));
            break;
          }
          case 50: {
            com.google.privacy.dlp.v2beta1.RecordSuppression.Builder subBuilder = null;
            if (recordSuppress_ != null) {
              subBuilder = recordSuppress_.toBuilder();
            }
            recordSuppress_ = input.readMessage(com.google.privacy.dlp.v2beta1.RecordSuppression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(recordSuppress_);
              recordSuppress_ = 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 {
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        results_ = java.util.Collections.unmodifiableList(results_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        fieldTransformations_ = java.util.Collections.unmodifiableList(fieldTransformations_);
      }
      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_TransformationSummary_descriptor;
  }

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

  /**
   * <pre>
   * Possible outcomes of transformations.
   * </pre>
   *
   * Protobuf enum {@code google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode}
   */
  public enum TransformationResultCode
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;</code>
     */
    TRANSFORMATION_RESULT_CODE_UNSPECIFIED(0),
    /**
     * <code>SUCCESS = 1;</code>
     */
    SUCCESS(1),
    /**
     * <code>ERROR = 2;</code>
     */
    ERROR(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;</code>
     */
    public static final int TRANSFORMATION_RESULT_CODE_UNSPECIFIED_VALUE = 0;
    /**
     * <code>SUCCESS = 1;</code>
     */
    public static final int SUCCESS_VALUE = 1;
    /**
     * <code>ERROR = 2;</code>
     */
    public static final int ERROR_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TransformationResultCode valueOf(int value) {
      return forNumber(value);
    }

    public static TransformationResultCode forNumber(int value) {
      switch (value) {
        case 0: return TRANSFORMATION_RESULT_CODE_UNSPECIFIED;
        case 1: return SUCCESS;
        case 2: return ERROR;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<TransformationResultCode>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TransformationResultCode> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<TransformationResultCode>() {
            public TransformationResultCode findValueByNumber(int number) {
              return TransformationResultCode.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.TransformationSummary.getDescriptor().getEnumTypes().get(0);
    }

    private static final TransformationResultCode[] VALUES = values();

    public static TransformationResultCode valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TransformationResultCode(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode)
  }

  public interface SummaryResultOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int64 count = 1;</code>
     */
    long getCount();

    /**
     * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     */
    int getCodeValue();
    /**
     * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     */
    com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode getCode();

    /**
     * <pre>
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     * </pre>
     *
     * <code>string details = 3;</code>
     */
    java.lang.String getDetails();
    /**
     * <pre>
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     * </pre>
     *
     * <code>string details = 3;</code>
     */
    com.google.protobuf.ByteString
        getDetailsBytes();
  }
  /**
   * <pre>
   * A collection that informs the user the number of times a particular
   * `TransformationResultCode` and error details occurred.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult}
   */
  public  static final class SummaryResult extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult)
      SummaryResultOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SummaryResult.newBuilder() to construct.
    private SummaryResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SummaryResult() {
      count_ = 0L;
      code_ = 0;
      details_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SummaryResult(
        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 8: {

              count_ = input.readInt64();
              break;
            }
            case 16: {
              int rawValue = input.readEnum();

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

              details_ = 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_TransformationSummary_SummaryResult_descriptor;
    }

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

    public static final int COUNT_FIELD_NUMBER = 1;
    private long count_;
    /**
     * <code>int64 count = 1;</code>
     */
    public long getCount() {
      return count_;
    }

    public static final int CODE_FIELD_NUMBER = 2;
    private int code_;
    /**
     * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     */
    public int getCodeValue() {
      return code_;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode getCode() {
      com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode result = com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.valueOf(code_);
      return result == null ? com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.UNRECOGNIZED : result;
    }

    public static final int DETAILS_FIELD_NUMBER = 3;
    private volatile java.lang.Object details_;
    /**
     * <pre>
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     * </pre>
     *
     * <code>string details = 3;</code>
     */
    public java.lang.String getDetails() {
      java.lang.Object ref = details_;
      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();
        details_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     * </pre>
     *
     * <code>string details = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDetailsBytes() {
      java.lang.Object ref = details_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        details_ = 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 (count_ != 0L) {
        output.writeInt64(1, count_);
      }
      if (code_ != com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.TRANSFORMATION_RESULT_CODE_UNSPECIFIED.getNumber()) {
        output.writeEnum(2, code_);
      }
      if (!getDetailsBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (count_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, count_);
      }
      if (code_ != com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.TRANSFORMATION_RESULT_CODE_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, code_);
      }
      if (!getDetailsBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_);
      }
      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.TransformationSummary.SummaryResult)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult other = (com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult) obj;

      boolean result = true;
      result = result && (getCount()
          == other.getCount());
      result = result && code_ == other.code_;
      result = result && getDetails()
          .equals(other.getDetails());
      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();
      hash = (37 * hash) + COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCount());
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + code_;
      hash = (37 * hash) + DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getDetails().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult 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.TransformationSummary.SummaryResult 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>
     * A collection that informs the user the number of times a particular
     * `TransformationResultCode` and error details occurred.
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult)
        com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_TransformationSummary_SummaryResult_descriptor;
      }

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

      // Construct using com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.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();
        count_ = 0L;

        code_ = 0;

        details_ = "";

        return this;
      }

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

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

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

      public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult buildPartial() {
        com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult result = new com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult(this);
        result.count_ = count_;
        result.code_ = code_;
        result.details_ = details_;
        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.TransformationSummary.SummaryResult) {
          return mergeFrom((com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult other) {
        if (other == com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.getDefaultInstance()) return this;
        if (other.getCount() != 0L) {
          setCount(other.getCount());
        }
        if (other.code_ != 0) {
          setCodeValue(other.getCodeValue());
        }
        if (!other.getDetails().isEmpty()) {
          details_ = other.details_;
          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.TransformationSummary.SummaryResult parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long count_ ;
      /**
       * <code>int64 count = 1;</code>
       */
      public long getCount() {
        return count_;
      }
      /**
       * <code>int64 count = 1;</code>
       */
      public Builder setCount(long value) {
        
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 count = 1;</code>
       */
      public Builder clearCount() {
        
        count_ = 0L;
        onChanged();
        return this;
      }

      private int code_ = 0;
      /**
       * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
       */
      public int getCodeValue() {
        return code_;
      }
      /**
       * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
       */
      public Builder setCodeValue(int value) {
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
       */
      public com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode getCode() {
        com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode result = com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.valueOf(code_);
        return result == null ? com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode.UNRECOGNIZED : result;
      }
      /**
       * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
       */
      public Builder setCode(com.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        code_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
       */
      public Builder clearCode() {
        
        code_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object details_ = "";
      /**
       * <pre>
       * A place for warnings or errors to show up if a transformation didn't
       * work as expected.
       * </pre>
       *
       * <code>string details = 3;</code>
       */
      public java.lang.String getDetails() {
        java.lang.Object ref = details_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          details_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * A place for warnings or errors to show up if a transformation didn't
       * work as expected.
       * </pre>
       *
       * <code>string details = 3;</code>
       */
      public com.google.protobuf.ByteString
          getDetailsBytes() {
        java.lang.Object ref = details_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          details_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * A place for warnings or errors to show up if a transformation didn't
       * work as expected.
       * </pre>
       *
       * <code>string details = 3;</code>
       */
      public Builder setDetails(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        details_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A place for warnings or errors to show up if a transformation didn't
       * work as expected.
       * </pre>
       *
       * <code>string details = 3;</code>
       */
      public Builder clearDetails() {
        
        details_ = getDefaultInstance().getDetails();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A place for warnings or errors to show up if a transformation didn't
       * work as expected.
       * </pre>
       *
       * <code>string details = 3;</code>
       */
      public Builder setDetailsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        details_ = 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.TransformationSummary.SummaryResult)
    }

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

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

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

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

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

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

  }

  private int bitField0_;
  public static final int INFO_TYPE_FIELD_NUMBER = 1;
  private com.google.privacy.dlp.v2beta1.InfoType infoType_;
  /**
   * <pre>
   * Set if the transformation was limited to a specific info_type.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
   */
  public boolean hasInfoType() {
    return infoType_ != null;
  }
  /**
   * <pre>
   * Set if the transformation was limited to a specific info_type.
   * </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>
   * Set if the transformation was limited to a specific info_type.
   * </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 FIELD_FIELD_NUMBER = 2;
  private com.google.privacy.dlp.v2beta1.FieldId field_;
  /**
   * <pre>
   * Set if the transformation was limited to a specific FieldId.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
   */
  public boolean hasField() {
    return field_ != null;
  }
  /**
   * <pre>
   * Set if the transformation was limited to a specific FieldId.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.FieldId getField() {
    return field_ == null ? com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : field_;
  }
  /**
   * <pre>
   * Set if the transformation was limited to a specific FieldId.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getFieldOrBuilder() {
    return getField();
  }

  public static final int TRANSFORMATION_FIELD_NUMBER = 3;
  private com.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation_;
  /**
   * <pre>
   * The specific transformation these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
   */
  public boolean hasTransformation() {
    return transformation_ != null;
  }
  /**
   * <pre>
   * The specific transformation these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.PrimitiveTransformation getTransformation() {
    return transformation_ == null ? com.google.privacy.dlp.v2beta1.PrimitiveTransformation.getDefaultInstance() : transformation_;
  }
  /**
   * <pre>
   * The specific transformation these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.PrimitiveTransformationOrBuilder getTransformationOrBuilder() {
    return getTransformation();
  }

  public static final int FIELD_TRANSFORMATIONS_FIELD_NUMBER = 5;
  private java.util.List<com.google.privacy.dlp.v2beta1.FieldTransformation> fieldTransformations_;
  /**
   * <pre>
   * The field transformation that was applied. This list will contain
   * multiple only in the case of errors.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2beta1.FieldTransformation> getFieldTransformationsList() {
    return fieldTransformations_;
  }
  /**
   * <pre>
   * The field transformation that was applied. This list will contain
   * multiple only in the case of errors.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder> 
      getFieldTransformationsOrBuilderList() {
    return fieldTransformations_;
  }
  /**
   * <pre>
   * The field transformation that was applied. This list will contain
   * multiple only in the case of errors.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
   */
  public int getFieldTransformationsCount() {
    return fieldTransformations_.size();
  }
  /**
   * <pre>
   * The field transformation that was applied. This list will contain
   * multiple only in the case of errors.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
   */
  public com.google.privacy.dlp.v2beta1.FieldTransformation getFieldTransformations(int index) {
    return fieldTransformations_.get(index);
  }
  /**
   * <pre>
   * The field transformation that was applied. This list will contain
   * multiple only in the case of errors.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
   */
  public com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder getFieldTransformationsOrBuilder(
      int index) {
    return fieldTransformations_.get(index);
  }

  public static final int RECORD_SUPPRESS_FIELD_NUMBER = 6;
  private com.google.privacy.dlp.v2beta1.RecordSuppression recordSuppress_;
  /**
   * <pre>
   * The specific suppression option these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
   */
  public boolean hasRecordSuppress() {
    return recordSuppress_ != null;
  }
  /**
   * <pre>
   * The specific suppression option these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
   */
  public com.google.privacy.dlp.v2beta1.RecordSuppression getRecordSuppress() {
    return recordSuppress_ == null ? com.google.privacy.dlp.v2beta1.RecordSuppression.getDefaultInstance() : recordSuppress_;
  }
  /**
   * <pre>
   * The specific suppression option these stats apply to.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
   */
  public com.google.privacy.dlp.v2beta1.RecordSuppressionOrBuilder getRecordSuppressOrBuilder() {
    return getRecordSuppress();
  }

  public static final int RESULTS_FIELD_NUMBER = 4;
  private java.util.List<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult> results_;
  /**
   * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult> getResultsList() {
    return results_;
  }
  /**
   * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder> 
      getResultsOrBuilderList() {
    return results_;
  }
  /**
   * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
   */
  public int getResultsCount() {
    return results_.size();
  }
  /**
   * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult getResults(int index) {
    return results_.get(index);
  }
  /**
   * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder getResultsOrBuilder(
      int index) {
    return results_.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 (infoType_ != null) {
      output.writeMessage(1, getInfoType());
    }
    if (field_ != null) {
      output.writeMessage(2, getField());
    }
    if (transformation_ != null) {
      output.writeMessage(3, getTransformation());
    }
    for (int i = 0; i < results_.size(); i++) {
      output.writeMessage(4, results_.get(i));
    }
    for (int i = 0; i < fieldTransformations_.size(); i++) {
      output.writeMessage(5, fieldTransformations_.get(i));
    }
    if (recordSuppress_ != null) {
      output.writeMessage(6, getRecordSuppress());
    }
    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 (field_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getField());
    }
    if (transformation_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getTransformation());
    }
    for (int i = 0; i < results_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, results_.get(i));
    }
    for (int i = 0; i < fieldTransformations_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, fieldTransformations_.get(i));
    }
    if (recordSuppress_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getRecordSuppress());
    }
    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.TransformationSummary)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2beta1.TransformationSummary other = (com.google.privacy.dlp.v2beta1.TransformationSummary) obj;

    boolean result = true;
    result = result && (hasInfoType() == other.hasInfoType());
    if (hasInfoType()) {
      result = result && getInfoType()
          .equals(other.getInfoType());
    }
    result = result && (hasField() == other.hasField());
    if (hasField()) {
      result = result && getField()
          .equals(other.getField());
    }
    result = result && (hasTransformation() == other.hasTransformation());
    if (hasTransformation()) {
      result = result && getTransformation()
          .equals(other.getTransformation());
    }
    result = result && getFieldTransformationsList()
        .equals(other.getFieldTransformationsList());
    result = result && (hasRecordSuppress() == other.hasRecordSuppress());
    if (hasRecordSuppress()) {
      result = result && getRecordSuppress()
          .equals(other.getRecordSuppress());
    }
    result = result && getResultsList()
        .equals(other.getResultsList());
    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();
    }
    if (hasField()) {
      hash = (37 * hash) + FIELD_FIELD_NUMBER;
      hash = (53 * hash) + getField().hashCode();
    }
    if (hasTransformation()) {
      hash = (37 * hash) + TRANSFORMATION_FIELD_NUMBER;
      hash = (53 * hash) + getTransformation().hashCode();
    }
    if (getFieldTransformationsCount() > 0) {
      hash = (37 * hash) + FIELD_TRANSFORMATIONS_FIELD_NUMBER;
      hash = (53 * hash) + getFieldTransformationsList().hashCode();
    }
    if (hasRecordSuppress()) {
      hash = (37 * hash) + RECORD_SUPPRESS_FIELD_NUMBER;
      hash = (53 * hash) + getRecordSuppress().hashCode();
    }
    if (getResultsCount() > 0) {
      hash = (37 * hash) + RESULTS_FIELD_NUMBER;
      hash = (53 * hash) + getResultsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2beta1.TransformationSummary parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.TransformationSummary 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.TransformationSummary parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.TransformationSummary 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.TransformationSummary parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.TransformationSummary 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.TransformationSummary parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.TransformationSummary 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.TransformationSummary parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.TransformationSummary 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.TransformationSummary 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.TransformationSummary 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.TransformationSummary 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>
   * Summary of a single tranformation.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2beta1.TransformationSummary}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.TransformationSummary)
      com.google.privacy.dlp.v2beta1.TransformationSummaryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_TransformationSummary_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getFieldTransformationsFieldBuilder();
        getResultsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      if (infoTypeBuilder_ == null) {
        infoType_ = null;
      } else {
        infoType_ = null;
        infoTypeBuilder_ = null;
      }
      if (fieldBuilder_ == null) {
        field_ = null;
      } else {
        field_ = null;
        fieldBuilder_ = null;
      }
      if (transformationBuilder_ == null) {
        transformation_ = null;
      } else {
        transformation_ = null;
        transformationBuilder_ = null;
      }
      if (fieldTransformationsBuilder_ == null) {
        fieldTransformations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        fieldTransformationsBuilder_.clear();
      }
      if (recordSuppressBuilder_ == null) {
        recordSuppress_ = null;
      } else {
        recordSuppress_ = null;
        recordSuppressBuilder_ = null;
      }
      if (resultsBuilder_ == null) {
        results_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
      } else {
        resultsBuilder_.clear();
      }
      return this;
    }

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

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

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

    public com.google.privacy.dlp.v2beta1.TransformationSummary buildPartial() {
      com.google.privacy.dlp.v2beta1.TransformationSummary result = new com.google.privacy.dlp.v2beta1.TransformationSummary(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (infoTypeBuilder_ == null) {
        result.infoType_ = infoType_;
      } else {
        result.infoType_ = infoTypeBuilder_.build();
      }
      if (fieldBuilder_ == null) {
        result.field_ = field_;
      } else {
        result.field_ = fieldBuilder_.build();
      }
      if (transformationBuilder_ == null) {
        result.transformation_ = transformation_;
      } else {
        result.transformation_ = transformationBuilder_.build();
      }
      if (fieldTransformationsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          fieldTransformations_ = java.util.Collections.unmodifiableList(fieldTransformations_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.fieldTransformations_ = fieldTransformations_;
      } else {
        result.fieldTransformations_ = fieldTransformationsBuilder_.build();
      }
      if (recordSuppressBuilder_ == null) {
        result.recordSuppress_ = recordSuppress_;
      } else {
        result.recordSuppress_ = recordSuppressBuilder_.build();
      }
      if (resultsBuilder_ == null) {
        if (((bitField0_ & 0x00000020) == 0x00000020)) {
          results_ = java.util.Collections.unmodifiableList(results_);
          bitField0_ = (bitField0_ & ~0x00000020);
        }
        result.results_ = results_;
      } else {
        result.results_ = resultsBuilder_.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.TransformationSummary) {
        return mergeFrom((com.google.privacy.dlp.v2beta1.TransformationSummary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2beta1.TransformationSummary other) {
      if (other == com.google.privacy.dlp.v2beta1.TransformationSummary.getDefaultInstance()) return this;
      if (other.hasInfoType()) {
        mergeInfoType(other.getInfoType());
      }
      if (other.hasField()) {
        mergeField(other.getField());
      }
      if (other.hasTransformation()) {
        mergeTransformation(other.getTransformation());
      }
      if (fieldTransformationsBuilder_ == null) {
        if (!other.fieldTransformations_.isEmpty()) {
          if (fieldTransformations_.isEmpty()) {
            fieldTransformations_ = other.fieldTransformations_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureFieldTransformationsIsMutable();
            fieldTransformations_.addAll(other.fieldTransformations_);
          }
          onChanged();
        }
      } else {
        if (!other.fieldTransformations_.isEmpty()) {
          if (fieldTransformationsBuilder_.isEmpty()) {
            fieldTransformationsBuilder_.dispose();
            fieldTransformationsBuilder_ = null;
            fieldTransformations_ = other.fieldTransformations_;
            bitField0_ = (bitField0_ & ~0x00000008);
            fieldTransformationsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getFieldTransformationsFieldBuilder() : null;
          } else {
            fieldTransformationsBuilder_.addAllMessages(other.fieldTransformations_);
          }
        }
      }
      if (other.hasRecordSuppress()) {
        mergeRecordSuppress(other.getRecordSuppress());
      }
      if (resultsBuilder_ == null) {
        if (!other.results_.isEmpty()) {
          if (results_.isEmpty()) {
            results_ = other.results_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureResultsIsMutable();
            results_.addAll(other.results_);
          }
          onChanged();
        }
      } else {
        if (!other.results_.isEmpty()) {
          if (resultsBuilder_.isEmpty()) {
            resultsBuilder_.dispose();
            resultsBuilder_ = null;
            results_ = other.results_;
            bitField0_ = (bitField0_ & ~0x00000020);
            resultsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getResultsFieldBuilder() : null;
          } else {
            resultsBuilder_.addAllMessages(other.results_);
          }
        }
      }
      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.TransformationSummary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2beta1.TransformationSummary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    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>
     * Set if the transformation was limited to a specific info_type.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    public boolean hasInfoType() {
      return infoTypeBuilder_ != null || infoType_ != null;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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>
     * Set if the transformation was limited to a specific info_type.
     * </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 com.google.privacy.dlp.v2beta1.FieldId field_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder> fieldBuilder_;
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public boolean hasField() {
      return fieldBuilder_ != null || field_ != null;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldId getField() {
      if (fieldBuilder_ == null) {
        return field_ == null ? com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : field_;
      } else {
        return fieldBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public Builder setField(com.google.privacy.dlp.v2beta1.FieldId value) {
      if (fieldBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        field_ = value;
        onChanged();
      } else {
        fieldBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public Builder setField(
        com.google.privacy.dlp.v2beta1.FieldId.Builder builderForValue) {
      if (fieldBuilder_ == null) {
        field_ = builderForValue.build();
        onChanged();
      } else {
        fieldBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public Builder mergeField(com.google.privacy.dlp.v2beta1.FieldId value) {
      if (fieldBuilder_ == null) {
        if (field_ != null) {
          field_ =
            com.google.privacy.dlp.v2beta1.FieldId.newBuilder(field_).mergeFrom(value).buildPartial();
        } else {
          field_ = value;
        }
        onChanged();
      } else {
        fieldBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public Builder clearField() {
      if (fieldBuilder_ == null) {
        field_ = null;
        onChanged();
      } else {
        field_ = null;
        fieldBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldId.Builder getFieldBuilder() {
      
      onChanged();
      return getFieldFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getFieldOrBuilder() {
      if (fieldBuilder_ != null) {
        return fieldBuilder_.getMessageOrBuilder();
      } else {
        return field_ == null ?
            com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : field_;
      }
    }
    /**
     * <pre>
     * Set if the transformation was limited to a specific FieldId.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder> 
        getFieldFieldBuilder() {
      if (fieldBuilder_ == null) {
        fieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>(
                getField(),
                getParentForChildren(),
                isClean());
        field_ = null;
      }
      return fieldBuilder_;
    }

    private com.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.PrimitiveTransformation, com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder, com.google.privacy.dlp.v2beta1.PrimitiveTransformationOrBuilder> transformationBuilder_;
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public boolean hasTransformation() {
      return transformationBuilder_ != null || transformation_ != null;
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrimitiveTransformation getTransformation() {
      if (transformationBuilder_ == null) {
        return transformation_ == null ? com.google.privacy.dlp.v2beta1.PrimitiveTransformation.getDefaultInstance() : transformation_;
      } else {
        return transformationBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public Builder setTransformation(com.google.privacy.dlp.v2beta1.PrimitiveTransformation value) {
      if (transformationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        transformationBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public Builder setTransformation(
        com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder builderForValue) {
      if (transformationBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        transformationBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public Builder mergeTransformation(com.google.privacy.dlp.v2beta1.PrimitiveTransformation value) {
      if (transformationBuilder_ == null) {
        if (transformation_ != null) {
          transformation_ =
            com.google.privacy.dlp.v2beta1.PrimitiveTransformation.newBuilder(transformation_).mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        transformationBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public Builder clearTransformation() {
      if (transformationBuilder_ == null) {
        transformation_ = null;
        onChanged();
      } else {
        transformation_ = null;
        transformationBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder getTransformationBuilder() {
      
      onChanged();
      return getTransformationFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrimitiveTransformationOrBuilder getTransformationOrBuilder() {
      if (transformationBuilder_ != null) {
        return transformationBuilder_.getMessageOrBuilder();
      } else {
        return transformation_ == null ?
            com.google.privacy.dlp.v2beta1.PrimitiveTransformation.getDefaultInstance() : transformation_;
      }
    }
    /**
     * <pre>
     * The specific transformation these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.PrimitiveTransformation, com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder, com.google.privacy.dlp.v2beta1.PrimitiveTransformationOrBuilder> 
        getTransformationFieldBuilder() {
      if (transformationBuilder_ == null) {
        transformationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.PrimitiveTransformation, com.google.privacy.dlp.v2beta1.PrimitiveTransformation.Builder, com.google.privacy.dlp.v2beta1.PrimitiveTransformationOrBuilder>(
                getTransformation(),
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      return transformationBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FieldTransformation, com.google.privacy.dlp.v2beta1.FieldTransformation.Builder, com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder> fieldTransformationsBuilder_;

    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.FieldTransformation> getFieldTransformationsList() {
      if (fieldTransformationsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(fieldTransformations_);
      } else {
        return fieldTransformationsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public int getFieldTransformationsCount() {
      if (fieldTransformationsBuilder_ == null) {
        return fieldTransformations_.size();
      } else {
        return fieldTransformationsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldTransformation getFieldTransformations(int index) {
      if (fieldTransformationsBuilder_ == null) {
        return fieldTransformations_.get(index);
      } else {
        return fieldTransformationsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder setFieldTransformations(
        int index, com.google.privacy.dlp.v2beta1.FieldTransformation value) {
      if (fieldTransformationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.set(index, value);
        onChanged();
      } else {
        fieldTransformationsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder setFieldTransformations(
        int index, com.google.privacy.dlp.v2beta1.FieldTransformation.Builder builderForValue) {
      if (fieldTransformationsBuilder_ == null) {
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.set(index, builderForValue.build());
        onChanged();
      } else {
        fieldTransformationsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder addFieldTransformations(com.google.privacy.dlp.v2beta1.FieldTransformation value) {
      if (fieldTransformationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.add(value);
        onChanged();
      } else {
        fieldTransformationsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder addFieldTransformations(
        int index, com.google.privacy.dlp.v2beta1.FieldTransformation value) {
      if (fieldTransformationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.add(index, value);
        onChanged();
      } else {
        fieldTransformationsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder addFieldTransformations(
        com.google.privacy.dlp.v2beta1.FieldTransformation.Builder builderForValue) {
      if (fieldTransformationsBuilder_ == null) {
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.add(builderForValue.build());
        onChanged();
      } else {
        fieldTransformationsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder addFieldTransformations(
        int index, com.google.privacy.dlp.v2beta1.FieldTransformation.Builder builderForValue) {
      if (fieldTransformationsBuilder_ == null) {
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.add(index, builderForValue.build());
        onChanged();
      } else {
        fieldTransformationsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder addAllFieldTransformations(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2beta1.FieldTransformation> values) {
      if (fieldTransformationsBuilder_ == null) {
        ensureFieldTransformationsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, fieldTransformations_);
        onChanged();
      } else {
        fieldTransformationsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder clearFieldTransformations() {
      if (fieldTransformationsBuilder_ == null) {
        fieldTransformations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        fieldTransformationsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public Builder removeFieldTransformations(int index) {
      if (fieldTransformationsBuilder_ == null) {
        ensureFieldTransformationsIsMutable();
        fieldTransformations_.remove(index);
        onChanged();
      } else {
        fieldTransformationsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldTransformation.Builder getFieldTransformationsBuilder(
        int index) {
      return getFieldTransformationsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder getFieldTransformationsOrBuilder(
        int index) {
      if (fieldTransformationsBuilder_ == null) {
        return fieldTransformations_.get(index);  } else {
        return fieldTransformationsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder> 
         getFieldTransformationsOrBuilderList() {
      if (fieldTransformationsBuilder_ != null) {
        return fieldTransformationsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(fieldTransformations_);
      }
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldTransformation.Builder addFieldTransformationsBuilder() {
      return getFieldTransformationsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2beta1.FieldTransformation.getDefaultInstance());
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FieldTransformation.Builder addFieldTransformationsBuilder(
        int index) {
      return getFieldTransformationsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2beta1.FieldTransformation.getDefaultInstance());
    }
    /**
     * <pre>
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.FieldTransformation.Builder> 
         getFieldTransformationsBuilderList() {
      return getFieldTransformationsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FieldTransformation, com.google.privacy.dlp.v2beta1.FieldTransformation.Builder, com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder> 
        getFieldTransformationsFieldBuilder() {
      if (fieldTransformationsBuilder_ == null) {
        fieldTransformationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.FieldTransformation, com.google.privacy.dlp.v2beta1.FieldTransformation.Builder, com.google.privacy.dlp.v2beta1.FieldTransformationOrBuilder>(
                fieldTransformations_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        fieldTransformations_ = null;
      }
      return fieldTransformationsBuilder_;
    }

    private com.google.privacy.dlp.v2beta1.RecordSuppression recordSuppress_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RecordSuppression, com.google.privacy.dlp.v2beta1.RecordSuppression.Builder, com.google.privacy.dlp.v2beta1.RecordSuppressionOrBuilder> recordSuppressBuilder_;
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public boolean hasRecordSuppress() {
      return recordSuppressBuilder_ != null || recordSuppress_ != null;
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.RecordSuppression getRecordSuppress() {
      if (recordSuppressBuilder_ == null) {
        return recordSuppress_ == null ? com.google.privacy.dlp.v2beta1.RecordSuppression.getDefaultInstance() : recordSuppress_;
      } else {
        return recordSuppressBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public Builder setRecordSuppress(com.google.privacy.dlp.v2beta1.RecordSuppression value) {
      if (recordSuppressBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        recordSuppress_ = value;
        onChanged();
      } else {
        recordSuppressBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public Builder setRecordSuppress(
        com.google.privacy.dlp.v2beta1.RecordSuppression.Builder builderForValue) {
      if (recordSuppressBuilder_ == null) {
        recordSuppress_ = builderForValue.build();
        onChanged();
      } else {
        recordSuppressBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public Builder mergeRecordSuppress(com.google.privacy.dlp.v2beta1.RecordSuppression value) {
      if (recordSuppressBuilder_ == null) {
        if (recordSuppress_ != null) {
          recordSuppress_ =
            com.google.privacy.dlp.v2beta1.RecordSuppression.newBuilder(recordSuppress_).mergeFrom(value).buildPartial();
        } else {
          recordSuppress_ = value;
        }
        onChanged();
      } else {
        recordSuppressBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public Builder clearRecordSuppress() {
      if (recordSuppressBuilder_ == null) {
        recordSuppress_ = null;
        onChanged();
      } else {
        recordSuppress_ = null;
        recordSuppressBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.RecordSuppression.Builder getRecordSuppressBuilder() {
      
      onChanged();
      return getRecordSuppressFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.RecordSuppressionOrBuilder getRecordSuppressOrBuilder() {
      if (recordSuppressBuilder_ != null) {
        return recordSuppressBuilder_.getMessageOrBuilder();
      } else {
        return recordSuppress_ == null ?
            com.google.privacy.dlp.v2beta1.RecordSuppression.getDefaultInstance() : recordSuppress_;
      }
    }
    /**
     * <pre>
     * The specific suppression option these stats apply to.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RecordSuppression, com.google.privacy.dlp.v2beta1.RecordSuppression.Builder, com.google.privacy.dlp.v2beta1.RecordSuppressionOrBuilder> 
        getRecordSuppressFieldBuilder() {
      if (recordSuppressBuilder_ == null) {
        recordSuppressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.RecordSuppression, com.google.privacy.dlp.v2beta1.RecordSuppression.Builder, com.google.privacy.dlp.v2beta1.RecordSuppressionOrBuilder>(
                getRecordSuppress(),
                getParentForChildren(),
                isClean());
        recordSuppress_ = null;
      }
      return recordSuppressBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult> results_ =
      java.util.Collections.emptyList();
    private void ensureResultsIsMutable() {
      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
        results_ = new java.util.ArrayList<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult>(results_);
        bitField0_ |= 0x00000020;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder> resultsBuilder_;

    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult> getResultsList() {
      if (resultsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(results_);
      } else {
        return resultsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public int getResultsCount() {
      if (resultsBuilder_ == null) {
        return results_.size();
      } else {
        return resultsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult getResults(int index) {
      if (resultsBuilder_ == null) {
        return results_.get(index);
      } else {
        return resultsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder setResults(
        int index, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult value) {
      if (resultsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResultsIsMutable();
        results_.set(index, value);
        onChanged();
      } else {
        resultsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder setResults(
        int index, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder builderForValue) {
      if (resultsBuilder_ == null) {
        ensureResultsIsMutable();
        results_.set(index, builderForValue.build());
        onChanged();
      } else {
        resultsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder addResults(com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult value) {
      if (resultsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResultsIsMutable();
        results_.add(value);
        onChanged();
      } else {
        resultsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder addResults(
        int index, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult value) {
      if (resultsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResultsIsMutable();
        results_.add(index, value);
        onChanged();
      } else {
        resultsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder addResults(
        com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder builderForValue) {
      if (resultsBuilder_ == null) {
        ensureResultsIsMutable();
        results_.add(builderForValue.build());
        onChanged();
      } else {
        resultsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder addResults(
        int index, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder builderForValue) {
      if (resultsBuilder_ == null) {
        ensureResultsIsMutable();
        results_.add(index, builderForValue.build());
        onChanged();
      } else {
        resultsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder addAllResults(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult> values) {
      if (resultsBuilder_ == null) {
        ensureResultsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, results_);
        onChanged();
      } else {
        resultsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder clearResults() {
      if (resultsBuilder_ == null) {
        results_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
      } else {
        resultsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public Builder removeResults(int index) {
      if (resultsBuilder_ == null) {
        ensureResultsIsMutable();
        results_.remove(index);
        onChanged();
      } else {
        resultsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder getResultsBuilder(
        int index) {
      return getResultsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder getResultsOrBuilder(
        int index) {
      if (resultsBuilder_ == null) {
        return results_.get(index);  } else {
        return resultsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder> 
         getResultsOrBuilderList() {
      if (resultsBuilder_ != null) {
        return resultsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(results_);
      }
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder addResultsBuilder() {
      return getResultsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.getDefaultInstance());
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder addResultsBuilder(
        int index) {
      return getResultsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.getDefaultInstance());
    }
    /**
     * <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder> 
         getResultsBuilderList() {
      return getResultsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder> 
        getResultsFieldBuilder() {
      if (resultsBuilder_ == null) {
        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult.Builder, com.google.privacy.dlp.v2beta1.TransformationSummary.SummaryResultOrBuilder>(
                results_,
                ((bitField0_ & 0x00000020) == 0x00000020),
                getParentForChildren(),
                isClean());
        results_ = null;
      }
      return resultsBuilder_;
    }
    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.TransformationSummary)
  }

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

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

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

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

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

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

}

