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

package com.google.privacy.dlp.v2beta1;

/**
 * <pre>
 * A rule for transforming a value.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2beta1.PrimitiveTransformation}
 */
public  final class PrimitiveTransformation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.PrimitiveTransformation)
    PrimitiveTransformationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PrimitiveTransformation.newBuilder() to construct.
  private PrimitiveTransformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PrimitiveTransformation() {
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PrimitiveTransformation(
      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.ReplaceValueConfig.Builder subBuilder = null;
            if (transformationCase_ == 1) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.ReplaceValueConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 1;
            break;
          }
          case 18: {
            com.google.privacy.dlp.v2beta1.RedactConfig.Builder subBuilder = null;
            if (transformationCase_ == 2) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.RedactConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.RedactConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.RedactConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 2;
            break;
          }
          case 26: {
            com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder subBuilder = null;
            if (transformationCase_ == 3) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.CharacterMaskConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 3;
            break;
          }
          case 34: {
            com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder subBuilder = null;
            if (transformationCase_ == 4) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 4;
            break;
          }
          case 42: {
            com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder subBuilder = null;
            if (transformationCase_ == 5) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 5;
            break;
          }
          case 50: {
            com.google.privacy.dlp.v2beta1.BucketingConfig.Builder subBuilder = null;
            if (transformationCase_ == 6) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.BucketingConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 6;
            break;
          }
          case 58: {
            com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder subBuilder = null;
            if (transformationCase_ == 7) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 7;
            break;
          }
          case 66: {
            com.google.privacy.dlp.v2beta1.TimePartConfig.Builder subBuilder = null;
            if (transformationCase_ == 8) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.TimePartConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 8;
            break;
          }
          case 74: {
            com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder subBuilder = null;
            if (transformationCase_ == 9) {
              subBuilder = ((com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_).toBuilder();
            }
            transformation_ =
                input.readMessage(com.google.privacy.dlp.v2beta1.CryptoHashConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_);
              transformation_ = subBuilder.buildPartial();
            }
            transformationCase_ = 9;
            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_PrimitiveTransformation_descriptor;
  }

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

  private int transformationCase_ = 0;
  private java.lang.Object transformation_;
  public enum TransformationCase
      implements com.google.protobuf.Internal.EnumLite {
    REPLACE_CONFIG(1),
    REDACT_CONFIG(2),
    CHARACTER_MASK_CONFIG(3),
    CRYPTO_REPLACE_FFX_FPE_CONFIG(4),
    FIXED_SIZE_BUCKETING_CONFIG(5),
    BUCKETING_CONFIG(6),
    REPLACE_WITH_INFO_TYPE_CONFIG(7),
    TIME_PART_CONFIG(8),
    CRYPTO_HASH_CONFIG(9),
    TRANSFORMATION_NOT_SET(0);
    private final int value;
    private TransformationCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TransformationCase valueOf(int value) {
      return forNumber(value);
    }

    public static TransformationCase forNumber(int value) {
      switch (value) {
        case 1: return REPLACE_CONFIG;
        case 2: return REDACT_CONFIG;
        case 3: return CHARACTER_MASK_CONFIG;
        case 4: return CRYPTO_REPLACE_FFX_FPE_CONFIG;
        case 5: return FIXED_SIZE_BUCKETING_CONFIG;
        case 6: return BUCKETING_CONFIG;
        case 7: return REPLACE_WITH_INFO_TYPE_CONFIG;
        case 8: return TIME_PART_CONFIG;
        case 9: return CRYPTO_HASH_CONFIG;
        case 0: return TRANSFORMATION_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public TransformationCase
  getTransformationCase() {
    return TransformationCase.forNumber(
        transformationCase_);
  }

  public static final int REPLACE_CONFIG_FIELD_NUMBER = 1;
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
   */
  public boolean hasReplaceConfig() {
    return transformationCase_ == 1;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
   */
  public com.google.privacy.dlp.v2beta1.ReplaceValueConfig getReplaceConfig() {
    if (transformationCase_ == 1) {
       return (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
   */
  public com.google.privacy.dlp.v2beta1.ReplaceValueConfigOrBuilder getReplaceConfigOrBuilder() {
    if (transformationCase_ == 1) {
       return (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
  }

  public static final int REDACT_CONFIG_FIELD_NUMBER = 2;
  /**
   * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
   */
  public boolean hasRedactConfig() {
    return transformationCase_ == 2;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactConfig getRedactConfig() {
    if (transformationCase_ == 2) {
       return (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.RedactConfigOrBuilder getRedactConfigOrBuilder() {
    if (transformationCase_ == 2) {
       return (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
  }

  public static final int CHARACTER_MASK_CONFIG_FIELD_NUMBER = 3;
  /**
   * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
   */
  public boolean hasCharacterMaskConfig() {
    return transformationCase_ == 3;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.CharacterMaskConfig getCharacterMaskConfig() {
    if (transformationCase_ == 3) {
       return (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.CharacterMaskConfigOrBuilder getCharacterMaskConfigOrBuilder() {
    if (transformationCase_ == 3) {
       return (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
  }

  public static final int CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER = 4;
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
   */
  public boolean hasCryptoReplaceFfxFpeConfig() {
    return transformationCase_ == 4;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig getCryptoReplaceFfxFpeConfig() {
    if (transformationCase_ == 4) {
       return (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
   */
  public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfigOrBuilder getCryptoReplaceFfxFpeConfigOrBuilder() {
    if (transformationCase_ == 4) {
       return (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
  }

  public static final int FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER = 5;
  /**
   * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
   */
  public boolean hasFixedSizeBucketingConfig() {
    return transformationCase_ == 5;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
   */
  public com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig getFixedSizeBucketingConfig() {
    if (transformationCase_ == 5) {
       return (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
   */
  public com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfigOrBuilder getFixedSizeBucketingConfigOrBuilder() {
    if (transformationCase_ == 5) {
       return (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
  }

  public static final int BUCKETING_CONFIG_FIELD_NUMBER = 6;
  /**
   * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
   */
  public boolean hasBucketingConfig() {
    return transformationCase_ == 6;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
   */
  public com.google.privacy.dlp.v2beta1.BucketingConfig getBucketingConfig() {
    if (transformationCase_ == 6) {
       return (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
   */
  public com.google.privacy.dlp.v2beta1.BucketingConfigOrBuilder getBucketingConfigOrBuilder() {
    if (transformationCase_ == 6) {
       return (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
  }

  public static final int REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER = 7;
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
   */
  public boolean hasReplaceWithInfoTypeConfig() {
    return transformationCase_ == 7;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
   */
  public com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig() {
    if (transformationCase_ == 7) {
       return (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
   */
  public com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfigOrBuilder getReplaceWithInfoTypeConfigOrBuilder() {
    if (transformationCase_ == 7) {
       return (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
  }

  public static final int TIME_PART_CONFIG_FIELD_NUMBER = 8;
  /**
   * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
   */
  public boolean hasTimePartConfig() {
    return transformationCase_ == 8;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
   */
  public com.google.privacy.dlp.v2beta1.TimePartConfig getTimePartConfig() {
    if (transformationCase_ == 8) {
       return (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
   */
  public com.google.privacy.dlp.v2beta1.TimePartConfigOrBuilder getTimePartConfigOrBuilder() {
    if (transformationCase_ == 8) {
       return (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
  }

  public static final int CRYPTO_HASH_CONFIG_FIELD_NUMBER = 9;
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
   */
  public boolean hasCryptoHashConfig() {
    return transformationCase_ == 9;
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
   */
  public com.google.privacy.dlp.v2beta1.CryptoHashConfig getCryptoHashConfig() {
    if (transformationCase_ == 9) {
       return (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
   */
  public com.google.privacy.dlp.v2beta1.CryptoHashConfigOrBuilder getCryptoHashConfigOrBuilder() {
    if (transformationCase_ == 9) {
       return (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_;
    }
    return com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
  }

  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 (transformationCase_ == 1) {
      output.writeMessage(1, (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_);
    }
    if (transformationCase_ == 2) {
      output.writeMessage(2, (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_);
    }
    if (transformationCase_ == 3) {
      output.writeMessage(3, (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_);
    }
    if (transformationCase_ == 4) {
      output.writeMessage(4, (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_);
    }
    if (transformationCase_ == 5) {
      output.writeMessage(5, (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_);
    }
    if (transformationCase_ == 6) {
      output.writeMessage(6, (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_);
    }
    if (transformationCase_ == 7) {
      output.writeMessage(7, (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_);
    }
    if (transformationCase_ == 8) {
      output.writeMessage(8, (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_);
    }
    if (transformationCase_ == 9) {
      output.writeMessage(9, (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (transformationCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_);
    }
    if (transformationCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_);
    }
    if (transformationCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_);
    }
    if (transformationCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_);
    }
    if (transformationCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_);
    }
    if (transformationCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_);
    }
    if (transformationCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_);
    }
    if (transformationCase_ == 8) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_);
    }
    if (transformationCase_ == 9) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_);
    }
    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.PrimitiveTransformation)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2beta1.PrimitiveTransformation other = (com.google.privacy.dlp.v2beta1.PrimitiveTransformation) obj;

    boolean result = true;
    result = result && getTransformationCase().equals(
        other.getTransformationCase());
    if (!result) return false;
    switch (transformationCase_) {
      case 1:
        result = result && getReplaceConfig()
            .equals(other.getReplaceConfig());
        break;
      case 2:
        result = result && getRedactConfig()
            .equals(other.getRedactConfig());
        break;
      case 3:
        result = result && getCharacterMaskConfig()
            .equals(other.getCharacterMaskConfig());
        break;
      case 4:
        result = result && getCryptoReplaceFfxFpeConfig()
            .equals(other.getCryptoReplaceFfxFpeConfig());
        break;
      case 5:
        result = result && getFixedSizeBucketingConfig()
            .equals(other.getFixedSizeBucketingConfig());
        break;
      case 6:
        result = result && getBucketingConfig()
            .equals(other.getBucketingConfig());
        break;
      case 7:
        result = result && getReplaceWithInfoTypeConfig()
            .equals(other.getReplaceWithInfoTypeConfig());
        break;
      case 8:
        result = result && getTimePartConfig()
            .equals(other.getTimePartConfig());
        break;
      case 9:
        result = result && getCryptoHashConfig()
            .equals(other.getCryptoHashConfig());
        break;
      case 0:
      default:
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (transformationCase_) {
      case 1:
        hash = (37 * hash) + REPLACE_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getReplaceConfig().hashCode();
        break;
      case 2:
        hash = (37 * hash) + REDACT_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getRedactConfig().hashCode();
        break;
      case 3:
        hash = (37 * hash) + CHARACTER_MASK_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getCharacterMaskConfig().hashCode();
        break;
      case 4:
        hash = (37 * hash) + CRYPTO_REPLACE_FFX_FPE_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getCryptoReplaceFfxFpeConfig().hashCode();
        break;
      case 5:
        hash = (37 * hash) + FIXED_SIZE_BUCKETING_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getFixedSizeBucketingConfig().hashCode();
        break;
      case 6:
        hash = (37 * hash) + BUCKETING_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getBucketingConfig().hashCode();
        break;
      case 7:
        hash = (37 * hash) + REPLACE_WITH_INFO_TYPE_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getReplaceWithInfoTypeConfig().hashCode();
        break;
      case 8:
        hash = (37 * hash) + TIME_PART_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getTimePartConfig().hashCode();
        break;
      case 9:
        hash = (37 * hash) + CRYPTO_HASH_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getCryptoHashConfig().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.google.privacy.dlp.v2beta1.PrimitiveTransformation.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();
      transformationCase_ = 0;
      transformation_ = null;
      return this;
    }

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

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

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

    public com.google.privacy.dlp.v2beta1.PrimitiveTransformation buildPartial() {
      com.google.privacy.dlp.v2beta1.PrimitiveTransformation result = new com.google.privacy.dlp.v2beta1.PrimitiveTransformation(this);
      if (transformationCase_ == 1) {
        if (replaceConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = replaceConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 2) {
        if (redactConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = redactConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 3) {
        if (characterMaskConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = characterMaskConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 4) {
        if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = cryptoReplaceFfxFpeConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 5) {
        if (fixedSizeBucketingConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = fixedSizeBucketingConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 6) {
        if (bucketingConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = bucketingConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 7) {
        if (replaceWithInfoTypeConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = replaceWithInfoTypeConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 8) {
        if (timePartConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = timePartConfigBuilder_.build();
        }
      }
      if (transformationCase_ == 9) {
        if (cryptoHashConfigBuilder_ == null) {
          result.transformation_ = transformation_;
        } else {
          result.transformation_ = cryptoHashConfigBuilder_.build();
        }
      }
      result.transformationCase_ = transformationCase_;
      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.PrimitiveTransformation) {
        return mergeFrom((com.google.privacy.dlp.v2beta1.PrimitiveTransformation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2beta1.PrimitiveTransformation other) {
      if (other == com.google.privacy.dlp.v2beta1.PrimitiveTransformation.getDefaultInstance()) return this;
      switch (other.getTransformationCase()) {
        case REPLACE_CONFIG: {
          mergeReplaceConfig(other.getReplaceConfig());
          break;
        }
        case REDACT_CONFIG: {
          mergeRedactConfig(other.getRedactConfig());
          break;
        }
        case CHARACTER_MASK_CONFIG: {
          mergeCharacterMaskConfig(other.getCharacterMaskConfig());
          break;
        }
        case CRYPTO_REPLACE_FFX_FPE_CONFIG: {
          mergeCryptoReplaceFfxFpeConfig(other.getCryptoReplaceFfxFpeConfig());
          break;
        }
        case FIXED_SIZE_BUCKETING_CONFIG: {
          mergeFixedSizeBucketingConfig(other.getFixedSizeBucketingConfig());
          break;
        }
        case BUCKETING_CONFIG: {
          mergeBucketingConfig(other.getBucketingConfig());
          break;
        }
        case REPLACE_WITH_INFO_TYPE_CONFIG: {
          mergeReplaceWithInfoTypeConfig(other.getReplaceWithInfoTypeConfig());
          break;
        }
        case TIME_PART_CONFIG: {
          mergeTimePartConfig(other.getTimePartConfig());
          break;
        }
        case CRYPTO_HASH_CONFIG: {
          mergeCryptoHashConfig(other.getCryptoHashConfig());
          break;
        }
        case TRANSFORMATION_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    public Builder clearTransformation() {
      transformationCase_ = 0;
      transformation_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ReplaceValueConfig, com.google.privacy.dlp.v2beta1.ReplaceValueConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceValueConfigOrBuilder> replaceConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public boolean hasReplaceConfig() {
      return transformationCase_ == 1;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceValueConfig getReplaceConfig() {
      if (replaceConfigBuilder_ == null) {
        if (transformationCase_ == 1) {
          return (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 1) {
          return replaceConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public Builder setReplaceConfig(com.google.privacy.dlp.v2beta1.ReplaceValueConfig value) {
      if (replaceConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        replaceConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 1;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public Builder setReplaceConfig(
        com.google.privacy.dlp.v2beta1.ReplaceValueConfig.Builder builderForValue) {
      if (replaceConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        replaceConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 1;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public Builder mergeReplaceConfig(com.google.privacy.dlp.v2beta1.ReplaceValueConfig value) {
      if (replaceConfigBuilder_ == null) {
        if (transformationCase_ == 1 &&
            transformation_ != com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.ReplaceValueConfig.newBuilder((com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 1) {
          replaceConfigBuilder_.mergeFrom(value);
        }
        replaceConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 1;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public Builder clearReplaceConfig() {
      if (replaceConfigBuilder_ == null) {
        if (transformationCase_ == 1) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 1) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        replaceConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceValueConfig.Builder getReplaceConfigBuilder() {
      return getReplaceConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceValueConfigOrBuilder getReplaceConfigOrBuilder() {
      if ((transformationCase_ == 1) && (replaceConfigBuilder_ != null)) {
        return replaceConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 1) {
          return (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceValueConfig replace_config = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ReplaceValueConfig, com.google.privacy.dlp.v2beta1.ReplaceValueConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceValueConfigOrBuilder> 
        getReplaceConfigFieldBuilder() {
      if (replaceConfigBuilder_ == null) {
        if (!(transformationCase_ == 1)) {
          transformation_ = com.google.privacy.dlp.v2beta1.ReplaceValueConfig.getDefaultInstance();
        }
        replaceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.ReplaceValueConfig, com.google.privacy.dlp.v2beta1.ReplaceValueConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceValueConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.ReplaceValueConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 1;
      onChanged();;
      return replaceConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactConfig, com.google.privacy.dlp.v2beta1.RedactConfig.Builder, com.google.privacy.dlp.v2beta1.RedactConfigOrBuilder> redactConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public boolean hasRedactConfig() {
      return transformationCase_ == 2;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactConfig getRedactConfig() {
      if (redactConfigBuilder_ == null) {
        if (transformationCase_ == 2) {
          return (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 2) {
          return redactConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public Builder setRedactConfig(com.google.privacy.dlp.v2beta1.RedactConfig value) {
      if (redactConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        redactConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 2;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public Builder setRedactConfig(
        com.google.privacy.dlp.v2beta1.RedactConfig.Builder builderForValue) {
      if (redactConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        redactConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 2;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public Builder mergeRedactConfig(com.google.privacy.dlp.v2beta1.RedactConfig value) {
      if (redactConfigBuilder_ == null) {
        if (transformationCase_ == 2 &&
            transformation_ != com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.RedactConfig.newBuilder((com.google.privacy.dlp.v2beta1.RedactConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 2) {
          redactConfigBuilder_.mergeFrom(value);
        }
        redactConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 2;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public Builder clearRedactConfig() {
      if (redactConfigBuilder_ == null) {
        if (transformationCase_ == 2) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 2) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        redactConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactConfig.Builder getRedactConfigBuilder() {
      return getRedactConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.RedactConfigOrBuilder getRedactConfigOrBuilder() {
      if ((transformationCase_ == 2) && (redactConfigBuilder_ != null)) {
        return redactConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 2) {
          return (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.RedactConfig redact_config = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.RedactConfig, com.google.privacy.dlp.v2beta1.RedactConfig.Builder, com.google.privacy.dlp.v2beta1.RedactConfigOrBuilder> 
        getRedactConfigFieldBuilder() {
      if (redactConfigBuilder_ == null) {
        if (!(transformationCase_ == 2)) {
          transformation_ = com.google.privacy.dlp.v2beta1.RedactConfig.getDefaultInstance();
        }
        redactConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.RedactConfig, com.google.privacy.dlp.v2beta1.RedactConfig.Builder, com.google.privacy.dlp.v2beta1.RedactConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.RedactConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 2;
      onChanged();;
      return redactConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CharacterMaskConfig, com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder, com.google.privacy.dlp.v2beta1.CharacterMaskConfigOrBuilder> characterMaskConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public boolean hasCharacterMaskConfig() {
      return transformationCase_ == 3;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.CharacterMaskConfig getCharacterMaskConfig() {
      if (characterMaskConfigBuilder_ == null) {
        if (transformationCase_ == 3) {
          return (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 3) {
          return characterMaskConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public Builder setCharacterMaskConfig(com.google.privacy.dlp.v2beta1.CharacterMaskConfig value) {
      if (characterMaskConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        characterMaskConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 3;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public Builder setCharacterMaskConfig(
        com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder builderForValue) {
      if (characterMaskConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        characterMaskConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 3;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public Builder mergeCharacterMaskConfig(com.google.privacy.dlp.v2beta1.CharacterMaskConfig value) {
      if (characterMaskConfigBuilder_ == null) {
        if (transformationCase_ == 3 &&
            transformation_ != com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.CharacterMaskConfig.newBuilder((com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 3) {
          characterMaskConfigBuilder_.mergeFrom(value);
        }
        characterMaskConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 3;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public Builder clearCharacterMaskConfig() {
      if (characterMaskConfigBuilder_ == null) {
        if (transformationCase_ == 3) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 3) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        characterMaskConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder getCharacterMaskConfigBuilder() {
      return getCharacterMaskConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.CharacterMaskConfigOrBuilder getCharacterMaskConfigOrBuilder() {
      if ((transformationCase_ == 3) && (characterMaskConfigBuilder_ != null)) {
        return characterMaskConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 3) {
          return (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CharacterMaskConfig character_mask_config = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CharacterMaskConfig, com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder, com.google.privacy.dlp.v2beta1.CharacterMaskConfigOrBuilder> 
        getCharacterMaskConfigFieldBuilder() {
      if (characterMaskConfigBuilder_ == null) {
        if (!(transformationCase_ == 3)) {
          transformation_ = com.google.privacy.dlp.v2beta1.CharacterMaskConfig.getDefaultInstance();
        }
        characterMaskConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.CharacterMaskConfig, com.google.privacy.dlp.v2beta1.CharacterMaskConfig.Builder, com.google.privacy.dlp.v2beta1.CharacterMaskConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 3;
      onChanged();;
      return characterMaskConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfigOrBuilder> cryptoReplaceFfxFpeConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public boolean hasCryptoReplaceFfxFpeConfig() {
      return transformationCase_ == 4;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig getCryptoReplaceFfxFpeConfig() {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        if (transformationCase_ == 4) {
          return (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 4) {
          return cryptoReplaceFfxFpeConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public Builder setCryptoReplaceFfxFpeConfig(com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig value) {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        cryptoReplaceFfxFpeConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public Builder setCryptoReplaceFfxFpeConfig(
        com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder builderForValue) {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        cryptoReplaceFfxFpeConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public Builder mergeCryptoReplaceFfxFpeConfig(com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig value) {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        if (transformationCase_ == 4 &&
            transformation_ != com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.newBuilder((com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 4) {
          cryptoReplaceFfxFpeConfigBuilder_.mergeFrom(value);
        }
        cryptoReplaceFfxFpeConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public Builder clearCryptoReplaceFfxFpeConfig() {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        if (transformationCase_ == 4) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 4) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        cryptoReplaceFfxFpeConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder getCryptoReplaceFfxFpeConfigBuilder() {
      return getCryptoReplaceFfxFpeConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfigOrBuilder getCryptoReplaceFfxFpeConfigOrBuilder() {
      if ((transformationCase_ == 4) && (cryptoReplaceFfxFpeConfigBuilder_ != null)) {
        return cryptoReplaceFfxFpeConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 4) {
          return (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfigOrBuilder> 
        getCryptoReplaceFfxFpeConfigFieldBuilder() {
      if (cryptoReplaceFfxFpeConfigBuilder_ == null) {
        if (!(transformationCase_ == 4)) {
          transformation_ = com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.getDefaultInstance();
        }
        cryptoReplaceFfxFpeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 4;
      onChanged();;
      return cryptoReplaceFfxFpeConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfigOrBuilder> fixedSizeBucketingConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public boolean hasFixedSizeBucketingConfig() {
      return transformationCase_ == 5;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig getFixedSizeBucketingConfig() {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        if (transformationCase_ == 5) {
          return (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 5) {
          return fixedSizeBucketingConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public Builder setFixedSizeBucketingConfig(com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig value) {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        fixedSizeBucketingConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 5;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public Builder setFixedSizeBucketingConfig(
        com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder builderForValue) {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        fixedSizeBucketingConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 5;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public Builder mergeFixedSizeBucketingConfig(com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig value) {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        if (transformationCase_ == 5 &&
            transformation_ != com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.newBuilder((com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 5) {
          fixedSizeBucketingConfigBuilder_.mergeFrom(value);
        }
        fixedSizeBucketingConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 5;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public Builder clearFixedSizeBucketingConfig() {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        if (transformationCase_ == 5) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 5) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        fixedSizeBucketingConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder getFixedSizeBucketingConfigBuilder() {
      return getFixedSizeBucketingConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    public com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfigOrBuilder getFixedSizeBucketingConfigOrBuilder() {
      if ((transformationCase_ == 5) && (fixedSizeBucketingConfigBuilder_ != null)) {
        return fixedSizeBucketingConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 5) {
          return (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig fixed_size_bucketing_config = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfigOrBuilder> 
        getFixedSizeBucketingConfigFieldBuilder() {
      if (fixedSizeBucketingConfigBuilder_ == null) {
        if (!(transformationCase_ == 5)) {
          transformation_ = com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.getDefaultInstance();
        }
        fixedSizeBucketingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig.Builder, com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.FixedSizeBucketingConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 5;
      onChanged();;
      return fixedSizeBucketingConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.BucketingConfig, com.google.privacy.dlp.v2beta1.BucketingConfig.Builder, com.google.privacy.dlp.v2beta1.BucketingConfigOrBuilder> bucketingConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public boolean hasBucketingConfig() {
      return transformationCase_ == 6;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.BucketingConfig getBucketingConfig() {
      if (bucketingConfigBuilder_ == null) {
        if (transformationCase_ == 6) {
          return (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 6) {
          return bucketingConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public Builder setBucketingConfig(com.google.privacy.dlp.v2beta1.BucketingConfig value) {
      if (bucketingConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        bucketingConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 6;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public Builder setBucketingConfig(
        com.google.privacy.dlp.v2beta1.BucketingConfig.Builder builderForValue) {
      if (bucketingConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        bucketingConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 6;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public Builder mergeBucketingConfig(com.google.privacy.dlp.v2beta1.BucketingConfig value) {
      if (bucketingConfigBuilder_ == null) {
        if (transformationCase_ == 6 &&
            transformation_ != com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.BucketingConfig.newBuilder((com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 6) {
          bucketingConfigBuilder_.mergeFrom(value);
        }
        bucketingConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 6;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public Builder clearBucketingConfig() {
      if (bucketingConfigBuilder_ == null) {
        if (transformationCase_ == 6) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 6) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        bucketingConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.BucketingConfig.Builder getBucketingConfigBuilder() {
      return getBucketingConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    public com.google.privacy.dlp.v2beta1.BucketingConfigOrBuilder getBucketingConfigOrBuilder() {
      if ((transformationCase_ == 6) && (bucketingConfigBuilder_ != null)) {
        return bucketingConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 6) {
          return (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.BucketingConfig bucketing_config = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.BucketingConfig, com.google.privacy.dlp.v2beta1.BucketingConfig.Builder, com.google.privacy.dlp.v2beta1.BucketingConfigOrBuilder> 
        getBucketingConfigFieldBuilder() {
      if (bucketingConfigBuilder_ == null) {
        if (!(transformationCase_ == 6)) {
          transformation_ = com.google.privacy.dlp.v2beta1.BucketingConfig.getDefaultInstance();
        }
        bucketingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.BucketingConfig, com.google.privacy.dlp.v2beta1.BucketingConfig.Builder, com.google.privacy.dlp.v2beta1.BucketingConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.BucketingConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 6;
      onChanged();;
      return bucketingConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfigOrBuilder> replaceWithInfoTypeConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public boolean hasReplaceWithInfoTypeConfig() {
      return transformationCase_ == 7;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig() {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        if (transformationCase_ == 7) {
          return (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 7) {
          return replaceWithInfoTypeConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public Builder setReplaceWithInfoTypeConfig(com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig value) {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        replaceWithInfoTypeConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 7;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public Builder setReplaceWithInfoTypeConfig(
        com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder builderForValue) {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        replaceWithInfoTypeConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 7;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public Builder mergeReplaceWithInfoTypeConfig(com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig value) {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        if (transformationCase_ == 7 &&
            transformation_ != com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.newBuilder((com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 7) {
          replaceWithInfoTypeConfigBuilder_.mergeFrom(value);
        }
        replaceWithInfoTypeConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 7;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public Builder clearReplaceWithInfoTypeConfig() {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        if (transformationCase_ == 7) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 7) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        replaceWithInfoTypeConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder getReplaceWithInfoTypeConfigBuilder() {
      return getReplaceWithInfoTypeConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    public com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfigOrBuilder getReplaceWithInfoTypeConfigOrBuilder() {
      if ((transformationCase_ == 7) && (replaceWithInfoTypeConfigBuilder_ != null)) {
        return replaceWithInfoTypeConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 7) {
          return (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfigOrBuilder> 
        getReplaceWithInfoTypeConfigFieldBuilder() {
      if (replaceWithInfoTypeConfigBuilder_ == null) {
        if (!(transformationCase_ == 7)) {
          transformation_ = com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.getDefaultInstance();
        }
        replaceWithInfoTypeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig.Builder, com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.ReplaceWithInfoTypeConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 7;
      onChanged();;
      return replaceWithInfoTypeConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.TimePartConfig, com.google.privacy.dlp.v2beta1.TimePartConfig.Builder, com.google.privacy.dlp.v2beta1.TimePartConfigOrBuilder> timePartConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public boolean hasTimePartConfig() {
      return transformationCase_ == 8;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public com.google.privacy.dlp.v2beta1.TimePartConfig getTimePartConfig() {
      if (timePartConfigBuilder_ == null) {
        if (transformationCase_ == 8) {
          return (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 8) {
          return timePartConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public Builder setTimePartConfig(com.google.privacy.dlp.v2beta1.TimePartConfig value) {
      if (timePartConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        timePartConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 8;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public Builder setTimePartConfig(
        com.google.privacy.dlp.v2beta1.TimePartConfig.Builder builderForValue) {
      if (timePartConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        timePartConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 8;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public Builder mergeTimePartConfig(com.google.privacy.dlp.v2beta1.TimePartConfig value) {
      if (timePartConfigBuilder_ == null) {
        if (transformationCase_ == 8 &&
            transformation_ != com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.TimePartConfig.newBuilder((com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 8) {
          timePartConfigBuilder_.mergeFrom(value);
        }
        timePartConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 8;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public Builder clearTimePartConfig() {
      if (timePartConfigBuilder_ == null) {
        if (transformationCase_ == 8) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 8) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        timePartConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public com.google.privacy.dlp.v2beta1.TimePartConfig.Builder getTimePartConfigBuilder() {
      return getTimePartConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    public com.google.privacy.dlp.v2beta1.TimePartConfigOrBuilder getTimePartConfigOrBuilder() {
      if ((transformationCase_ == 8) && (timePartConfigBuilder_ != null)) {
        return timePartConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 8) {
          return (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.TimePartConfig time_part_config = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.TimePartConfig, com.google.privacy.dlp.v2beta1.TimePartConfig.Builder, com.google.privacy.dlp.v2beta1.TimePartConfigOrBuilder> 
        getTimePartConfigFieldBuilder() {
      if (timePartConfigBuilder_ == null) {
        if (!(transformationCase_ == 8)) {
          transformation_ = com.google.privacy.dlp.v2beta1.TimePartConfig.getDefaultInstance();
        }
        timePartConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.TimePartConfig, com.google.privacy.dlp.v2beta1.TimePartConfig.Builder, com.google.privacy.dlp.v2beta1.TimePartConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.TimePartConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 8;
      onChanged();;
      return timePartConfigBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CryptoHashConfig, com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoHashConfigOrBuilder> cryptoHashConfigBuilder_;
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public boolean hasCryptoHashConfig() {
      return transformationCase_ == 9;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoHashConfig getCryptoHashConfig() {
      if (cryptoHashConfigBuilder_ == null) {
        if (transformationCase_ == 9) {
          return (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
      } else {
        if (transformationCase_ == 9) {
          return cryptoHashConfigBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public Builder setCryptoHashConfig(com.google.privacy.dlp.v2beta1.CryptoHashConfig value) {
      if (cryptoHashConfigBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        transformation_ = value;
        onChanged();
      } else {
        cryptoHashConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 9;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public Builder setCryptoHashConfig(
        com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder builderForValue) {
      if (cryptoHashConfigBuilder_ == null) {
        transformation_ = builderForValue.build();
        onChanged();
      } else {
        cryptoHashConfigBuilder_.setMessage(builderForValue.build());
      }
      transformationCase_ = 9;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public Builder mergeCryptoHashConfig(com.google.privacy.dlp.v2beta1.CryptoHashConfig value) {
      if (cryptoHashConfigBuilder_ == null) {
        if (transformationCase_ == 9 &&
            transformation_ != com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance()) {
          transformation_ = com.google.privacy.dlp.v2beta1.CryptoHashConfig.newBuilder((com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_)
              .mergeFrom(value).buildPartial();
        } else {
          transformation_ = value;
        }
        onChanged();
      } else {
        if (transformationCase_ == 9) {
          cryptoHashConfigBuilder_.mergeFrom(value);
        }
        cryptoHashConfigBuilder_.setMessage(value);
      }
      transformationCase_ = 9;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public Builder clearCryptoHashConfig() {
      if (cryptoHashConfigBuilder_ == null) {
        if (transformationCase_ == 9) {
          transformationCase_ = 0;
          transformation_ = null;
          onChanged();
        }
      } else {
        if (transformationCase_ == 9) {
          transformationCase_ = 0;
          transformation_ = null;
        }
        cryptoHashConfigBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder getCryptoHashConfigBuilder() {
      return getCryptoHashConfigFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    public com.google.privacy.dlp.v2beta1.CryptoHashConfigOrBuilder getCryptoHashConfigOrBuilder() {
      if ((transformationCase_ == 9) && (cryptoHashConfigBuilder_ != null)) {
        return cryptoHashConfigBuilder_.getMessageOrBuilder();
      } else {
        if (transformationCase_ == 9) {
          return (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_;
        }
        return com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2beta1.CryptoHashConfig crypto_hash_config = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.CryptoHashConfig, com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoHashConfigOrBuilder> 
        getCryptoHashConfigFieldBuilder() {
      if (cryptoHashConfigBuilder_ == null) {
        if (!(transformationCase_ == 9)) {
          transformation_ = com.google.privacy.dlp.v2beta1.CryptoHashConfig.getDefaultInstance();
        }
        cryptoHashConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.CryptoHashConfig, com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder, com.google.privacy.dlp.v2beta1.CryptoHashConfigOrBuilder>(
                (com.google.privacy.dlp.v2beta1.CryptoHashConfig) transformation_,
                getParentForChildren(),
                isClean());
        transformation_ = null;
      }
      transformationCase_ = 9;
      onChanged();;
      return cryptoHashConfigBuilder_;
    }
    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.PrimitiveTransformation)
  }

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

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

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

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

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

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

}

