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

package com.google.privacy.dlp.v2;

/**
 * <pre>
 * Findings container location data.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2.ContentLocation}
 */
public  final class ContentLocation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ContentLocation)
    ContentLocationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ContentLocation.newBuilder() to construct.
  private ContentLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ContentLocation() {
    containerName_ = "";
    containerVersion_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ContentLocation(
      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: {
            java.lang.String s = input.readStringRequireUtf8();

            containerName_ = s;
            break;
          }
          case 18: {
            com.google.privacy.dlp.v2.RecordLocation.Builder subBuilder = null;
            if (locationCase_ == 2) {
              subBuilder = ((com.google.privacy.dlp.v2.RecordLocation) location_).toBuilder();
            }
            location_ =
                input.readMessage(com.google.privacy.dlp.v2.RecordLocation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.RecordLocation) location_);
              location_ = subBuilder.buildPartial();
            }
            locationCase_ = 2;
            break;
          }
          case 26: {
            com.google.privacy.dlp.v2.ImageLocation.Builder subBuilder = null;
            if (locationCase_ == 3) {
              subBuilder = ((com.google.privacy.dlp.v2.ImageLocation) location_).toBuilder();
            }
            location_ =
                input.readMessage(com.google.privacy.dlp.v2.ImageLocation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.ImageLocation) location_);
              location_ = subBuilder.buildPartial();
            }
            locationCase_ = 3;
            break;
          }
          case 42: {
            com.google.privacy.dlp.v2.DocumentLocation.Builder subBuilder = null;
            if (locationCase_ == 5) {
              subBuilder = ((com.google.privacy.dlp.v2.DocumentLocation) location_).toBuilder();
            }
            location_ =
                input.readMessage(com.google.privacy.dlp.v2.DocumentLocation.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.DocumentLocation) location_);
              location_ = subBuilder.buildPartial();
            }
            locationCase_ = 5;
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (containerTimestamp_ != null) {
              subBuilder = containerTimestamp_.toBuilder();
            }
            containerTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(containerTimestamp_);
              containerTimestamp_ = subBuilder.buildPartial();
            }

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

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

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ContentLocation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.privacy.dlp.v2.ContentLocation.class, com.google.privacy.dlp.v2.ContentLocation.Builder.class);
  }

  private int locationCase_ = 0;
  private java.lang.Object location_;
  public enum LocationCase
      implements com.google.protobuf.Internal.EnumLite {
    RECORD_LOCATION(2),
    IMAGE_LOCATION(3),
    DOCUMENT_LOCATION(5),
    LOCATION_NOT_SET(0);
    private final int value;
    private LocationCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static LocationCase valueOf(int value) {
      return forNumber(value);
    }

    public static LocationCase forNumber(int value) {
      switch (value) {
        case 2: return RECORD_LOCATION;
        case 3: return IMAGE_LOCATION;
        case 5: return DOCUMENT_LOCATION;
        case 0: return LOCATION_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public LocationCase
  getLocationCase() {
    return LocationCase.forNumber(
        locationCase_);
  }

  public static final int CONTAINER_NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object containerName_;
  /**
   * <pre>
   * Name of the container where the finding is located.
   * The top level name is the source file name or table name. Nested names
   * could be absent if the embedded object has no string identifier
   * (for an example an image contained within a document).
   * </pre>
   *
   * <code>string container_name = 1;</code>
   */
  public java.lang.String getContainerName() {
    java.lang.Object ref = containerName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      containerName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Name of the container where the finding is located.
   * The top level name is the source file name or table name. Nested names
   * could be absent if the embedded object has no string identifier
   * (for an example an image contained within a document).
   * </pre>
   *
   * <code>string container_name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getContainerNameBytes() {
    java.lang.Object ref = containerName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      containerName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECORD_LOCATION_FIELD_NUMBER = 2;
  /**
   * <pre>
   * Location within a row or record of a database table.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
   */
  public boolean hasRecordLocation() {
    return locationCase_ == 2;
  }
  /**
   * <pre>
   * Location within a row or record of a database table.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
   */
  public com.google.privacy.dlp.v2.RecordLocation getRecordLocation() {
    if (locationCase_ == 2) {
       return (com.google.privacy.dlp.v2.RecordLocation) location_;
    }
    return com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
  }
  /**
   * <pre>
   * Location within a row or record of a database table.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
   */
  public com.google.privacy.dlp.v2.RecordLocationOrBuilder getRecordLocationOrBuilder() {
    if (locationCase_ == 2) {
       return (com.google.privacy.dlp.v2.RecordLocation) location_;
    }
    return com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
  }

  public static final int IMAGE_LOCATION_FIELD_NUMBER = 3;
  /**
   * <pre>
   * Location within an image's pixels.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
   */
  public boolean hasImageLocation() {
    return locationCase_ == 3;
  }
  /**
   * <pre>
   * Location within an image's pixels.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
   */
  public com.google.privacy.dlp.v2.ImageLocation getImageLocation() {
    if (locationCase_ == 3) {
       return (com.google.privacy.dlp.v2.ImageLocation) location_;
    }
    return com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
  }
  /**
   * <pre>
   * Location within an image's pixels.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
   */
  public com.google.privacy.dlp.v2.ImageLocationOrBuilder getImageLocationOrBuilder() {
    if (locationCase_ == 3) {
       return (com.google.privacy.dlp.v2.ImageLocation) location_;
    }
    return com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
  }

  public static final int DOCUMENT_LOCATION_FIELD_NUMBER = 5;
  /**
   * <pre>
   * Location data for document files.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
   */
  public boolean hasDocumentLocation() {
    return locationCase_ == 5;
  }
  /**
   * <pre>
   * Location data for document files.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
   */
  public com.google.privacy.dlp.v2.DocumentLocation getDocumentLocation() {
    if (locationCase_ == 5) {
       return (com.google.privacy.dlp.v2.DocumentLocation) location_;
    }
    return com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
  }
  /**
   * <pre>
   * Location data for document files.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
   */
  public com.google.privacy.dlp.v2.DocumentLocationOrBuilder getDocumentLocationOrBuilder() {
    if (locationCase_ == 5) {
       return (com.google.privacy.dlp.v2.DocumentLocation) location_;
    }
    return com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
  }

  public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp containerTimestamp_;
  /**
   * <pre>
   * Findings container modification timestamp, if applicable.
   * For Google Cloud Storage contains last file modification timestamp.
   * For BigQuery table contains last_modified_time property.
   * For Datastore - not populated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
   */
  public boolean hasContainerTimestamp() {
    return containerTimestamp_ != null;
  }
  /**
   * <pre>
   * Findings container modification timestamp, if applicable.
   * For Google Cloud Storage contains last file modification timestamp.
   * For BigQuery table contains last_modified_time property.
   * For Datastore - not populated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
   */
  public com.google.protobuf.Timestamp getContainerTimestamp() {
    return containerTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : containerTimestamp_;
  }
  /**
   * <pre>
   * Findings container modification timestamp, if applicable.
   * For Google Cloud Storage contains last file modification timestamp.
   * For BigQuery table contains last_modified_time property.
   * For Datastore - not populated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
    return getContainerTimestamp();
  }

  public static final int CONTAINER_VERSION_FIELD_NUMBER = 7;
  private volatile java.lang.Object containerVersion_;
  /**
   * <pre>
   * Findings container version, if available
   * ("generation" for Google Cloud Storage).
   * </pre>
   *
   * <code>string container_version = 7;</code>
   */
  public java.lang.String getContainerVersion() {
    java.lang.Object ref = containerVersion_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      containerVersion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Findings container version, if available
   * ("generation" for Google Cloud Storage).
   * </pre>
   *
   * <code>string container_version = 7;</code>
   */
  public com.google.protobuf.ByteString
      getContainerVersionBytes() {
    java.lang.Object ref = containerVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      containerVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getContainerNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, containerName_);
    }
    if (locationCase_ == 2) {
      output.writeMessage(2, (com.google.privacy.dlp.v2.RecordLocation) location_);
    }
    if (locationCase_ == 3) {
      output.writeMessage(3, (com.google.privacy.dlp.v2.ImageLocation) location_);
    }
    if (locationCase_ == 5) {
      output.writeMessage(5, (com.google.privacy.dlp.v2.DocumentLocation) location_);
    }
    if (containerTimestamp_ != null) {
      output.writeMessage(6, getContainerTimestamp());
    }
    if (!getContainerVersionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, containerVersion_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getContainerNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, containerName_);
    }
    if (locationCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.google.privacy.dlp.v2.RecordLocation) location_);
    }
    if (locationCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.google.privacy.dlp.v2.ImageLocation) location_);
    }
    if (locationCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.google.privacy.dlp.v2.DocumentLocation) location_);
    }
    if (containerTimestamp_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getContainerTimestamp());
    }
    if (!getContainerVersionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, containerVersion_);
    }
    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.v2.ContentLocation)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2.ContentLocation other = (com.google.privacy.dlp.v2.ContentLocation) obj;

    boolean result = true;
    result = result && getContainerName()
        .equals(other.getContainerName());
    result = result && (hasContainerTimestamp() == other.hasContainerTimestamp());
    if (hasContainerTimestamp()) {
      result = result && getContainerTimestamp()
          .equals(other.getContainerTimestamp());
    }
    result = result && getContainerVersion()
        .equals(other.getContainerVersion());
    result = result && getLocationCase().equals(
        other.getLocationCase());
    if (!result) return false;
    switch (locationCase_) {
      case 2:
        result = result && getRecordLocation()
            .equals(other.getRecordLocation());
        break;
      case 3:
        result = result && getImageLocation()
            .equals(other.getImageLocation());
        break;
      case 5:
        result = result && getDocumentLocation()
            .equals(other.getDocumentLocation());
        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();
    hash = (37 * hash) + CONTAINER_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getContainerName().hashCode();
    if (hasContainerTimestamp()) {
      hash = (37 * hash) + CONTAINER_TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + getContainerTimestamp().hashCode();
    }
    hash = (37 * hash) + CONTAINER_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getContainerVersion().hashCode();
    switch (locationCase_) {
      case 2:
        hash = (37 * hash) + RECORD_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getRecordLocation().hashCode();
        break;
      case 3:
        hash = (37 * hash) + IMAGE_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getImageLocation().hashCode();
        break;
      case 5:
        hash = (37 * hash) + DOCUMENT_LOCATION_FIELD_NUMBER;
        hash = (53 * hash) + getDocumentLocation().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2.ContentLocation parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.ContentLocation 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.v2.ContentLocation parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.ContentLocation 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.v2.ContentLocation parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.ContentLocation parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2.ContentLocation parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.ContentLocation 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.v2.ContentLocation parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.ContentLocation 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.v2.ContentLocation parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.ContentLocation 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.v2.ContentLocation 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>
   * Findings container location data.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.ContentLocation}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ContentLocation)
      com.google.privacy.dlp.v2.ContentLocationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ContentLocation_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_ContentLocation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2.ContentLocation.class, com.google.privacy.dlp.v2.ContentLocation.Builder.class);
    }

    // Construct using com.google.privacy.dlp.v2.ContentLocation.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();
      containerName_ = "";

      if (containerTimestampBuilder_ == null) {
        containerTimestamp_ = null;
      } else {
        containerTimestamp_ = null;
        containerTimestampBuilder_ = null;
      }
      containerVersion_ = "";

      locationCase_ = 0;
      location_ = null;
      return this;
    }

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

    public com.google.privacy.dlp.v2.ContentLocation getDefaultInstanceForType() {
      return com.google.privacy.dlp.v2.ContentLocation.getDefaultInstance();
    }

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

    public com.google.privacy.dlp.v2.ContentLocation buildPartial() {
      com.google.privacy.dlp.v2.ContentLocation result = new com.google.privacy.dlp.v2.ContentLocation(this);
      result.containerName_ = containerName_;
      if (locationCase_ == 2) {
        if (recordLocationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = recordLocationBuilder_.build();
        }
      }
      if (locationCase_ == 3) {
        if (imageLocationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = imageLocationBuilder_.build();
        }
      }
      if (locationCase_ == 5) {
        if (documentLocationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = documentLocationBuilder_.build();
        }
      }
      if (containerTimestampBuilder_ == null) {
        result.containerTimestamp_ = containerTimestamp_;
      } else {
        result.containerTimestamp_ = containerTimestampBuilder_.build();
      }
      result.containerVersion_ = containerVersion_;
      result.locationCase_ = locationCase_;
      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.v2.ContentLocation) {
        return mergeFrom((com.google.privacy.dlp.v2.ContentLocation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2.ContentLocation other) {
      if (other == com.google.privacy.dlp.v2.ContentLocation.getDefaultInstance()) return this;
      if (!other.getContainerName().isEmpty()) {
        containerName_ = other.containerName_;
        onChanged();
      }
      if (other.hasContainerTimestamp()) {
        mergeContainerTimestamp(other.getContainerTimestamp());
      }
      if (!other.getContainerVersion().isEmpty()) {
        containerVersion_ = other.containerVersion_;
        onChanged();
      }
      switch (other.getLocationCase()) {
        case RECORD_LOCATION: {
          mergeRecordLocation(other.getRecordLocation());
          break;
        }
        case IMAGE_LOCATION: {
          mergeImageLocation(other.getImageLocation());
          break;
        }
        case DOCUMENT_LOCATION: {
          mergeDocumentLocation(other.getDocumentLocation());
          break;
        }
        case LOCATION_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.v2.ContentLocation parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2.ContentLocation) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int locationCase_ = 0;
    private java.lang.Object location_;
    public LocationCase
        getLocationCase() {
      return LocationCase.forNumber(
          locationCase_);
    }

    public Builder clearLocation() {
      locationCase_ = 0;
      location_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object containerName_ = "";
    /**
     * <pre>
     * Name of the container where the finding is located.
     * The top level name is the source file name or table name. Nested names
     * could be absent if the embedded object has no string identifier
     * (for an example an image contained within a document).
     * </pre>
     *
     * <code>string container_name = 1;</code>
     */
    public java.lang.String getContainerName() {
      java.lang.Object ref = containerName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        containerName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Name of the container where the finding is located.
     * The top level name is the source file name or table name. Nested names
     * could be absent if the embedded object has no string identifier
     * (for an example an image contained within a document).
     * </pre>
     *
     * <code>string container_name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getContainerNameBytes() {
      java.lang.Object ref = containerName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        containerName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Name of the container where the finding is located.
     * The top level name is the source file name or table name. Nested names
     * could be absent if the embedded object has no string identifier
     * (for an example an image contained within a document).
     * </pre>
     *
     * <code>string container_name = 1;</code>
     */
    public Builder setContainerName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      containerName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the container where the finding is located.
     * The top level name is the source file name or table name. Nested names
     * could be absent if the embedded object has no string identifier
     * (for an example an image contained within a document).
     * </pre>
     *
     * <code>string container_name = 1;</code>
     */
    public Builder clearContainerName() {
      
      containerName_ = getDefaultInstance().getContainerName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Name of the container where the finding is located.
     * The top level name is the source file name or table name. Nested names
     * could be absent if the embedded object has no string identifier
     * (for an example an image contained within a document).
     * </pre>
     *
     * <code>string container_name = 1;</code>
     */
    public Builder setContainerNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      containerName_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.RecordLocation, com.google.privacy.dlp.v2.RecordLocation.Builder, com.google.privacy.dlp.v2.RecordLocationOrBuilder> recordLocationBuilder_;
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public boolean hasRecordLocation() {
      return locationCase_ == 2;
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public com.google.privacy.dlp.v2.RecordLocation getRecordLocation() {
      if (recordLocationBuilder_ == null) {
        if (locationCase_ == 2) {
          return (com.google.privacy.dlp.v2.RecordLocation) location_;
        }
        return com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
      } else {
        if (locationCase_ == 2) {
          return recordLocationBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public Builder setRecordLocation(com.google.privacy.dlp.v2.RecordLocation value) {
      if (recordLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        location_ = value;
        onChanged();
      } else {
        recordLocationBuilder_.setMessage(value);
      }
      locationCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public Builder setRecordLocation(
        com.google.privacy.dlp.v2.RecordLocation.Builder builderForValue) {
      if (recordLocationBuilder_ == null) {
        location_ = builderForValue.build();
        onChanged();
      } else {
        recordLocationBuilder_.setMessage(builderForValue.build());
      }
      locationCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public Builder mergeRecordLocation(com.google.privacy.dlp.v2.RecordLocation value) {
      if (recordLocationBuilder_ == null) {
        if (locationCase_ == 2 &&
            location_ != com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance()) {
          location_ = com.google.privacy.dlp.v2.RecordLocation.newBuilder((com.google.privacy.dlp.v2.RecordLocation) location_)
              .mergeFrom(value).buildPartial();
        } else {
          location_ = value;
        }
        onChanged();
      } else {
        if (locationCase_ == 2) {
          recordLocationBuilder_.mergeFrom(value);
        }
        recordLocationBuilder_.setMessage(value);
      }
      locationCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public Builder clearRecordLocation() {
      if (recordLocationBuilder_ == null) {
        if (locationCase_ == 2) {
          locationCase_ = 0;
          location_ = null;
          onChanged();
        }
      } else {
        if (locationCase_ == 2) {
          locationCase_ = 0;
          location_ = null;
        }
        recordLocationBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public com.google.privacy.dlp.v2.RecordLocation.Builder getRecordLocationBuilder() {
      return getRecordLocationFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    public com.google.privacy.dlp.v2.RecordLocationOrBuilder getRecordLocationOrBuilder() {
      if ((locationCase_ == 2) && (recordLocationBuilder_ != null)) {
        return recordLocationBuilder_.getMessageOrBuilder();
      } else {
        if (locationCase_ == 2) {
          return (com.google.privacy.dlp.v2.RecordLocation) location_;
        }
        return com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location within a row or record of a database table.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.RecordLocation, com.google.privacy.dlp.v2.RecordLocation.Builder, com.google.privacy.dlp.v2.RecordLocationOrBuilder> 
        getRecordLocationFieldBuilder() {
      if (recordLocationBuilder_ == null) {
        if (!(locationCase_ == 2)) {
          location_ = com.google.privacy.dlp.v2.RecordLocation.getDefaultInstance();
        }
        recordLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.RecordLocation, com.google.privacy.dlp.v2.RecordLocation.Builder, com.google.privacy.dlp.v2.RecordLocationOrBuilder>(
                (com.google.privacy.dlp.v2.RecordLocation) location_,
                getParentForChildren(),
                isClean());
        location_ = null;
      }
      locationCase_ = 2;
      onChanged();;
      return recordLocationBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.ImageLocation, com.google.privacy.dlp.v2.ImageLocation.Builder, com.google.privacy.dlp.v2.ImageLocationOrBuilder> imageLocationBuilder_;
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public boolean hasImageLocation() {
      return locationCase_ == 3;
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public com.google.privacy.dlp.v2.ImageLocation getImageLocation() {
      if (imageLocationBuilder_ == null) {
        if (locationCase_ == 3) {
          return (com.google.privacy.dlp.v2.ImageLocation) location_;
        }
        return com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
      } else {
        if (locationCase_ == 3) {
          return imageLocationBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public Builder setImageLocation(com.google.privacy.dlp.v2.ImageLocation value) {
      if (imageLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        location_ = value;
        onChanged();
      } else {
        imageLocationBuilder_.setMessage(value);
      }
      locationCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public Builder setImageLocation(
        com.google.privacy.dlp.v2.ImageLocation.Builder builderForValue) {
      if (imageLocationBuilder_ == null) {
        location_ = builderForValue.build();
        onChanged();
      } else {
        imageLocationBuilder_.setMessage(builderForValue.build());
      }
      locationCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public Builder mergeImageLocation(com.google.privacy.dlp.v2.ImageLocation value) {
      if (imageLocationBuilder_ == null) {
        if (locationCase_ == 3 &&
            location_ != com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance()) {
          location_ = com.google.privacy.dlp.v2.ImageLocation.newBuilder((com.google.privacy.dlp.v2.ImageLocation) location_)
              .mergeFrom(value).buildPartial();
        } else {
          location_ = value;
        }
        onChanged();
      } else {
        if (locationCase_ == 3) {
          imageLocationBuilder_.mergeFrom(value);
        }
        imageLocationBuilder_.setMessage(value);
      }
      locationCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public Builder clearImageLocation() {
      if (imageLocationBuilder_ == null) {
        if (locationCase_ == 3) {
          locationCase_ = 0;
          location_ = null;
          onChanged();
        }
      } else {
        if (locationCase_ == 3) {
          locationCase_ = 0;
          location_ = null;
        }
        imageLocationBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public com.google.privacy.dlp.v2.ImageLocation.Builder getImageLocationBuilder() {
      return getImageLocationFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    public com.google.privacy.dlp.v2.ImageLocationOrBuilder getImageLocationOrBuilder() {
      if ((locationCase_ == 3) && (imageLocationBuilder_ != null)) {
        return imageLocationBuilder_.getMessageOrBuilder();
      } else {
        if (locationCase_ == 3) {
          return (com.google.privacy.dlp.v2.ImageLocation) location_;
        }
        return com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location within an image's pixels.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.ImageLocation, com.google.privacy.dlp.v2.ImageLocation.Builder, com.google.privacy.dlp.v2.ImageLocationOrBuilder> 
        getImageLocationFieldBuilder() {
      if (imageLocationBuilder_ == null) {
        if (!(locationCase_ == 3)) {
          location_ = com.google.privacy.dlp.v2.ImageLocation.getDefaultInstance();
        }
        imageLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.ImageLocation, com.google.privacy.dlp.v2.ImageLocation.Builder, com.google.privacy.dlp.v2.ImageLocationOrBuilder>(
                (com.google.privacy.dlp.v2.ImageLocation) location_,
                getParentForChildren(),
                isClean());
        location_ = null;
      }
      locationCase_ = 3;
      onChanged();;
      return imageLocationBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.DocumentLocation, com.google.privacy.dlp.v2.DocumentLocation.Builder, com.google.privacy.dlp.v2.DocumentLocationOrBuilder> documentLocationBuilder_;
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public boolean hasDocumentLocation() {
      return locationCase_ == 5;
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public com.google.privacy.dlp.v2.DocumentLocation getDocumentLocation() {
      if (documentLocationBuilder_ == null) {
        if (locationCase_ == 5) {
          return (com.google.privacy.dlp.v2.DocumentLocation) location_;
        }
        return com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
      } else {
        if (locationCase_ == 5) {
          return documentLocationBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public Builder setDocumentLocation(com.google.privacy.dlp.v2.DocumentLocation value) {
      if (documentLocationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        location_ = value;
        onChanged();
      } else {
        documentLocationBuilder_.setMessage(value);
      }
      locationCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public Builder setDocumentLocation(
        com.google.privacy.dlp.v2.DocumentLocation.Builder builderForValue) {
      if (documentLocationBuilder_ == null) {
        location_ = builderForValue.build();
        onChanged();
      } else {
        documentLocationBuilder_.setMessage(builderForValue.build());
      }
      locationCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public Builder mergeDocumentLocation(com.google.privacy.dlp.v2.DocumentLocation value) {
      if (documentLocationBuilder_ == null) {
        if (locationCase_ == 5 &&
            location_ != com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance()) {
          location_ = com.google.privacy.dlp.v2.DocumentLocation.newBuilder((com.google.privacy.dlp.v2.DocumentLocation) location_)
              .mergeFrom(value).buildPartial();
        } else {
          location_ = value;
        }
        onChanged();
      } else {
        if (locationCase_ == 5) {
          documentLocationBuilder_.mergeFrom(value);
        }
        documentLocationBuilder_.setMessage(value);
      }
      locationCase_ = 5;
      return this;
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public Builder clearDocumentLocation() {
      if (documentLocationBuilder_ == null) {
        if (locationCase_ == 5) {
          locationCase_ = 0;
          location_ = null;
          onChanged();
        }
      } else {
        if (locationCase_ == 5) {
          locationCase_ = 0;
          location_ = null;
        }
        documentLocationBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public com.google.privacy.dlp.v2.DocumentLocation.Builder getDocumentLocationBuilder() {
      return getDocumentLocationFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    public com.google.privacy.dlp.v2.DocumentLocationOrBuilder getDocumentLocationOrBuilder() {
      if ((locationCase_ == 5) && (documentLocationBuilder_ != null)) {
        return documentLocationBuilder_.getMessageOrBuilder();
      } else {
        if (locationCase_ == 5) {
          return (com.google.privacy.dlp.v2.DocumentLocation) location_;
        }
        return com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Location data for document files.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.DocumentLocation, com.google.privacy.dlp.v2.DocumentLocation.Builder, com.google.privacy.dlp.v2.DocumentLocationOrBuilder> 
        getDocumentLocationFieldBuilder() {
      if (documentLocationBuilder_ == null) {
        if (!(locationCase_ == 5)) {
          location_ = com.google.privacy.dlp.v2.DocumentLocation.getDefaultInstance();
        }
        documentLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.DocumentLocation, com.google.privacy.dlp.v2.DocumentLocation.Builder, com.google.privacy.dlp.v2.DocumentLocationOrBuilder>(
                (com.google.privacy.dlp.v2.DocumentLocation) location_,
                getParentForChildren(),
                isClean());
        location_ = null;
      }
      locationCase_ = 5;
      onChanged();;
      return documentLocationBuilder_;
    }

    private com.google.protobuf.Timestamp containerTimestamp_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> containerTimestampBuilder_;
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public boolean hasContainerTimestamp() {
      return containerTimestampBuilder_ != null || containerTimestamp_ != null;
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public com.google.protobuf.Timestamp getContainerTimestamp() {
      if (containerTimestampBuilder_ == null) {
        return containerTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : containerTimestamp_;
      } else {
        return containerTimestampBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public Builder setContainerTimestamp(com.google.protobuf.Timestamp value) {
      if (containerTimestampBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        containerTimestamp_ = value;
        onChanged();
      } else {
        containerTimestampBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public Builder setContainerTimestamp(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (containerTimestampBuilder_ == null) {
        containerTimestamp_ = builderForValue.build();
        onChanged();
      } else {
        containerTimestampBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public Builder mergeContainerTimestamp(com.google.protobuf.Timestamp value) {
      if (containerTimestampBuilder_ == null) {
        if (containerTimestamp_ != null) {
          containerTimestamp_ =
            com.google.protobuf.Timestamp.newBuilder(containerTimestamp_).mergeFrom(value).buildPartial();
        } else {
          containerTimestamp_ = value;
        }
        onChanged();
      } else {
        containerTimestampBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public Builder clearContainerTimestamp() {
      if (containerTimestampBuilder_ == null) {
        containerTimestamp_ = null;
        onChanged();
      } else {
        containerTimestamp_ = null;
        containerTimestampBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public com.google.protobuf.Timestamp.Builder getContainerTimestampBuilder() {
      
      onChanged();
      return getContainerTimestampFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
      if (containerTimestampBuilder_ != null) {
        return containerTimestampBuilder_.getMessageOrBuilder();
      } else {
        return containerTimestamp_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : containerTimestamp_;
      }
    }
    /**
     * <pre>
     * Findings container modification timestamp, if applicable.
     * For Google Cloud Storage contains last file modification timestamp.
     * For BigQuery table contains last_modified_time property.
     * For Datastore - not populated.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp container_timestamp = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getContainerTimestampFieldBuilder() {
      if (containerTimestampBuilder_ == null) {
        containerTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getContainerTimestamp(),
                getParentForChildren(),
                isClean());
        containerTimestamp_ = null;
      }
      return containerTimestampBuilder_;
    }

    private java.lang.Object containerVersion_ = "";
    /**
     * <pre>
     * Findings container version, if available
     * ("generation" for Google Cloud Storage).
     * </pre>
     *
     * <code>string container_version = 7;</code>
     */
    public java.lang.String getContainerVersion() {
      java.lang.Object ref = containerVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        containerVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Findings container version, if available
     * ("generation" for Google Cloud Storage).
     * </pre>
     *
     * <code>string container_version = 7;</code>
     */
    public com.google.protobuf.ByteString
        getContainerVersionBytes() {
      java.lang.Object ref = containerVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        containerVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Findings container version, if available
     * ("generation" for Google Cloud Storage).
     * </pre>
     *
     * <code>string container_version = 7;</code>
     */
    public Builder setContainerVersion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      containerVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Findings container version, if available
     * ("generation" for Google Cloud Storage).
     * </pre>
     *
     * <code>string container_version = 7;</code>
     */
    public Builder clearContainerVersion() {
      
      containerVersion_ = getDefaultInstance().getContainerVersion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Findings container version, if available
     * ("generation" for Google Cloud Storage).
     * </pre>
     *
     * <code>string container_version = 7;</code>
     */
    public Builder setContainerVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      containerVersion_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ContentLocation)
  }

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

  public static com.google.privacy.dlp.v2.ContentLocation getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.google.privacy.dlp.v2.ContentLocation getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

