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

package com.google.privacy.dlp.v2;

/**
 * <pre>
 * The results of an inspect DataSource job.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails}
 */
public  final class InspectDataSourceDetails extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InspectDataSourceDetails)
    InspectDataSourceDetailsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use InspectDataSourceDetails.newBuilder() to construct.
  private InspectDataSourceDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private InspectDataSourceDetails() {
  }

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

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

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

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

  public interface RequestedOptionsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    boolean hasSnapshotInspectTemplate();
    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    com.google.privacy.dlp.v2.InspectTemplate getSnapshotInspectTemplate();
    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    com.google.privacy.dlp.v2.InspectTemplateOrBuilder getSnapshotInspectTemplateOrBuilder();

    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    boolean hasJobConfig();
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    com.google.privacy.dlp.v2.InspectJobConfig getJobConfig();
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getJobConfigOrBuilder();
  }
  /**
   * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions}
   */
  public  static final class RequestedOptions extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions)
      RequestedOptionsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RequestedOptions.newBuilder() to construct.
    private RequestedOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RequestedOptions() {
    }

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

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

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

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

    public static final int SNAPSHOT_INSPECT_TEMPLATE_FIELD_NUMBER = 1;
    private com.google.privacy.dlp.v2.InspectTemplate snapshotInspectTemplate_;
    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    public boolean hasSnapshotInspectTemplate() {
      return snapshotInspectTemplate_ != null;
    }
    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    public com.google.privacy.dlp.v2.InspectTemplate getSnapshotInspectTemplate() {
      return snapshotInspectTemplate_ == null ? com.google.privacy.dlp.v2.InspectTemplate.getDefaultInstance() : snapshotInspectTemplate_;
    }
    /**
     * <pre>
     * If run with an InspectTemplate, a snapshot of its state at the time of
     * this run.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
     */
    public com.google.privacy.dlp.v2.InspectTemplateOrBuilder getSnapshotInspectTemplateOrBuilder() {
      return getSnapshotInspectTemplate();
    }

    public static final int JOB_CONFIG_FIELD_NUMBER = 3;
    private com.google.privacy.dlp.v2.InspectJobConfig jobConfig_;
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    public boolean hasJobConfig() {
      return jobConfig_ != null;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectJobConfig getJobConfig() {
      return jobConfig_ == null ? com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance() : jobConfig_;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getJobConfigOrBuilder() {
      return getJobConfig();
    }

    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 (snapshotInspectTemplate_ != null) {
        output.writeMessage(1, getSnapshotInspectTemplate());
      }
      if (jobConfig_ != null) {
        output.writeMessage(3, getJobConfig());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (snapshotInspectTemplate_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getSnapshotInspectTemplate());
      }
      if (jobConfig_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getJobConfig());
      }
      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.InspectDataSourceDetails.RequestedOptions)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions other = (com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions) obj;

      boolean result = true;
      result = result && (hasSnapshotInspectTemplate() == other.hasSnapshotInspectTemplate());
      if (hasSnapshotInspectTemplate()) {
        result = result && getSnapshotInspectTemplate()
            .equals(other.getSnapshotInspectTemplate());
      }
      result = result && (hasJobConfig() == other.hasJobConfig());
      if (hasJobConfig()) {
        result = result && getJobConfig()
            .equals(other.getJobConfig());
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasSnapshotInspectTemplate()) {
        hash = (37 * hash) + SNAPSHOT_INSPECT_TEMPLATE_FIELD_NUMBER;
        hash = (53 * hash) + getSnapshotInspectTemplate().hashCode();
      }
      if (hasJobConfig()) {
        hash = (37 * hash) + JOB_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getJobConfig().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions 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.InspectDataSourceDetails.RequestedOptions prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

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

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

      // Construct using com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (snapshotInspectTemplateBuilder_ == null) {
          snapshotInspectTemplate_ = null;
        } else {
          snapshotInspectTemplate_ = null;
          snapshotInspectTemplateBuilder_ = null;
        }
        if (jobConfigBuilder_ == null) {
          jobConfig_ = null;
        } else {
          jobConfig_ = null;
          jobConfigBuilder_ = null;
        }
        return this;
      }

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

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

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

      public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions buildPartial() {
        com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions result = new com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions(this);
        if (snapshotInspectTemplateBuilder_ == null) {
          result.snapshotInspectTemplate_ = snapshotInspectTemplate_;
        } else {
          result.snapshotInspectTemplate_ = snapshotInspectTemplateBuilder_.build();
        }
        if (jobConfigBuilder_ == null) {
          result.jobConfig_ = jobConfig_;
        } else {
          result.jobConfig_ = jobConfigBuilder_.build();
        }
        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.InspectDataSourceDetails.RequestedOptions) {
          return mergeFrom((com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions other) {
        if (other == com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.getDefaultInstance()) return this;
        if (other.hasSnapshotInspectTemplate()) {
          mergeSnapshotInspectTemplate(other.getSnapshotInspectTemplate());
        }
        if (other.hasJobConfig()) {
          mergeJobConfig(other.getJobConfig());
        }
        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.InspectDataSourceDetails.RequestedOptions parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.privacy.dlp.v2.InspectTemplate snapshotInspectTemplate_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.InspectTemplate, com.google.privacy.dlp.v2.InspectTemplate.Builder, com.google.privacy.dlp.v2.InspectTemplateOrBuilder> snapshotInspectTemplateBuilder_;
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public boolean hasSnapshotInspectTemplate() {
        return snapshotInspectTemplateBuilder_ != null || snapshotInspectTemplate_ != null;
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public com.google.privacy.dlp.v2.InspectTemplate getSnapshotInspectTemplate() {
        if (snapshotInspectTemplateBuilder_ == null) {
          return snapshotInspectTemplate_ == null ? com.google.privacy.dlp.v2.InspectTemplate.getDefaultInstance() : snapshotInspectTemplate_;
        } else {
          return snapshotInspectTemplateBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public Builder setSnapshotInspectTemplate(com.google.privacy.dlp.v2.InspectTemplate value) {
        if (snapshotInspectTemplateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          snapshotInspectTemplate_ = value;
          onChanged();
        } else {
          snapshotInspectTemplateBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public Builder setSnapshotInspectTemplate(
          com.google.privacy.dlp.v2.InspectTemplate.Builder builderForValue) {
        if (snapshotInspectTemplateBuilder_ == null) {
          snapshotInspectTemplate_ = builderForValue.build();
          onChanged();
        } else {
          snapshotInspectTemplateBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public Builder mergeSnapshotInspectTemplate(com.google.privacy.dlp.v2.InspectTemplate value) {
        if (snapshotInspectTemplateBuilder_ == null) {
          if (snapshotInspectTemplate_ != null) {
            snapshotInspectTemplate_ =
              com.google.privacy.dlp.v2.InspectTemplate.newBuilder(snapshotInspectTemplate_).mergeFrom(value).buildPartial();
          } else {
            snapshotInspectTemplate_ = value;
          }
          onChanged();
        } else {
          snapshotInspectTemplateBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public Builder clearSnapshotInspectTemplate() {
        if (snapshotInspectTemplateBuilder_ == null) {
          snapshotInspectTemplate_ = null;
          onChanged();
        } else {
          snapshotInspectTemplate_ = null;
          snapshotInspectTemplateBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public com.google.privacy.dlp.v2.InspectTemplate.Builder getSnapshotInspectTemplateBuilder() {
        
        onChanged();
        return getSnapshotInspectTemplateFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      public com.google.privacy.dlp.v2.InspectTemplateOrBuilder getSnapshotInspectTemplateOrBuilder() {
        if (snapshotInspectTemplateBuilder_ != null) {
          return snapshotInspectTemplateBuilder_.getMessageOrBuilder();
        } else {
          return snapshotInspectTemplate_ == null ?
              com.google.privacy.dlp.v2.InspectTemplate.getDefaultInstance() : snapshotInspectTemplate_;
        }
      }
      /**
       * <pre>
       * If run with an InspectTemplate, a snapshot of its state at the time of
       * this run.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.InspectTemplate, com.google.privacy.dlp.v2.InspectTemplate.Builder, com.google.privacy.dlp.v2.InspectTemplateOrBuilder> 
          getSnapshotInspectTemplateFieldBuilder() {
        if (snapshotInspectTemplateBuilder_ == null) {
          snapshotInspectTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.InspectTemplate, com.google.privacy.dlp.v2.InspectTemplate.Builder, com.google.privacy.dlp.v2.InspectTemplateOrBuilder>(
                  getSnapshotInspectTemplate(),
                  getParentForChildren(),
                  isClean());
          snapshotInspectTemplate_ = null;
        }
        return snapshotInspectTemplateBuilder_;
      }

      private com.google.privacy.dlp.v2.InspectJobConfig jobConfig_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder> jobConfigBuilder_;
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public boolean hasJobConfig() {
        return jobConfigBuilder_ != null || jobConfig_ != null;
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public com.google.privacy.dlp.v2.InspectJobConfig getJobConfig() {
        if (jobConfigBuilder_ == null) {
          return jobConfig_ == null ? com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance() : jobConfig_;
        } else {
          return jobConfigBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder setJobConfig(com.google.privacy.dlp.v2.InspectJobConfig value) {
        if (jobConfigBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          jobConfig_ = value;
          onChanged();
        } else {
          jobConfigBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder setJobConfig(
          com.google.privacy.dlp.v2.InspectJobConfig.Builder builderForValue) {
        if (jobConfigBuilder_ == null) {
          jobConfig_ = builderForValue.build();
          onChanged();
        } else {
          jobConfigBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder mergeJobConfig(com.google.privacy.dlp.v2.InspectJobConfig value) {
        if (jobConfigBuilder_ == null) {
          if (jobConfig_ != null) {
            jobConfig_ =
              com.google.privacy.dlp.v2.InspectJobConfig.newBuilder(jobConfig_).mergeFrom(value).buildPartial();
          } else {
            jobConfig_ = value;
          }
          onChanged();
        } else {
          jobConfigBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder clearJobConfig() {
        if (jobConfigBuilder_ == null) {
          jobConfig_ = null;
          onChanged();
        } else {
          jobConfig_ = null;
          jobConfigBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public com.google.privacy.dlp.v2.InspectJobConfig.Builder getJobConfigBuilder() {
        
        onChanged();
        return getJobConfigFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getJobConfigOrBuilder() {
        if (jobConfigBuilder_ != null) {
          return jobConfigBuilder_.getMessageOrBuilder();
        } else {
          return jobConfig_ == null ?
              com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance() : jobConfig_;
        }
      }
      /**
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder> 
          getJobConfigFieldBuilder() {
        if (jobConfigBuilder_ == null) {
          jobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder>(
                  getJobConfig(),
                  getParentForChildren(),
                  isClean());
          jobConfig_ = null;
        }
        return jobConfigBuilder_;
      }
      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.InspectDataSourceDetails.RequestedOptions)
    }

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

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

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

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

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

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

  }

  public interface ResultOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.InspectDataSourceDetails.Result)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Total size in bytes that were processed.
     * </pre>
     *
     * <code>int64 processed_bytes = 1;</code>
     */
    long getProcessedBytes();

    /**
     * <pre>
     * Estimate of the number of bytes to process.
     * </pre>
     *
     * <code>int64 total_estimated_bytes = 2;</code>
     */
    long getTotalEstimatedBytes();

    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    java.util.List<com.google.privacy.dlp.v2.InfoTypeStats> 
        getInfoTypeStatsList();
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    com.google.privacy.dlp.v2.InfoTypeStats getInfoTypeStats(int index);
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    int getInfoTypeStatsCount();
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    java.util.List<? extends com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder> 
        getInfoTypeStatsOrBuilderList();
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails.Result}
   */
  public  static final class Result extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.InspectDataSourceDetails.Result)
      ResultOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Result.newBuilder() to construct.
    private Result(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Result() {
      processedBytes_ = 0L;
      totalEstimatedBytes_ = 0L;
      infoTypeStats_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Result(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              processedBytes_ = input.readInt64();
              break;
            }
            case 16: {

              totalEstimatedBytes_ = input.readInt64();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                infoTypeStats_ = new java.util.ArrayList<com.google.privacy.dlp.v2.InfoTypeStats>();
                mutable_bitField0_ |= 0x00000004;
              }
              infoTypeStats_.add(
                  input.readMessage(com.google.privacy.dlp.v2.InfoTypeStats.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          infoTypeStats_ = java.util.Collections.unmodifiableList(infoTypeStats_);
        }
        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_InspectDataSourceDetails_Result_descriptor;
    }

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

    private int bitField0_;
    public static final int PROCESSED_BYTES_FIELD_NUMBER = 1;
    private long processedBytes_;
    /**
     * <pre>
     * Total size in bytes that were processed.
     * </pre>
     *
     * <code>int64 processed_bytes = 1;</code>
     */
    public long getProcessedBytes() {
      return processedBytes_;
    }

    public static final int TOTAL_ESTIMATED_BYTES_FIELD_NUMBER = 2;
    private long totalEstimatedBytes_;
    /**
     * <pre>
     * Estimate of the number of bytes to process.
     * </pre>
     *
     * <code>int64 total_estimated_bytes = 2;</code>
     */
    public long getTotalEstimatedBytes() {
      return totalEstimatedBytes_;
    }

    public static final int INFO_TYPE_STATS_FIELD_NUMBER = 3;
    private java.util.List<com.google.privacy.dlp.v2.InfoTypeStats> infoTypeStats_;
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2.InfoTypeStats> getInfoTypeStatsList() {
      return infoTypeStats_;
    }
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder> 
        getInfoTypeStatsOrBuilderList() {
      return infoTypeStats_;
    }
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    public int getInfoTypeStatsCount() {
      return infoTypeStats_.size();
    }
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    public com.google.privacy.dlp.v2.InfoTypeStats getInfoTypeStats(int index) {
      return infoTypeStats_.get(index);
    }
    /**
     * <pre>
     * Statistics of how many instances of each info type were found during
     * inspect job.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
     */
    public com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilder(
        int index) {
      return infoTypeStats_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (processedBytes_ != 0L) {
        output.writeInt64(1, processedBytes_);
      }
      if (totalEstimatedBytes_ != 0L) {
        output.writeInt64(2, totalEstimatedBytes_);
      }
      for (int i = 0; i < infoTypeStats_.size(); i++) {
        output.writeMessage(3, infoTypeStats_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (processedBytes_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, processedBytes_);
      }
      if (totalEstimatedBytes_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, totalEstimatedBytes_);
      }
      for (int i = 0; i < infoTypeStats_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, infoTypeStats_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      boolean result = true;
      result = result && (getProcessedBytes()
          == other.getProcessedBytes());
      result = result && (getTotalEstimatedBytes()
          == other.getTotalEstimatedBytes());
      result = result && getInfoTypeStatsList()
          .equals(other.getInfoTypeStatsList());
      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) + PROCESSED_BYTES_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getProcessedBytes());
      hash = (37 * hash) + TOTAL_ESTIMATED_BYTES_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTotalEstimatedBytes());
      if (getInfoTypeStatsCount() > 0) {
        hash = (37 * hash) + INFO_TYPE_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getInfoTypeStatsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result 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.InspectDataSourceDetails.Result prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

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

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

      // Construct using com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getInfoTypeStatsFieldBuilder();
        }
      }
      public Builder clear() {
        super.clear();
        processedBytes_ = 0L;

        totalEstimatedBytes_ = 0L;

        if (infoTypeStatsBuilder_ == null) {
          infoTypeStats_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          infoTypeStatsBuilder_.clear();
        }
        return this;
      }

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

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

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

      public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result buildPartial() {
        com.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = new com.google.privacy.dlp.v2.InspectDataSourceDetails.Result(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.processedBytes_ = processedBytes_;
        result.totalEstimatedBytes_ = totalEstimatedBytes_;
        if (infoTypeStatsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            infoTypeStats_ = java.util.Collections.unmodifiableList(infoTypeStats_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.infoTypeStats_ = infoTypeStats_;
        } else {
          result.infoTypeStats_ = infoTypeStatsBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.google.privacy.dlp.v2.InspectDataSourceDetails.Result other) {
        if (other == com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance()) return this;
        if (other.getProcessedBytes() != 0L) {
          setProcessedBytes(other.getProcessedBytes());
        }
        if (other.getTotalEstimatedBytes() != 0L) {
          setTotalEstimatedBytes(other.getTotalEstimatedBytes());
        }
        if (infoTypeStatsBuilder_ == null) {
          if (!other.infoTypeStats_.isEmpty()) {
            if (infoTypeStats_.isEmpty()) {
              infoTypeStats_ = other.infoTypeStats_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureInfoTypeStatsIsMutable();
              infoTypeStats_.addAll(other.infoTypeStats_);
            }
            onChanged();
          }
        } else {
          if (!other.infoTypeStats_.isEmpty()) {
            if (infoTypeStatsBuilder_.isEmpty()) {
              infoTypeStatsBuilder_.dispose();
              infoTypeStatsBuilder_ = null;
              infoTypeStats_ = other.infoTypeStats_;
              bitField0_ = (bitField0_ & ~0x00000004);
              infoTypeStatsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getInfoTypeStatsFieldBuilder() : null;
            } else {
              infoTypeStatsBuilder_.addAllMessages(other.infoTypeStats_);
            }
          }
        }
        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.InspectDataSourceDetails.Result parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.InspectDataSourceDetails.Result) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long processedBytes_ ;
      /**
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       */
      public long getProcessedBytes() {
        return processedBytes_;
      }
      /**
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       */
      public Builder setProcessedBytes(long value) {
        
        processedBytes_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       */
      public Builder clearProcessedBytes() {
        
        processedBytes_ = 0L;
        onChanged();
        return this;
      }

      private long totalEstimatedBytes_ ;
      /**
       * <pre>
       * Estimate of the number of bytes to process.
       * </pre>
       *
       * <code>int64 total_estimated_bytes = 2;</code>
       */
      public long getTotalEstimatedBytes() {
        return totalEstimatedBytes_;
      }
      /**
       * <pre>
       * Estimate of the number of bytes to process.
       * </pre>
       *
       * <code>int64 total_estimated_bytes = 2;</code>
       */
      public Builder setTotalEstimatedBytes(long value) {
        
        totalEstimatedBytes_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Estimate of the number of bytes to process.
       * </pre>
       *
       * <code>int64 total_estimated_bytes = 2;</code>
       */
      public Builder clearTotalEstimatedBytes() {
        
        totalEstimatedBytes_ = 0L;
        onChanged();
        return this;
      }

      private java.util.List<com.google.privacy.dlp.v2.InfoTypeStats> infoTypeStats_ =
        java.util.Collections.emptyList();
      private void ensureInfoTypeStatsIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          infoTypeStats_ = new java.util.ArrayList<com.google.privacy.dlp.v2.InfoTypeStats>(infoTypeStats_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.privacy.dlp.v2.InfoTypeStats, com.google.privacy.dlp.v2.InfoTypeStats.Builder, com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder> infoTypeStatsBuilder_;

      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public java.util.List<com.google.privacy.dlp.v2.InfoTypeStats> getInfoTypeStatsList() {
        if (infoTypeStatsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(infoTypeStats_);
        } else {
          return infoTypeStatsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public int getInfoTypeStatsCount() {
        if (infoTypeStatsBuilder_ == null) {
          return infoTypeStats_.size();
        } else {
          return infoTypeStatsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public com.google.privacy.dlp.v2.InfoTypeStats getInfoTypeStats(int index) {
        if (infoTypeStatsBuilder_ == null) {
          return infoTypeStats_.get(index);
        } else {
          return infoTypeStatsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder setInfoTypeStats(
          int index, com.google.privacy.dlp.v2.InfoTypeStats value) {
        if (infoTypeStatsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.set(index, value);
          onChanged();
        } else {
          infoTypeStatsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder setInfoTypeStats(
          int index, com.google.privacy.dlp.v2.InfoTypeStats.Builder builderForValue) {
        if (infoTypeStatsBuilder_ == null) {
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.set(index, builderForValue.build());
          onChanged();
        } else {
          infoTypeStatsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder addInfoTypeStats(com.google.privacy.dlp.v2.InfoTypeStats value) {
        if (infoTypeStatsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.add(value);
          onChanged();
        } else {
          infoTypeStatsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder addInfoTypeStats(
          int index, com.google.privacy.dlp.v2.InfoTypeStats value) {
        if (infoTypeStatsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.add(index, value);
          onChanged();
        } else {
          infoTypeStatsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder addInfoTypeStats(
          com.google.privacy.dlp.v2.InfoTypeStats.Builder builderForValue) {
        if (infoTypeStatsBuilder_ == null) {
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.add(builderForValue.build());
          onChanged();
        } else {
          infoTypeStatsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder addInfoTypeStats(
          int index, com.google.privacy.dlp.v2.InfoTypeStats.Builder builderForValue) {
        if (infoTypeStatsBuilder_ == null) {
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.add(index, builderForValue.build());
          onChanged();
        } else {
          infoTypeStatsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder addAllInfoTypeStats(
          java.lang.Iterable<? extends com.google.privacy.dlp.v2.InfoTypeStats> values) {
        if (infoTypeStatsBuilder_ == null) {
          ensureInfoTypeStatsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, infoTypeStats_);
          onChanged();
        } else {
          infoTypeStatsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder clearInfoTypeStats() {
        if (infoTypeStatsBuilder_ == null) {
          infoTypeStats_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          infoTypeStatsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public Builder removeInfoTypeStats(int index) {
        if (infoTypeStatsBuilder_ == null) {
          ensureInfoTypeStatsIsMutable();
          infoTypeStats_.remove(index);
          onChanged();
        } else {
          infoTypeStatsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public com.google.privacy.dlp.v2.InfoTypeStats.Builder getInfoTypeStatsBuilder(
          int index) {
        return getInfoTypeStatsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilder(
          int index) {
        if (infoTypeStatsBuilder_ == null) {
          return infoTypeStats_.get(index);  } else {
          return infoTypeStatsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public java.util.List<? extends com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder> 
           getInfoTypeStatsOrBuilderList() {
        if (infoTypeStatsBuilder_ != null) {
          return infoTypeStatsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(infoTypeStats_);
        }
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public com.google.privacy.dlp.v2.InfoTypeStats.Builder addInfoTypeStatsBuilder() {
        return getInfoTypeStatsFieldBuilder().addBuilder(
            com.google.privacy.dlp.v2.InfoTypeStats.getDefaultInstance());
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public com.google.privacy.dlp.v2.InfoTypeStats.Builder addInfoTypeStatsBuilder(
          int index) {
        return getInfoTypeStatsFieldBuilder().addBuilder(
            index, com.google.privacy.dlp.v2.InfoTypeStats.getDefaultInstance());
      }
      /**
       * <pre>
       * Statistics of how many instances of each info type were found during
       * inspect job.
       * </pre>
       *
       * <code>repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;</code>
       */
      public java.util.List<com.google.privacy.dlp.v2.InfoTypeStats.Builder> 
           getInfoTypeStatsBuilderList() {
        return getInfoTypeStatsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.privacy.dlp.v2.InfoTypeStats, com.google.privacy.dlp.v2.InfoTypeStats.Builder, com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder> 
          getInfoTypeStatsFieldBuilder() {
        if (infoTypeStatsBuilder_ == null) {
          infoTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.privacy.dlp.v2.InfoTypeStats, com.google.privacy.dlp.v2.InfoTypeStats.Builder, com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder>(
                  infoTypeStats_,
                  ((bitField0_ & 0x00000004) == 0x00000004),
                  getParentForChildren(),
                  isClean());
          infoTypeStats_ = null;
        }
        return infoTypeStatsBuilder_;
      }
      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.InspectDataSourceDetails.Result)
    }

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

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

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

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

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

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

  }

  public static final int REQUESTED_OPTIONS_FIELD_NUMBER = 2;
  private com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requestedOptions_;
  /**
   * <pre>
   * The configuration used for this job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
   */
  public boolean hasRequestedOptions() {
    return requestedOptions_ != null;
  }
  /**
   * <pre>
   * The configuration used for this job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
   */
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions getRequestedOptions() {
    return requestedOptions_ == null ? com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.getDefaultInstance() : requestedOptions_;
  }
  /**
   * <pre>
   * The configuration used for this job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
   */
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder getRequestedOptionsOrBuilder() {
    return getRequestedOptions();
  }

  public static final int RESULT_FIELD_NUMBER = 3;
  private com.google.privacy.dlp.v2.InspectDataSourceDetails.Result result_;
  /**
   * <pre>
   * A summary of the outcome of this inspect job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   */
  public boolean hasResult() {
    return result_ != null;
  }
  /**
   * <pre>
   * A summary of the outcome of this inspect job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   */
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result getResult() {
    return result_ == null ? com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance() : result_;
  }
  /**
   * <pre>
   * A summary of the outcome of this inspect job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   */
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder getResultOrBuilder() {
    return getResult();
  }

  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 (requestedOptions_ != null) {
      output.writeMessage(2, getRequestedOptions());
    }
    if (result_ != null) {
      output.writeMessage(3, getResult());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (requestedOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getRequestedOptions());
    }
    if (result_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getResult());
    }
    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.InspectDataSourceDetails)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2.InspectDataSourceDetails other = (com.google.privacy.dlp.v2.InspectDataSourceDetails) obj;

    boolean result = true;
    result = result && (hasRequestedOptions() == other.hasRequestedOptions());
    if (hasRequestedOptions()) {
      result = result && getRequestedOptions()
          .equals(other.getRequestedOptions());
    }
    result = result && (hasResult() == other.hasResult());
    if (hasResult()) {
      result = result && getResult()
          .equals(other.getResult());
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasRequestedOptions()) {
      hash = (37 * hash) + REQUESTED_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getRequestedOptions().hashCode();
    }
    if (hasResult()) {
      hash = (37 * hash) + RESULT_FIELD_NUMBER;
      hash = (53 * hash) + getResult().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2.InspectDataSourceDetails parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.InspectDataSourceDetails 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.InspectDataSourceDetails parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.InspectDataSourceDetails 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.InspectDataSourceDetails parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.InspectDataSourceDetails 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.InspectDataSourceDetails parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.InspectDataSourceDetails 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.InspectDataSourceDetails parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.InspectDataSourceDetails 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.InspectDataSourceDetails 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.InspectDataSourceDetails 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.InspectDataSourceDetails 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>
   * The results of an inspect DataSource job.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.InspectDataSourceDetails)
      com.google.privacy.dlp.v2.InspectDataSourceDetailsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      if (requestedOptionsBuilder_ == null) {
        requestedOptions_ = null;
      } else {
        requestedOptions_ = null;
        requestedOptionsBuilder_ = null;
      }
      if (resultBuilder_ == null) {
        result_ = null;
      } else {
        result_ = null;
        resultBuilder_ = null;
      }
      return this;
    }

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

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

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

    public com.google.privacy.dlp.v2.InspectDataSourceDetails buildPartial() {
      com.google.privacy.dlp.v2.InspectDataSourceDetails result = new com.google.privacy.dlp.v2.InspectDataSourceDetails(this);
      if (requestedOptionsBuilder_ == null) {
        result.requestedOptions_ = requestedOptions_;
      } else {
        result.requestedOptions_ = requestedOptionsBuilder_.build();
      }
      if (resultBuilder_ == null) {
        result.result_ = result_;
      } else {
        result.result_ = resultBuilder_.build();
      }
      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.InspectDataSourceDetails) {
        return mergeFrom((com.google.privacy.dlp.v2.InspectDataSourceDetails)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2.InspectDataSourceDetails other) {
      if (other == com.google.privacy.dlp.v2.InspectDataSourceDetails.getDefaultInstance()) return this;
      if (other.hasRequestedOptions()) {
        mergeRequestedOptions(other.getRequestedOptions());
      }
      if (other.hasResult()) {
        mergeResult(other.getResult());
      }
      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.InspectDataSourceDetails parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2.InspectDataSourceDetails) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requestedOptions_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder> requestedOptionsBuilder_;
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public boolean hasRequestedOptions() {
      return requestedOptionsBuilder_ != null || requestedOptions_ != null;
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions getRequestedOptions() {
      if (requestedOptionsBuilder_ == null) {
        return requestedOptions_ == null ? com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.getDefaultInstance() : requestedOptions_;
      } else {
        return requestedOptionsBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public Builder setRequestedOptions(com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions value) {
      if (requestedOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        requestedOptions_ = value;
        onChanged();
      } else {
        requestedOptionsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public Builder setRequestedOptions(
        com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.Builder builderForValue) {
      if (requestedOptionsBuilder_ == null) {
        requestedOptions_ = builderForValue.build();
        onChanged();
      } else {
        requestedOptionsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public Builder mergeRequestedOptions(com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions value) {
      if (requestedOptionsBuilder_ == null) {
        if (requestedOptions_ != null) {
          requestedOptions_ =
            com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.newBuilder(requestedOptions_).mergeFrom(value).buildPartial();
        } else {
          requestedOptions_ = value;
        }
        onChanged();
      } else {
        requestedOptionsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public Builder clearRequestedOptions() {
      if (requestedOptionsBuilder_ == null) {
        requestedOptions_ = null;
        onChanged();
      } else {
        requestedOptions_ = null;
        requestedOptionsBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.Builder getRequestedOptionsBuilder() {
      
      onChanged();
      return getRequestedOptionsFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder getRequestedOptionsOrBuilder() {
      if (requestedOptionsBuilder_ != null) {
        return requestedOptionsBuilder_.getMessageOrBuilder();
      } else {
        return requestedOptions_ == null ?
            com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.getDefaultInstance() : requestedOptions_;
      }
    }
    /**
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder> 
        getRequestedOptionsFieldBuilder() {
      if (requestedOptionsBuilder_ == null) {
        requestedOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder>(
                getRequestedOptions(),
                getParentForChildren(),
                isClean());
        requestedOptions_ = null;
      }
      return requestedOptionsBuilder_;
    }

    private com.google.privacy.dlp.v2.InspectDataSourceDetails.Result result_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectDataSourceDetails.Result, com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder> resultBuilder_;
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public boolean hasResult() {
      return resultBuilder_ != null || result_ != null;
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result getResult() {
      if (resultBuilder_ == null) {
        return result_ == null ? com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance() : result_;
      } else {
        return resultBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public Builder setResult(com.google.privacy.dlp.v2.InspectDataSourceDetails.Result value) {
      if (resultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        resultBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public Builder setResult(
        com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder builderForValue) {
      if (resultBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        resultBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public Builder mergeResult(com.google.privacy.dlp.v2.InspectDataSourceDetails.Result value) {
      if (resultBuilder_ == null) {
        if (result_ != null) {
          result_ =
            com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.newBuilder(result_).mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        resultBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public Builder clearResult() {
      if (resultBuilder_ == null) {
        result_ = null;
        onChanged();
      } else {
        result_ = null;
        resultBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder getResultBuilder() {
      
      onChanged();
      return getResultFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder getResultOrBuilder() {
      if (resultBuilder_ != null) {
        return resultBuilder_.getMessageOrBuilder();
      } else {
        return result_ == null ?
            com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance() : result_;
      }
    }
    /**
     * <pre>
     * A summary of the outcome of this inspect job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectDataSourceDetails.Result, com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder> 
        getResultFieldBuilder() {
      if (resultBuilder_ == null) {
        resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.InspectDataSourceDetails.Result, com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder, com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder>(
                getResult(),
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      return resultBuilder_;
    }
    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.InspectDataSourceDetails)
  }

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

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

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

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

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

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

}

