/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// 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
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new InspectDataSourceDetails();
  }

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

  @java.lang.Override
  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>
     *
     * @return Whether the snapshotInspectTemplate field is set.
     */
    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>
     *
     * @return The snapshotInspectTemplate.
     */
    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();

    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     *
     * @return Whether the jobConfig field is set.
     */
    boolean hasJobConfig();
    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     *
     * @return The jobConfig.
     */
    com.google.privacy.dlp.v2.InspectJobConfig getJobConfig();
    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getJobConfigOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Snapshot of the inspection configuration.
   * </pre>
   *
   * 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
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new RequestedOptions();
    }

    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;
    }

    @java.lang.Override
    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>
     *
     * @return Whether the snapshotInspectTemplate field is set.
     */
    @java.lang.Override
    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>
     *
     * @return The snapshotInspectTemplate.
     */
    @java.lang.Override
    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>
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.InspectTemplateOrBuilder
        getSnapshotInspectTemplateOrBuilder() {
      return snapshotInspectTemplate_ == null
          ? com.google.privacy.dlp.v2.InspectTemplate.getDefaultInstance()
          : snapshotInspectTemplate_;
    }

    public static final int JOB_CONFIG_FIELD_NUMBER = 3;
    private com.google.privacy.dlp.v2.InspectJobConfig jobConfig_;
    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     *
     * @return Whether the jobConfig field is set.
     */
    @java.lang.Override
    public boolean hasJobConfig() {
      return jobConfig_ != null;
    }
    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     *
     * @return The jobConfig.
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.InspectJobConfig getJobConfig() {
      return jobConfig_ == null
          ? com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance()
          : jobConfig_;
    }
    /**
     *
     *
     * <pre>
     * Inspect config.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getJobConfigOrBuilder() {
      return jobConfig_ == null
          ? com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance()
          : jobConfig_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    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());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    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 += getUnknownFields().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;

      if (hasSnapshotInspectTemplate() != other.hasSnapshotInspectTemplate()) return false;
      if (hasSnapshotInspectTemplate()) {
        if (!getSnapshotInspectTemplate().equals(other.getSnapshotInspectTemplate())) return false;
      }
      if (hasJobConfig() != other.hasJobConfig()) return false;
      if (hasJobConfig()) {
        if (!getJobConfig().equals(other.getJobConfig())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @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) + getUnknownFields().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);
    }

    @java.lang.Override
    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);
    }

    @java.lang.Override
    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>
     * Snapshot of the inspection configuration.
     * </pre>
     *
     * 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;
      }

      @java.lang.Override
      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() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        snapshotInspectTemplate_ = null;
        if (snapshotInspectTemplateBuilder_ != null) {
          snapshotInspectTemplateBuilder_.dispose();
          snapshotInspectTemplateBuilder_ = null;
        }
        jobConfig_ = null;
        if (jobConfigBuilder_ != null) {
          jobConfigBuilder_.dispose();
          jobConfigBuilder_ = null;
        }
        return this;
      }

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

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

      @java.lang.Override
      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;
      }

      @java.lang.Override
      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 (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.snapshotInspectTemplate_ =
              snapshotInspectTemplateBuilder_ == null
                  ? snapshotInspectTemplate_
                  : snapshotInspectTemplateBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.jobConfig_ = jobConfigBuilder_ == null ? jobConfig_ : jobConfigBuilder_.build();
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      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.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(
                      getSnapshotInspectTemplateFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 26:
                {
                  input.readMessage(getJobConfigFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 26
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private com.google.privacy.dlp.v2.InspectTemplate snapshotInspectTemplate_;
      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>
       *
       * @return Whether the snapshotInspectTemplate field is set.
       */
      public boolean hasSnapshotInspectTemplate() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <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>
       *
       * @return The snapshotInspectTemplate.
       */
      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;
        } else {
          snapshotInspectTemplateBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        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();
        } else {
          snapshotInspectTemplateBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        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 (((bitField0_ & 0x00000001) != 0)
              && snapshotInspectTemplate_ != null
              && snapshotInspectTemplate_
                  != com.google.privacy.dlp.v2.InspectTemplate.getDefaultInstance()) {
            getSnapshotInspectTemplateBuilder().mergeFrom(value);
          } else {
            snapshotInspectTemplate_ = value;
          }
        } else {
          snapshotInspectTemplateBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        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() {
        bitField0_ = (bitField0_ & ~0x00000001);
        snapshotInspectTemplate_ = null;
        if (snapshotInspectTemplateBuilder_ != null) {
          snapshotInspectTemplateBuilder_.dispose();
          snapshotInspectTemplateBuilder_ = null;
        }
        onChanged();
        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() {
        bitField0_ |= 0x00000001;
        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_;
      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_;
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       *
       * @return Whether the jobConfig field is set.
       */
      public boolean hasJobConfig() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       *
       * @return The jobConfig.
       */
      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();
        }
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <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;
        } else {
          jobConfigBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <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();
        } else {
          jobConfigBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder mergeJobConfig(com.google.privacy.dlp.v2.InspectJobConfig value) {
        if (jobConfigBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && jobConfig_ != null
              && jobConfig_ != com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance()) {
            getJobConfigBuilder().mergeFrom(value);
          } else {
            jobConfig_ = value;
          }
        } else {
          jobConfigBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public Builder clearJobConfig() {
        bitField0_ = (bitField0_ & ~0x00000002);
        jobConfig_ = null;
        if (jobConfigBuilder_ != null) {
          jobConfigBuilder_.dispose();
          jobConfigBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.InspectJobConfig job_config = 3;</code>
       */
      public com.google.privacy.dlp.v2.InspectJobConfig.Builder getJobConfigBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getJobConfigFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <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_;
        }
      }
      /**
       *
       *
       * <pre>
       * Inspect config.
       * </pre>
       *
       * <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_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      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>() {
          @java.lang.Override
          public RequestedOptions parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

    @java.lang.Override
    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>
     *
     * @return The processedBytes.
     */
    long getProcessedBytes();

    /**
     *
     *
     * <pre>
     * Estimate of the number of bytes to process.
     * </pre>
     *
     * <code>int64 total_estimated_bytes = 2;</code>
     *
     * @return The totalEstimatedBytes.
     */
    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);

    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     *
     * @return Whether the hybridStats field is set.
     */
    boolean hasHybridStats();
    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     *
     * @return The hybridStats.
     */
    com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats();
    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     */
    com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * All result fields mentioned below are updated while the job is processing.
   * </pre>
   *
   * 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() {
      infoTypeStats_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new Result();
    }

    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;
    }

    @java.lang.Override
    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);
    }

    public static final int PROCESSED_BYTES_FIELD_NUMBER = 1;
    private long processedBytes_ = 0L;
    /**
     *
     *
     * <pre>
     * Total size in bytes that were processed.
     * </pre>
     *
     * <code>int64 processed_bytes = 1;</code>
     *
     * @return The processedBytes.
     */
    @java.lang.Override
    public long getProcessedBytes() {
      return processedBytes_;
    }

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

    public static final int INFO_TYPE_STATS_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    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>
     */
    @java.lang.Override
    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>
     */
    @java.lang.Override
    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>
     */
    @java.lang.Override
    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>
     */
    @java.lang.Override
    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>
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilder(int index) {
      return infoTypeStats_.get(index);
    }

    public static final int HYBRID_STATS_FIELD_NUMBER = 7;
    private com.google.privacy.dlp.v2.HybridInspectStatistics hybridStats_;
    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     *
     * @return Whether the hybridStats field is set.
     */
    @java.lang.Override
    public boolean hasHybridStats() {
      return hybridStats_ != null;
    }
    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     *
     * @return The hybridStats.
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats() {
      return hybridStats_ == null
          ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()
          : hybridStats_;
    }
    /**
     *
     *
     * <pre>
     * Statistics related to the processing of hybrid inspect.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
     */
    @java.lang.Override
    public com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder() {
      return hybridStats_ == null
          ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()
          : hybridStats_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    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));
      }
      if (hybridStats_ != null) {
        output.writeMessage(7, getHybridStats());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    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));
      }
      if (hybridStats_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHybridStats());
      }
      size += getUnknownFields().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;

      if (getProcessedBytes() != other.getProcessedBytes()) return false;
      if (getTotalEstimatedBytes() != other.getTotalEstimatedBytes()) return false;
      if (!getInfoTypeStatsList().equals(other.getInfoTypeStatsList())) return false;
      if (hasHybridStats() != other.hasHybridStats()) return false;
      if (hasHybridStats()) {
        if (!getHybridStats().equals(other.getHybridStats())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @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();
      }
      if (hasHybridStats()) {
        hash = (37 * hash) + HYBRID_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getHybridStats().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().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);
    }

    @java.lang.Override
    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);
    }

    @java.lang.Override
    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>
     * All result fields mentioned below are updated while the job is processing.
     * </pre>
     *
     * 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;
      }

      @java.lang.Override
      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() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        processedBytes_ = 0L;
        totalEstimatedBytes_ = 0L;
        if (infoTypeStatsBuilder_ == null) {
          infoTypeStats_ = java.util.Collections.emptyList();
        } else {
          infoTypeStats_ = null;
          infoTypeStatsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        hybridStats_ = null;
        if (hybridStatsBuilder_ != null) {
          hybridStatsBuilder_.dispose();
          hybridStatsBuilder_ = null;
        }
        return this;
      }

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

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

      @java.lang.Override
      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;
      }

      @java.lang.Override
      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);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.privacy.dlp.v2.InspectDataSourceDetails.Result result) {
        if (infoTypeStatsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            infoTypeStats_ = java.util.Collections.unmodifiableList(infoTypeStats_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.infoTypeStats_ = infoTypeStats_;
        } else {
          result.infoTypeStats_ = infoTypeStatsBuilder_.build();
        }
      }

      private void buildPartial0(com.google.privacy.dlp.v2.InspectDataSourceDetails.Result result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.processedBytes_ = processedBytes_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.totalEstimatedBytes_ = totalEstimatedBytes_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.hybridStats_ =
              hybridStatsBuilder_ == null ? hybridStats_ : hybridStatsBuilder_.build();
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      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_);
            }
          }
        }
        if (other.hasHybridStats()) {
          mergeHybridStats(other.getHybridStats());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  processedBytes_ = input.readInt64();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 16:
                {
                  totalEstimatedBytes_ = input.readInt64();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              case 26:
                {
                  com.google.privacy.dlp.v2.InfoTypeStats m =
                      input.readMessage(
                          com.google.privacy.dlp.v2.InfoTypeStats.parser(), extensionRegistry);
                  if (infoTypeStatsBuilder_ == null) {
                    ensureInfoTypeStatsIsMutable();
                    infoTypeStats_.add(m);
                  } else {
                    infoTypeStatsBuilder_.addMessage(m);
                  }
                  break;
                } // case 26
              case 58:
                {
                  input.readMessage(getHybridStatsFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000008;
                  break;
                } // case 58
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private long processedBytes_;
      /**
       *
       *
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       *
       * @return The processedBytes.
       */
      @java.lang.Override
      public long getProcessedBytes() {
        return processedBytes_;
      }
      /**
       *
       *
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       *
       * @param value The processedBytes to set.
       * @return This builder for chaining.
       */
      public Builder setProcessedBytes(long value) {

        processedBytes_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Total size in bytes that were processed.
       * </pre>
       *
       * <code>int64 processed_bytes = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearProcessedBytes() {
        bitField0_ = (bitField0_ & ~0x00000001);
        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>
       *
       * @return The totalEstimatedBytes.
       */
      @java.lang.Override
      public long getTotalEstimatedBytes() {
        return totalEstimatedBytes_;
      }
      /**
       *
       *
       * <pre>
       * Estimate of the number of bytes to process.
       * </pre>
       *
       * <code>int64 total_estimated_bytes = 2;</code>
       *
       * @param value The totalEstimatedBytes to set.
       * @return This builder for chaining.
       */
      public Builder setTotalEstimatedBytes(long value) {

        totalEstimatedBytes_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Estimate of the number of bytes to process.
       * </pre>
       *
       * <code>int64 total_estimated_bytes = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearTotalEstimatedBytes() {
        bitField0_ = (bitField0_ & ~0x00000002);
        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) != 0)) {
          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) != 0),
                  getParentForChildren(),
                  isClean());
          infoTypeStats_ = null;
        }
        return infoTypeStatsBuilder_;
      }

      private com.google.privacy.dlp.v2.HybridInspectStatistics hybridStats_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.HybridInspectStatistics,
              com.google.privacy.dlp.v2.HybridInspectStatistics.Builder,
              com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder>
          hybridStatsBuilder_;
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       *
       * @return Whether the hybridStats field is set.
       */
      public boolean hasHybridStats() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       *
       * @return The hybridStats.
       */
      public com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats() {
        if (hybridStatsBuilder_ == null) {
          return hybridStats_ == null
              ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()
              : hybridStats_;
        } else {
          return hybridStatsBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public Builder setHybridStats(com.google.privacy.dlp.v2.HybridInspectStatistics value) {
        if (hybridStatsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          hybridStats_ = value;
        } else {
          hybridStatsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public Builder setHybridStats(
          com.google.privacy.dlp.v2.HybridInspectStatistics.Builder builderForValue) {
        if (hybridStatsBuilder_ == null) {
          hybridStats_ = builderForValue.build();
        } else {
          hybridStatsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public Builder mergeHybridStats(com.google.privacy.dlp.v2.HybridInspectStatistics value) {
        if (hybridStatsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)
              && hybridStats_ != null
              && hybridStats_
                  != com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()) {
            getHybridStatsBuilder().mergeFrom(value);
          } else {
            hybridStats_ = value;
          }
        } else {
          hybridStatsBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public Builder clearHybridStats() {
        bitField0_ = (bitField0_ & ~0x00000008);
        hybridStats_ = null;
        if (hybridStatsBuilder_ != null) {
          hybridStatsBuilder_.dispose();
          hybridStatsBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public com.google.privacy.dlp.v2.HybridInspectStatistics.Builder getHybridStatsBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getHybridStatsFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      public com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder() {
        if (hybridStatsBuilder_ != null) {
          return hybridStatsBuilder_.getMessageOrBuilder();
        } else {
          return hybridStats_ == null
              ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()
              : hybridStats_;
        }
      }
      /**
       *
       *
       * <pre>
       * Statistics related to the processing of hybrid inspect.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.HybridInspectStatistics,
              com.google.privacy.dlp.v2.HybridInspectStatistics.Builder,
              com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder>
          getHybridStatsFieldBuilder() {
        if (hybridStatsBuilder_ == null) {
          hybridStatsBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.privacy.dlp.v2.HybridInspectStatistics,
                  com.google.privacy.dlp.v2.HybridInspectStatistics.Builder,
                  com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder>(
                  getHybridStats(), getParentForChildren(), isClean());
          hybridStats_ = null;
        }
        return hybridStatsBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      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>() {
          @java.lang.Override
          public Result parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

    @java.lang.Override
    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>
   *
   * @return Whether the requestedOptions field is set.
   */
  @java.lang.Override
  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>
   *
   * @return The requestedOptions.
   */
  @java.lang.Override
  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>
   */
  @java.lang.Override
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptionsOrBuilder
      getRequestedOptionsOrBuilder() {
    return requestedOptions_ == null
        ? com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions.getDefaultInstance()
        : requestedOptions_;
  }

  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 inspection job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   *
   * @return Whether the result field is set.
   */
  @java.lang.Override
  public boolean hasResult() {
    return result_ != null;
  }
  /**
   *
   *
   * <pre>
   * A summary of the outcome of this inspection job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   *
   * @return The result.
   */
  @java.lang.Override
  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 inspection job.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
   */
  @java.lang.Override
  public com.google.privacy.dlp.v2.InspectDataSourceDetails.ResultOrBuilder getResultOrBuilder() {
    return result_ == null
        ? com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance()
        : result_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  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());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  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 += getUnknownFields().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;

    if (hasRequestedOptions() != other.hasRequestedOptions()) return false;
    if (hasRequestedOptions()) {
      if (!getRequestedOptions().equals(other.getRequestedOptions())) return false;
    }
    if (hasResult() != other.hasResult()) return false;
    if (hasResult()) {
      if (!getResult().equals(other.getResult())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @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) + getUnknownFields().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);
  }

  @java.lang.Override
  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);
  }

  @java.lang.Override
  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;
    }

    @java.lang.Override
    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() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      requestedOptions_ = null;
      if (requestedOptionsBuilder_ != null) {
        requestedOptionsBuilder_.dispose();
        requestedOptionsBuilder_ = null;
      }
      result_ = null;
      if (resultBuilder_ != null) {
        resultBuilder_.dispose();
        resultBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.privacy.dlp.v2.InspectDataSourceDetails buildPartial() {
      com.google.privacy.dlp.v2.InspectDataSourceDetails result =
          new com.google.privacy.dlp.v2.InspectDataSourceDetails(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.privacy.dlp.v2.InspectDataSourceDetails result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.requestedOptions_ =
            requestedOptionsBuilder_ == null ? requestedOptions_ : requestedOptionsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    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.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 18:
              {
                input.readMessage(
                    getRequestedOptionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requestedOptions_;
    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>
     *
     * @return Whether the requestedOptions field is set.
     */
    public boolean hasRequestedOptions() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;
     * </code>
     *
     * @return The requestedOptions.
     */
    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;
      } else {
        requestedOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      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();
      } else {
        requestedOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      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 (((bitField0_ & 0x00000001) != 0)
            && requestedOptions_ != null
            && requestedOptions_
                != com.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions
                    .getDefaultInstance()) {
          getRequestedOptionsBuilder().mergeFrom(value);
        } else {
          requestedOptions_ = value;
        }
      } else {
        requestedOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The configuration used for this job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2;
     * </code>
     */
    public Builder clearRequestedOptions() {
      bitField0_ = (bitField0_ & ~0x00000001);
      requestedOptions_ = null;
      if (requestedOptionsBuilder_ != null) {
        requestedOptionsBuilder_.dispose();
        requestedOptionsBuilder_ = null;
      }
      onChanged();
      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() {
      bitField0_ |= 0x00000001;
      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_;
    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 inspection job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     *
     * @return Whether the result field is set.
     */
    public boolean hasResult() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     *
     * @return The result.
     */
    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 inspection 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;
      } else {
        resultBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection 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();
      } else {
        resultBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection 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 (((bitField0_ & 0x00000002) != 0)
            && result_ != null
            && result_
                != com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.getDefaultInstance()) {
          getResultBuilder().mergeFrom(value);
        } else {
          result_ = value;
        }
      } else {
        resultBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public Builder clearResult() {
      bitField0_ = (bitField0_ & ~0x00000002);
      result_ = null;
      if (resultBuilder_ != null) {
        resultBuilder_.dispose();
        resultBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection job.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3;</code>
     */
    public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result.Builder getResultBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getResultFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * A summary of the outcome of this inspection 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 inspection 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_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    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>() {
        @java.lang.Override
        public InspectDataSourceDetails parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

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