/*
 * Copyright 2020 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/cloud/dataplex/v1/logs.proto

package com.google.cloud.dataplex.v1;

/**
 *
 *
 * <pre>
 * These messages contain information about the execution of a datascan.
 * The monitored resource is 'DataScan'
 * </pre>
 *
 * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent}
 */
public final class DataScanEvent extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent)
    DataScanEventOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use DataScanEvent.newBuilder() to construct.
  private DataScanEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private DataScanEvent() {
    dataSource_ = "";
    jobId_ = "";
    type_ = 0;
    state_ = 0;
    message_ = "";
    specVersion_ = "";
    trigger_ = 0;
    scope_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.dataplex.v1.LogsProto
        .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.dataplex.v1.LogsProto
        .internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.dataplex.v1.DataScanEvent.class,
            com.google.cloud.dataplex.v1.DataScanEvent.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * The type of the data scan.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.ScanType}
   */
  public enum ScanType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * An unspecified data scan type.
     * </pre>
     *
     * <code>SCAN_TYPE_UNSPECIFIED = 0;</code>
     */
    SCAN_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Data scan for data profile.
     * </pre>
     *
     * <code>DATA_PROFILE = 1;</code>
     */
    DATA_PROFILE(1),
    /**
     *
     *
     * <pre>
     * Data scan for data quality.
     * </pre>
     *
     * <code>DATA_QUALITY = 2;</code>
     */
    DATA_QUALITY(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * An unspecified data scan type.
     * </pre>
     *
     * <code>SCAN_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int SCAN_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Data scan for data profile.
     * </pre>
     *
     * <code>DATA_PROFILE = 1;</code>
     */
    public static final int DATA_PROFILE_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Data scan for data quality.
     * </pre>
     *
     * <code>DATA_QUALITY = 2;</code>
     */
    public static final int DATA_QUALITY_VALUE = 2;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ScanType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ScanType forNumber(int value) {
      switch (value) {
        case 0:
          return SCAN_TYPE_UNSPECIFIED;
        case 1:
          return DATA_PROFILE;
        case 2:
          return DATA_QUALITY;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ScanType> internalGetValueMap() {
      return internalValueMap;
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(0);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.ScanType)
  }

  /**
   *
   *
   * <pre>
   * The job state of the data scan.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Unspecified job state.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Data scan started.
     * </pre>
     *
     * <code>STARTED = 1;</code>
     */
    STARTED(1),
    /**
     *
     *
     * <pre>
     * Data scan successfully completed.
     * </pre>
     *
     * <code>SUCCEEDED = 2;</code>
     */
    SUCCEEDED(2),
    /**
     *
     *
     * <pre>
     * Data scan was unsuccessful.
     * </pre>
     *
     * <code>FAILED = 3;</code>
     */
    FAILED(3),
    /**
     *
     *
     * <pre>
     * Data scan was cancelled.
     * </pre>
     *
     * <code>CANCELLED = 4;</code>
     */
    CANCELLED(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Unspecified job state.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Data scan started.
     * </pre>
     *
     * <code>STARTED = 1;</code>
     */
    public static final int STARTED_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Data scan successfully completed.
     * </pre>
     *
     * <code>SUCCEEDED = 2;</code>
     */
    public static final int SUCCEEDED_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Data scan was unsuccessful.
     * </pre>
     *
     * <code>FAILED = 3;</code>
     */
    public static final int FAILED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Data scan was cancelled.
     * </pre>
     *
     * <code>CANCELLED = 4;</code>
     */
    public static final int CANCELLED_VALUE = 4;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return STARTED;
        case 2:
          return SUCCEEDED;
        case 3:
          return FAILED;
        case 4:
          return CANCELLED;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(1);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.State)
  }

  /**
   *
   *
   * <pre>
   * The trigger type for the data scan.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.Trigger}
   */
  public enum Trigger implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * An unspecified trigger type.
     * </pre>
     *
     * <code>TRIGGER_UNSPECIFIED = 0;</code>
     */
    TRIGGER_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Data scan triggers on demand.
     * </pre>
     *
     * <code>ON_DEMAND = 1;</code>
     */
    ON_DEMAND(1),
    /**
     *
     *
     * <pre>
     * Data scan triggers as per schedule.
     * </pre>
     *
     * <code>SCHEDULE = 2;</code>
     */
    SCHEDULE(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * An unspecified trigger type.
     * </pre>
     *
     * <code>TRIGGER_UNSPECIFIED = 0;</code>
     */
    public static final int TRIGGER_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Data scan triggers on demand.
     * </pre>
     *
     * <code>ON_DEMAND = 1;</code>
     */
    public static final int ON_DEMAND_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Data scan triggers as per schedule.
     * </pre>
     *
     * <code>SCHEDULE = 2;</code>
     */
    public static final int SCHEDULE_VALUE = 2;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Trigger valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Trigger forNumber(int value) {
      switch (value) {
        case 0:
          return TRIGGER_UNSPECIFIED;
        case 1:
          return ON_DEMAND;
        case 2:
          return SCHEDULE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Trigger> internalGetValueMap() {
      return internalValueMap;
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(2);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Trigger)
  }

  /**
   *
   *
   * <pre>
   * The scope of job for the data scan.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.Scope}
   */
  public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * An unspecified scope type.
     * </pre>
     *
     * <code>SCOPE_UNSPECIFIED = 0;</code>
     */
    SCOPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Data scan runs on all of the data.
     * </pre>
     *
     * <code>FULL = 1;</code>
     */
    FULL(1),
    /**
     *
     *
     * <pre>
     * Data scan runs on incremental data.
     * </pre>
     *
     * <code>INCREMENTAL = 2;</code>
     */
    INCREMENTAL(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * An unspecified scope type.
     * </pre>
     *
     * <code>SCOPE_UNSPECIFIED = 0;</code>
     */
    public static final int SCOPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Data scan runs on all of the data.
     * </pre>
     *
     * <code>FULL = 1;</code>
     */
    public static final int FULL_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Data scan runs on incremental data.
     * </pre>
     *
     * <code>INCREMENTAL = 2;</code>
     */
    public static final int INCREMENTAL_VALUE = 2;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Scope valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Scope forNumber(int value) {
      switch (value) {
        case 0:
          return SCOPE_UNSPECIFIED;
        case 1:
          return FULL;
        case 2:
          return INCREMENTAL;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Scope> internalGetValueMap() {
      return internalValueMap;
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(3);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Scope)
  }

  public interface DataProfileResultOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The count of rows processed in the data scan job.
     * </pre>
     *
     * <code>int64 row_count = 1;</code>
     *
     * @return The rowCount.
     */
    long getRowCount();
  }
  /**
   *
   *
   * <pre>
   * Data profile result for data scan job.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult}
   */
  public static final class DataProfileResult extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
      DataProfileResultOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use DataProfileResult.newBuilder() to construct.
    private DataProfileResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private DataProfileResult() {}

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class,
              com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class);
    }

    public static final int ROW_COUNT_FIELD_NUMBER = 1;
    private long rowCount_ = 0L;
    /**
     *
     *
     * <pre>
     * The count of rows processed in the data scan job.
     * </pre>
     *
     * <code>int64 row_count = 1;</code>
     *
     * @return The rowCount.
     */
    @java.lang.Override
    public long getRowCount() {
      return rowCount_;
    }

    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 (rowCount_ != 0L) {
        output.writeInt64(1, rowCount_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (rowCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_);
      }
      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.cloud.dataplex.v1.DataScanEvent.DataProfileResult)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other =
          (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) obj;

      if (getRowCount() != other.getRowCount()) 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) + ROW_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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>
     * Data profile result for data scan job.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class,
                com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        rowCount_ = 0L;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
          getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult build() {
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult buildPartial() {
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result =
            new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.rowCount_ = rowCount_;
        }
      }

      @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.cloud.dataplex.v1.DataScanEvent.DataProfileResult) {
          return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other) {
        if (other
            == com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance())
          return this;
        if (other.getRowCount() != 0L) {
          setRowCount(other.getRowCount());
        }
        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:
                {
                  rowCount_ = input.readInt64();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              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 rowCount_;
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @return The rowCount.
       */
      @java.lang.Override
      public long getRowCount() {
        return rowCount_;
      }
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @param value The rowCount to set.
       * @return This builder for chaining.
       */
      public Builder setRowCount(long value) {

        rowCount_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearRowCount() {
        bitField0_ = (bitField0_ & ~0x00000001);
        rowCount_ = 0L;
        onChanged();
        return this;
      }

      @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.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
    private static final com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult();
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<DataProfileResult> PARSER =
        new com.google.protobuf.AbstractParser<DataProfileResult>() {
          @java.lang.Override
          public DataProfileResult 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<DataProfileResult> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface DataQualityResultOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The count of rows processed in the data scan job.
     * </pre>
     *
     * <code>int64 row_count = 1;</code>
     *
     * @return The rowCount.
     */
    long getRowCount();

    /**
     *
     *
     * <pre>
     * Whether the data quality result was `pass` or not.
     * </pre>
     *
     * <code>bool passed = 2;</code>
     *
     * @return The passed.
     */
    boolean getPassed();

    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    int getDimensionPassedCount();
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    boolean containsDimensionPassed(java.lang.String key);
    /** Use {@link #getDimensionPassedMap()} instead. */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassed();
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassedMap();
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue);
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    boolean getDimensionPassedOrThrow(java.lang.String key);
  }
  /**
   *
   *
   * <pre>
   * Data quality result for data scan job.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityResult}
   */
  public static final class DataQualityResult extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
      DataQualityResultOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use DataQualityResult.newBuilder() to construct.
    private DataQualityResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private DataQualityResult() {}

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 3:
          return internalGetDimensionPassed();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.class,
              com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder.class);
    }

    public static final int ROW_COUNT_FIELD_NUMBER = 1;
    private long rowCount_ = 0L;
    /**
     *
     *
     * <pre>
     * The count of rows processed in the data scan job.
     * </pre>
     *
     * <code>int64 row_count = 1;</code>
     *
     * @return The rowCount.
     */
    @java.lang.Override
    public long getRowCount() {
      return rowCount_;
    }

    public static final int PASSED_FIELD_NUMBER = 2;
    private boolean passed_ = false;
    /**
     *
     *
     * <pre>
     * Whether the data quality result was `pass` or not.
     * </pre>
     *
     * <code>bool passed = 2;</code>
     *
     * @return The passed.
     */
    @java.lang.Override
    public boolean getPassed() {
      return passed_;
    }

    public static final int DIMENSION_PASSED_FIELD_NUMBER = 3;

    private static final class DimensionPassedDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean> defaultEntry =
          com.google.protobuf.MapEntry.<java.lang.String, java.lang.Boolean>newDefaultInstance(
              com.google.cloud.dataplex.v1.LogsProto
                  .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor,
              com.google.protobuf.WireFormat.FieldType.STRING,
              "",
              com.google.protobuf.WireFormat.FieldType.BOOL,
              false);
    }

    @SuppressWarnings("serial")
    private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean> dimensionPassed_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
        internalGetDimensionPassed() {
      if (dimensionPassed_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            DimensionPassedDefaultEntryHolder.defaultEntry);
      }
      return dimensionPassed_;
    }

    public int getDimensionPassedCount() {
      return internalGetDimensionPassed().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    @java.lang.Override
    public boolean containsDimensionPassed(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetDimensionPassed().getMap().containsKey(key);
    }
    /** Use {@link #getDimensionPassedMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassed() {
      return getDimensionPassedMap();
    }
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassedMap() {
      return internalGetDimensionPassed().getMap();
    }
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    @java.lang.Override
    public boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.Boolean> map =
          internalGetDimensionPassed().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     * </pre>
     *
     * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
     */
    @java.lang.Override
    public boolean getDimensionPassedOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.Boolean> map =
          internalGetDimensionPassed().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    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 (rowCount_ != 0L) {
        output.writeInt64(1, rowCount_);
      }
      if (passed_ != false) {
        output.writeBool(2, passed_);
      }
      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
          output, internalGetDimensionPassed(), DimensionPassedDefaultEntryHolder.defaultEntry, 3);
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (rowCount_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_);
      }
      if (passed_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, passed_);
      }
      for (java.util.Map.Entry<java.lang.String, java.lang.Boolean> entry :
          internalGetDimensionPassed().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean> dimensionPassed__ =
            DimensionPassedDefaultEntryHolder.defaultEntry
                .newBuilderForType()
                .setKey(entry.getKey())
                .setValue(entry.getValue())
                .build();
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dimensionPassed__);
      }
      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.cloud.dataplex.v1.DataScanEvent.DataQualityResult)) {
        return super.equals(obj);
      }
      com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult other =
          (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) obj;

      if (getRowCount() != other.getRowCount()) return false;
      if (getPassed() != other.getPassed()) return false;
      if (!internalGetDimensionPassed().equals(other.internalGetDimensionPassed())) 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) + ROW_COUNT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
      hash = (37 * hash) + PASSED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassed());
      if (!internalGetDimensionPassed().getMap().isEmpty()) {
        hash = (37 * hash) + DIMENSION_PASSED_FIELD_NUMBER;
        hash = (53 * hash) + internalGetDimensionPassed().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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>
     * Data quality result for data scan job.
     * </pre>
     *
     * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityResult}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(int number) {
        switch (number) {
          case 3:
            return internalGetDimensionPassed();
          default:
            throw new RuntimeException("Invalid map field number: " + number);
        }
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
        switch (number) {
          case 3:
            return internalGetMutableDimensionPassed();
          default:
            throw new RuntimeException("Invalid map field number: " + number);
        }
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.class,
                com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder.class);
      }

      // Construct using com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        rowCount_ = 0L;
        passed_ = false;
        internalGetMutableDimensionPassed().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dataplex.v1.LogsProto
            .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
          getDefaultInstanceForType() {
        return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult build() {
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult buildPartial() {
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult result =
            new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.rowCount_ = rowCount_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.passed_ = passed_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.dimensionPassed_ = internalGetDimensionPassed();
          result.dimensionPassed_.makeImmutable();
        }
      }

      @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.cloud.dataplex.v1.DataScanEvent.DataQualityResult) {
          return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult other) {
        if (other
            == com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance())
          return this;
        if (other.getRowCount() != 0L) {
          setRowCount(other.getRowCount());
        }
        if (other.getPassed() != false) {
          setPassed(other.getPassed());
        }
        internalGetMutableDimensionPassed().mergeFrom(other.internalGetDimensionPassed());
        bitField0_ |= 0x00000004;
        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:
                {
                  rowCount_ = input.readInt64();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 16:
                {
                  passed_ = input.readBool();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              case 26:
                {
                  com.google.protobuf.MapEntry<java.lang.String, java.lang.Boolean>
                      dimensionPassed__ =
                          input.readMessage(
                              DimensionPassedDefaultEntryHolder.defaultEntry.getParserForType(),
                              extensionRegistry);
                  internalGetMutableDimensionPassed()
                      .getMutableMap()
                      .put(dimensionPassed__.getKey(), dimensionPassed__.getValue());
                  bitField0_ |= 0x00000004;
                  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 long rowCount_;
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @return The rowCount.
       */
      @java.lang.Override
      public long getRowCount() {
        return rowCount_;
      }
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @param value The rowCount to set.
       * @return This builder for chaining.
       */
      public Builder setRowCount(long value) {

        rowCount_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The count of rows processed in the data scan job.
       * </pre>
       *
       * <code>int64 row_count = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearRowCount() {
        bitField0_ = (bitField0_ & ~0x00000001);
        rowCount_ = 0L;
        onChanged();
        return this;
      }

      private boolean passed_;
      /**
       *
       *
       * <pre>
       * Whether the data quality result was `pass` or not.
       * </pre>
       *
       * <code>bool passed = 2;</code>
       *
       * @return The passed.
       */
      @java.lang.Override
      public boolean getPassed() {
        return passed_;
      }
      /**
       *
       *
       * <pre>
       * Whether the data quality result was `pass` or not.
       * </pre>
       *
       * <code>bool passed = 2;</code>
       *
       * @param value The passed to set.
       * @return This builder for chaining.
       */
      public Builder setPassed(boolean value) {

        passed_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Whether the data quality result was `pass` or not.
       * </pre>
       *
       * <code>bool passed = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPassed() {
        bitField0_ = (bitField0_ & ~0x00000002);
        passed_ = false;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean> dimensionPassed_;

      private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
          internalGetDimensionPassed() {
        if (dimensionPassed_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              DimensionPassedDefaultEntryHolder.defaultEntry);
        }
        return dimensionPassed_;
      }

      private com.google.protobuf.MapField<java.lang.String, java.lang.Boolean>
          internalGetMutableDimensionPassed() {
        if (dimensionPassed_ == null) {
          dimensionPassed_ =
              com.google.protobuf.MapField.newMapField(
                  DimensionPassedDefaultEntryHolder.defaultEntry);
        }
        if (!dimensionPassed_.isMutable()) {
          dimensionPassed_ = dimensionPassed_.copy();
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return dimensionPassed_;
      }

      public int getDimensionPassedCount() {
        return internalGetDimensionPassed().getMap().size();
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      @java.lang.Override
      public boolean containsDimensionPassed(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        return internalGetDimensionPassed().getMap().containsKey(key);
      }
      /** Use {@link #getDimensionPassedMap()} instead. */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassed() {
        return getDimensionPassedMap();
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      @java.lang.Override
      public java.util.Map<java.lang.String, java.lang.Boolean> getDimensionPassedMap() {
        return internalGetDimensionPassed().getMap();
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      @java.lang.Override
      public boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        java.util.Map<java.lang.String, java.lang.Boolean> map =
            internalGetDimensionPassed().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      @java.lang.Override
      public boolean getDimensionPassedOrThrow(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        java.util.Map<java.lang.String, java.lang.Boolean> map =
            internalGetDimensionPassed().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearDimensionPassed() {
        bitField0_ = (bitField0_ & ~0x00000004);
        internalGetMutableDimensionPassed().getMutableMap().clear();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      public Builder removeDimensionPassed(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        internalGetMutableDimensionPassed().getMutableMap().remove(key);
        return this;
      }
      /** Use alternate mutation accessors instead. */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.Boolean> getMutableDimensionPassed() {
        bitField0_ |= 0x00000004;
        return internalGetMutableDimensionPassed().getMutableMap();
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      public Builder putDimensionPassed(java.lang.String key, boolean value) {
        if (key == null) {
          throw new NullPointerException("map key");
        }

        internalGetMutableDimensionPassed().getMutableMap().put(key, value);
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       *
       *
       * <pre>
       * The result of each dimension for data quality result.
       * The key of the map is the name of the dimension.
       * The value is the bool value depicting whether the dimension result was
       * `pass` or not.
       * </pre>
       *
       * <code>map&lt;string, bool&gt; dimension_passed = 3;</code>
       */
      public Builder putAllDimensionPassed(
          java.util.Map<java.lang.String, java.lang.Boolean> values) {
        internalGetMutableDimensionPassed().getMutableMap().putAll(values);
        bitField0_ |= 0x00000004;
        return this;
      }

      @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.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
    private static final com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult();
    }

    public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<DataQualityResult> PARSER =
        new com.google.protobuf.AbstractParser<DataQualityResult>() {
          @java.lang.Override
          public DataQualityResult 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<DataQualityResult> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int resultCase_ = 0;
  private java.lang.Object result_;

  public enum ResultCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    DATA_PROFILE(101),
    DATA_QUALITY(102),
    RESULT_NOT_SET(0);
    private final int value;

    private ResultCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ResultCase valueOf(int value) {
      return forNumber(value);
    }

    public static ResultCase forNumber(int value) {
      switch (value) {
        case 101:
          return DATA_PROFILE;
        case 102:
          return DATA_QUALITY;
        case 0:
          return RESULT_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public ResultCase getResultCase() {
    return ResultCase.forNumber(resultCase_);
  }

  public static final int DATA_SOURCE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object dataSource_ = "";
  /**
   *
   *
   * <pre>
   * The data source of the data scan
   * </pre>
   *
   * <code>string data_source = 1;</code>
   *
   * @return The dataSource.
   */
  @java.lang.Override
  public java.lang.String getDataSource() {
    java.lang.Object ref = dataSource_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      dataSource_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The data source of the data scan
   * </pre>
   *
   * <code>string data_source = 1;</code>
   *
   * @return The bytes for dataSource.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDataSourceBytes() {
    java.lang.Object ref = dataSource_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      dataSource_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int JOB_ID_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object jobId_ = "";
  /**
   *
   *
   * <pre>
   * The identifier of the specific data scan job this log entry is for.
   * </pre>
   *
   * <code>string job_id = 2;</code>
   *
   * @return The jobId.
   */
  @java.lang.Override
  public java.lang.String getJobId() {
    java.lang.Object ref = jobId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      jobId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The identifier of the specific data scan job this log entry is for.
   * </pre>
   *
   * <code>string job_id = 2;</code>
   *
   * @return The bytes for jobId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getJobIdBytes() {
    java.lang.Object ref = jobId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      jobId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int START_TIME_FIELD_NUMBER = 3;
  private com.google.protobuf.Timestamp startTime_;
  /**
   *
   *
   * <pre>
   * The time when the data scan job started to run.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 3;</code>
   *
   * @return Whether the startTime field is set.
   */
  @java.lang.Override
  public boolean hasStartTime() {
    return startTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The time when the data scan job started to run.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 3;</code>
   *
   * @return The startTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getStartTime() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }
  /**
   *
   *
   * <pre>
   * The time when the data scan job started to run.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 3;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }

  public static final int END_TIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp endTime_;
  /**
   *
   *
   * <pre>
   * The time when the data scan job finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 4;</code>
   *
   * @return Whether the endTime field is set.
   */
  @java.lang.Override
  public boolean hasEndTime() {
    return endTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * The time when the data scan job finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 4;</code>
   *
   * @return The endTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getEndTime() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }
  /**
   *
   *
   * <pre>
   * The time when the data scan job finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 4;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }

  public static final int TYPE_FIELD_NUMBER = 5;
  private int type_ = 0;
  /**
   *
   *
   * <pre>
   * The type of the data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
   *
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override
  public int getTypeValue() {
    return type_;
  }
  /**
   *
   *
   * <pre>
   * The type of the data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
   *
   * @return The type.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() {
    com.google.cloud.dataplex.v1.DataScanEvent.ScanType result =
        com.google.cloud.dataplex.v1.DataScanEvent.ScanType.forNumber(type_);
    return result == null
        ? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED
        : result;
  }

  public static final int STATE_FIELD_NUMBER = 6;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * The status of the data scan job.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * The status of the data scan job.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.State getState() {
    com.google.cloud.dataplex.v1.DataScanEvent.State result =
        com.google.cloud.dataplex.v1.DataScanEvent.State.forNumber(state_);
    return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED : result;
  }

  public static final int MESSAGE_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object message_ = "";
  /**
   *
   *
   * <pre>
   * The message describing the data scan job event.
   * </pre>
   *
   * <code>string message = 7;</code>
   *
   * @return The message.
   */
  @java.lang.Override
  public java.lang.String getMessage() {
    java.lang.Object ref = message_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      message_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The message describing the data scan job event.
   * </pre>
   *
   * <code>string message = 7;</code>
   *
   * @return The bytes for message.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getMessageBytes() {
    java.lang.Object ref = message_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      message_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SPEC_VERSION_FIELD_NUMBER = 8;

  @SuppressWarnings("serial")
  private volatile java.lang.Object specVersion_ = "";
  /**
   *
   *
   * <pre>
   * A version identifier of the spec which was used to execute this job.
   * </pre>
   *
   * <code>string spec_version = 8;</code>
   *
   * @return The specVersion.
   */
  @java.lang.Override
  public java.lang.String getSpecVersion() {
    java.lang.Object ref = specVersion_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      specVersion_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * A version identifier of the spec which was used to execute this job.
   * </pre>
   *
   * <code>string spec_version = 8;</code>
   *
   * @return The bytes for specVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSpecVersionBytes() {
    java.lang.Object ref = specVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      specVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TRIGGER_FIELD_NUMBER = 9;
  private int trigger_ = 0;
  /**
   *
   *
   * <pre>
   * The trigger type of the data scan job.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
   *
   * @return The enum numeric value on the wire for trigger.
   */
  @java.lang.Override
  public int getTriggerValue() {
    return trigger_;
  }
  /**
   *
   *
   * <pre>
   * The trigger type of the data scan job.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
   *
   * @return The trigger.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() {
    com.google.cloud.dataplex.v1.DataScanEvent.Trigger result =
        com.google.cloud.dataplex.v1.DataScanEvent.Trigger.forNumber(trigger_);
    return result == null
        ? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED
        : result;
  }

  public static final int SCOPE_FIELD_NUMBER = 10;
  private int scope_ = 0;
  /**
   *
   *
   * <pre>
   * The scope of the data scan (e.g. full, incremental).
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
   *
   * @return The enum numeric value on the wire for scope.
   */
  @java.lang.Override
  public int getScopeValue() {
    return scope_;
  }
  /**
   *
   *
   * <pre>
   * The scope of the data scan (e.g. full, incremental).
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
   *
   * @return The scope.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() {
    com.google.cloud.dataplex.v1.DataScanEvent.Scope result =
        com.google.cloud.dataplex.v1.DataScanEvent.Scope.forNumber(scope_);
    return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED : result;
  }

  public static final int DATA_PROFILE_FIELD_NUMBER = 101;
  /**
   *
   *
   * <pre>
   * Data profile result for data profile type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
   *
   * @return Whether the dataProfile field is set.
   */
  @java.lang.Override
  public boolean hasDataProfile() {
    return resultCase_ == 101;
  }
  /**
   *
   *
   * <pre>
   * Data profile result for data profile type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
   *
   * @return The dataProfile.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult getDataProfile() {
    if (resultCase_ == 101) {
      return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_;
    }
    return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Data profile result for data profile type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder
      getDataProfileOrBuilder() {
    if (resultCase_ == 101) {
      return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_;
    }
    return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
  }

  public static final int DATA_QUALITY_FIELD_NUMBER = 102;
  /**
   *
   *
   * <pre>
   * Data quality result for data quality type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
   *
   * @return Whether the dataQuality field is set.
   */
  @java.lang.Override
  public boolean hasDataQuality() {
    return resultCase_ == 102;
  }
  /**
   *
   *
   * <pre>
   * Data quality result for data quality type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
   *
   * @return The dataQuality.
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult getDataQuality() {
    if (resultCase_ == 102) {
      return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_;
    }
    return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Data quality result for data quality type data scan.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
   */
  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder
      getDataQualityOrBuilder() {
    if (resultCase_ == 102) {
      return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_;
    }
    return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSource_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataSource_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_);
    }
    if (startTime_ != null) {
      output.writeMessage(3, getStartTime());
    }
    if (endTime_ != null) {
      output.writeMessage(4, getEndTime());
    }
    if (type_
        != com.google.cloud.dataplex.v1.DataScanEvent.ScanType.SCAN_TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(5, type_);
    }
    if (state_ != com.google.cloud.dataplex.v1.DataScanEvent.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(6, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, message_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, specVersion_);
    }
    if (trigger_
        != com.google.cloud.dataplex.v1.DataScanEvent.Trigger.TRIGGER_UNSPECIFIED.getNumber()) {
      output.writeEnum(9, trigger_);
    }
    if (scope_ != com.google.cloud.dataplex.v1.DataScanEvent.Scope.SCOPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(10, scope_);
    }
    if (resultCase_ == 101) {
      output.writeMessage(
          101, (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_);
    }
    if (resultCase_ == 102) {
      output.writeMessage(
          102, (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSource_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataSource_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_);
    }
    if (startTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
    }
    if (endTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime());
    }
    if (type_
        != com.google.cloud.dataplex.v1.DataScanEvent.ScanType.SCAN_TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_);
    }
    if (state_ != com.google.cloud.dataplex.v1.DataScanEvent.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, message_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specVersion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, specVersion_);
    }
    if (trigger_
        != com.google.cloud.dataplex.v1.DataScanEvent.Trigger.TRIGGER_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, trigger_);
    }
    if (scope_ != com.google.cloud.dataplex.v1.DataScanEvent.Scope.SCOPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, scope_);
    }
    if (resultCase_ == 101) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              101, (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_);
    }
    if (resultCase_ == 102) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              102, (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_);
    }
    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.cloud.dataplex.v1.DataScanEvent)) {
      return super.equals(obj);
    }
    com.google.cloud.dataplex.v1.DataScanEvent other =
        (com.google.cloud.dataplex.v1.DataScanEvent) obj;

    if (!getDataSource().equals(other.getDataSource())) return false;
    if (!getJobId().equals(other.getJobId())) return false;
    if (hasStartTime() != other.hasStartTime()) return false;
    if (hasStartTime()) {
      if (!getStartTime().equals(other.getStartTime())) return false;
    }
    if (hasEndTime() != other.hasEndTime()) return false;
    if (hasEndTime()) {
      if (!getEndTime().equals(other.getEndTime())) return false;
    }
    if (type_ != other.type_) return false;
    if (state_ != other.state_) return false;
    if (!getMessage().equals(other.getMessage())) return false;
    if (!getSpecVersion().equals(other.getSpecVersion())) return false;
    if (trigger_ != other.trigger_) return false;
    if (scope_ != other.scope_) return false;
    if (!getResultCase().equals(other.getResultCase())) return false;
    switch (resultCase_) {
      case 101:
        if (!getDataProfile().equals(other.getDataProfile())) return false;
        break;
      case 102:
        if (!getDataQuality().equals(other.getDataQuality())) return false;
        break;
      case 0:
      default:
    }
    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) + DATA_SOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getDataSource().hashCode();
    hash = (37 * hash) + JOB_ID_FIELD_NUMBER;
    hash = (53 * hash) + getJobId().hashCode();
    if (hasStartTime()) {
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStartTime().hashCode();
    }
    if (hasEndTime()) {
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime().hashCode();
    }
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + type_;
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
    hash = (53 * hash) + getMessage().hashCode();
    hash = (37 * hash) + SPEC_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getSpecVersion().hashCode();
    hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
    hash = (53 * hash) + trigger_;
    hash = (37 * hash) + SCOPE_FIELD_NUMBER;
    hash = (53 * hash) + scope_;
    switch (resultCase_) {
      case 101:
        hash = (37 * hash) + DATA_PROFILE_FIELD_NUMBER;
        hash = (53 * hash) + getDataProfile().hashCode();
        break;
      case 102:
        hash = (37 * hash) + DATA_QUALITY_FIELD_NUMBER;
        hash = (53 * hash) + getDataQuality().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent 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.cloud.dataplex.v1.DataScanEvent parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent 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.cloud.dataplex.v1.DataScanEvent parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent 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.cloud.dataplex.v1.DataScanEvent parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent 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.cloud.dataplex.v1.DataScanEvent 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>
   * These messages contain information about the execution of a datascan.
   * The monitored resource is 'DataScan'
   * </pre>
   *
   * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent)
      com.google.cloud.dataplex.v1.DataScanEventOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataplex.v1.DataScanEvent.class,
              com.google.cloud.dataplex.v1.DataScanEvent.Builder.class);
    }

    // Construct using com.google.cloud.dataplex.v1.DataScanEvent.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      dataSource_ = "";
      jobId_ = "";
      startTime_ = null;
      if (startTimeBuilder_ != null) {
        startTimeBuilder_.dispose();
        startTimeBuilder_ = null;
      }
      endTime_ = null;
      if (endTimeBuilder_ != null) {
        endTimeBuilder_.dispose();
        endTimeBuilder_ = null;
      }
      type_ = 0;
      state_ = 0;
      message_ = "";
      specVersion_ = "";
      trigger_ = 0;
      scope_ = 0;
      if (dataProfileBuilder_ != null) {
        dataProfileBuilder_.clear();
      }
      if (dataQualityBuilder_ != null) {
        dataQualityBuilder_.clear();
      }
      resultCase_ = 0;
      result_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.dataplex.v1.LogsProto
          .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstanceForType() {
      return com.google.cloud.dataplex.v1.DataScanEvent.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent build() {
      com.google.cloud.dataplex.v1.DataScanEvent result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent buildPartial() {
      com.google.cloud.dataplex.v1.DataScanEvent result =
          new com.google.cloud.dataplex.v1.DataScanEvent(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.dataplex.v1.DataScanEvent result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.dataSource_ = dataSource_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.jobId_ = jobId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.type_ = type_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.message_ = message_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.specVersion_ = specVersion_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.trigger_ = trigger_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.scope_ = scope_;
      }
    }

    private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScanEvent result) {
      result.resultCase_ = resultCase_;
      result.result_ = this.result_;
      if (resultCase_ == 101 && dataProfileBuilder_ != null) {
        result.result_ = dataProfileBuilder_.build();
      }
      if (resultCase_ == 102 && dataQualityBuilder_ != null) {
        result.result_ = dataQualityBuilder_.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.cloud.dataplex.v1.DataScanEvent) {
        return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent other) {
      if (other == com.google.cloud.dataplex.v1.DataScanEvent.getDefaultInstance()) return this;
      if (!other.getDataSource().isEmpty()) {
        dataSource_ = other.dataSource_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getJobId().isEmpty()) {
        jobId_ = other.jobId_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.hasStartTime()) {
        mergeStartTime(other.getStartTime());
      }
      if (other.hasEndTime()) {
        mergeEndTime(other.getEndTime());
      }
      if (other.type_ != 0) {
        setTypeValue(other.getTypeValue());
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (!other.getMessage().isEmpty()) {
        message_ = other.message_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (!other.getSpecVersion().isEmpty()) {
        specVersion_ = other.specVersion_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      if (other.trigger_ != 0) {
        setTriggerValue(other.getTriggerValue());
      }
      if (other.scope_ != 0) {
        setScopeValue(other.getScopeValue());
      }
      switch (other.getResultCase()) {
        case DATA_PROFILE:
          {
            mergeDataProfile(other.getDataProfile());
            break;
          }
        case DATA_QUALITY:
          {
            mergeDataQuality(other.getDataQuality());
            break;
          }
        case RESULT_NOT_SET:
          {
            break;
          }
      }
      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:
              {
                dataSource_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                jobId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 40:
              {
                type_ = input.readEnum();
                bitField0_ |= 0x00000010;
                break;
              } // case 40
            case 48:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000020;
                break;
              } // case 48
            case 58:
              {
                message_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 66:
              {
                specVersion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 66
            case 72:
              {
                trigger_ = input.readEnum();
                bitField0_ |= 0x00000100;
                break;
              } // case 72
            case 80:
              {
                scope_ = input.readEnum();
                bitField0_ |= 0x00000200;
                break;
              } // case 80
            case 810:
              {
                input.readMessage(getDataProfileFieldBuilder().getBuilder(), extensionRegistry);
                resultCase_ = 101;
                break;
              } // case 810
            case 818:
              {
                input.readMessage(getDataQualityFieldBuilder().getBuilder(), extensionRegistry);
                resultCase_ = 102;
                break;
              } // case 818
            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 resultCase_ = 0;
    private java.lang.Object result_;

    public ResultCase getResultCase() {
      return ResultCase.forNumber(resultCase_);
    }

    public Builder clearResult() {
      resultCase_ = 0;
      result_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object dataSource_ = "";
    /**
     *
     *
     * <pre>
     * The data source of the data scan
     * </pre>
     *
     * <code>string data_source = 1;</code>
     *
     * @return The dataSource.
     */
    public java.lang.String getDataSource() {
      java.lang.Object ref = dataSource_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dataSource_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The data source of the data scan
     * </pre>
     *
     * <code>string data_source = 1;</code>
     *
     * @return The bytes for dataSource.
     */
    public com.google.protobuf.ByteString getDataSourceBytes() {
      java.lang.Object ref = dataSource_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        dataSource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The data source of the data scan
     * </pre>
     *
     * <code>string data_source = 1;</code>
     *
     * @param value The dataSource to set.
     * @return This builder for chaining.
     */
    public Builder setDataSource(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      dataSource_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The data source of the data scan
     * </pre>
     *
     * <code>string data_source = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDataSource() {
      dataSource_ = getDefaultInstance().getDataSource();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The data source of the data scan
     * </pre>
     *
     * <code>string data_source = 1;</code>
     *
     * @param value The bytes for dataSource to set.
     * @return This builder for chaining.
     */
    public Builder setDataSourceBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      dataSource_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object jobId_ = "";
    /**
     *
     *
     * <pre>
     * The identifier of the specific data scan job this log entry is for.
     * </pre>
     *
     * <code>string job_id = 2;</code>
     *
     * @return The jobId.
     */
    public java.lang.String getJobId() {
      java.lang.Object ref = jobId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        jobId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The identifier of the specific data scan job this log entry is for.
     * </pre>
     *
     * <code>string job_id = 2;</code>
     *
     * @return The bytes for jobId.
     */
    public com.google.protobuf.ByteString getJobIdBytes() {
      java.lang.Object ref = jobId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        jobId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The identifier of the specific data scan job this log entry is for.
     * </pre>
     *
     * <code>string job_id = 2;</code>
     *
     * @param value The jobId to set.
     * @return This builder for chaining.
     */
    public Builder setJobId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      jobId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The identifier of the specific data scan job this log entry is for.
     * </pre>
     *
     * <code>string job_id = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearJobId() {
      jobId_ = getDefaultInstance().getJobId();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The identifier of the specific data scan job this log entry is for.
     * </pre>
     *
     * <code>string job_id = 2;</code>
     *
     * @param value The bytes for jobId to set.
     * @return This builder for chaining.
     */
    public Builder setJobIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      jobId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp startTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        startTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     *
     * @return Whether the startTime field is set.
     */
    public boolean hasStartTime() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     *
     * @return The startTime.
     */
    public com.google.protobuf.Timestamp getStartTime() {
      if (startTimeBuilder_ == null) {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      } else {
        return startTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTime_ = value;
      } else {
        startTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimeBuilder_ == null) {
        startTime_ = builderForValue.build();
      } else {
        startTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && startTime_ != null
            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getStartTimeBuilder().mergeFrom(value);
        } else {
          startTime_ = value;
        }
      } else {
        startTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public Builder clearStartTime() {
      bitField0_ = (bitField0_ & ~0x00000004);
      startTime_ = null;
      if (startTimeBuilder_ != null) {
        startTimeBuilder_.dispose();
        startTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getStartTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      if (startTimeBuilder_ != null) {
        return startTimeBuilder_.getMessageOrBuilder();
      } else {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job started to run.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getStartTimeFieldBuilder() {
      if (startTimeBuilder_ == null) {
        startTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getStartTime(), getParentForChildren(), isClean());
        startTime_ = null;
      }
      return startTimeBuilder_;
    }

    private com.google.protobuf.Timestamp endTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        endTimeBuilder_;
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     *
     * @return Whether the endTime field is set.
     */
    public boolean hasEndTime() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     *
     * @return The endTime.
     */
    public com.google.protobuf.Timestamp getEndTime() {
      if (endTimeBuilder_ == null) {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      } else {
        return endTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endTime_ = value;
      } else {
        endTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (endTimeBuilder_ == null) {
        endTime_ = builderForValue.build();
      } else {
        endTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && endTime_ != null
            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getEndTimeBuilder().mergeFrom(value);
        } else {
          endTime_ = value;
        }
      } else {
        endTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public Builder clearEndTime() {
      bitField0_ = (bitField0_ & ~0x00000008);
      endTime_ = null;
      if (endTimeBuilder_ != null) {
        endTimeBuilder_.dispose();
        endTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getEndTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      if (endTimeBuilder_ != null) {
        return endTimeBuilder_.getMessageOrBuilder();
      } else {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * The time when the data scan job finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getEndTimeFieldBuilder() {
      if (endTimeBuilder_ == null) {
        endTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getEndTime(), getParentForChildren(), isClean());
        endTime_ = null;
      }
      return endTimeBuilder_;
    }

    private int type_ = 0;
    /**
     *
     *
     * <pre>
     * The type of the data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * The type of the data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
     *
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      type_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of the data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() {
      com.google.cloud.dataplex.v1.DataScanEvent.ScanType result =
          com.google.cloud.dataplex.v1.DataScanEvent.ScanType.forNumber(type_);
      return result == null
          ? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The type of the data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
     *
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(com.google.cloud.dataplex.v1.DataScanEvent.ScanType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of the data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearType() {
      bitField0_ = (bitField0_ & ~0x00000010);
      type_ = 0;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * The status of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * The status of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The status of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.State getState() {
      com.google.cloud.dataplex.v1.DataScanEvent.State result =
          com.google.cloud.dataplex.v1.DataScanEvent.State.forNumber(state_);
      return result == null
          ? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The status of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.dataplex.v1.DataScanEvent.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000020;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The status of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.State state = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000020);
      state_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object message_ = "";
    /**
     *
     *
     * <pre>
     * The message describing the data scan job event.
     * </pre>
     *
     * <code>string message = 7;</code>
     *
     * @return The message.
     */
    public java.lang.String getMessage() {
      java.lang.Object ref = message_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        message_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The message describing the data scan job event.
     * </pre>
     *
     * <code>string message = 7;</code>
     *
     * @return The bytes for message.
     */
    public com.google.protobuf.ByteString getMessageBytes() {
      java.lang.Object ref = message_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        message_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The message describing the data scan job event.
     * </pre>
     *
     * <code>string message = 7;</code>
     *
     * @param value The message to set.
     * @return This builder for chaining.
     */
    public Builder setMessage(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      message_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message describing the data scan job event.
     * </pre>
     *
     * <code>string message = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearMessage() {
      message_ = getDefaultInstance().getMessage();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The message describing the data scan job event.
     * </pre>
     *
     * <code>string message = 7;</code>
     *
     * @param value The bytes for message to set.
     * @return This builder for chaining.
     */
    public Builder setMessageBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      message_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    private java.lang.Object specVersion_ = "";
    /**
     *
     *
     * <pre>
     * A version identifier of the spec which was used to execute this job.
     * </pre>
     *
     * <code>string spec_version = 8;</code>
     *
     * @return The specVersion.
     */
    public java.lang.String getSpecVersion() {
      java.lang.Object ref = specVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        specVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * A version identifier of the spec which was used to execute this job.
     * </pre>
     *
     * <code>string spec_version = 8;</code>
     *
     * @return The bytes for specVersion.
     */
    public com.google.protobuf.ByteString getSpecVersionBytes() {
      java.lang.Object ref = specVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        specVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * A version identifier of the spec which was used to execute this job.
     * </pre>
     *
     * <code>string spec_version = 8;</code>
     *
     * @param value The specVersion to set.
     * @return This builder for chaining.
     */
    public Builder setSpecVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      specVersion_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A version identifier of the spec which was used to execute this job.
     * </pre>
     *
     * <code>string spec_version = 8;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSpecVersion() {
      specVersion_ = getDefaultInstance().getSpecVersion();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A version identifier of the spec which was used to execute this job.
     * </pre>
     *
     * <code>string spec_version = 8;</code>
     *
     * @param value The bytes for specVersion to set.
     * @return This builder for chaining.
     */
    public Builder setSpecVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      specVersion_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    private int trigger_ = 0;
    /**
     *
     *
     * <pre>
     * The trigger type of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
     *
     * @return The enum numeric value on the wire for trigger.
     */
    @java.lang.Override
    public int getTriggerValue() {
      return trigger_;
    }
    /**
     *
     *
     * <pre>
     * The trigger type of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
     *
     * @param value The enum numeric value on the wire for trigger to set.
     * @return This builder for chaining.
     */
    public Builder setTriggerValue(int value) {
      trigger_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The trigger type of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
     *
     * @return The trigger.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() {
      com.google.cloud.dataplex.v1.DataScanEvent.Trigger result =
          com.google.cloud.dataplex.v1.DataScanEvent.Trigger.forNumber(trigger_);
      return result == null
          ? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The trigger type of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
     *
     * @param value The trigger to set.
     * @return This builder for chaining.
     */
    public Builder setTrigger(com.google.cloud.dataplex.v1.DataScanEvent.Trigger value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000100;
      trigger_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The trigger type of the data scan job.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearTrigger() {
      bitField0_ = (bitField0_ & ~0x00000100);
      trigger_ = 0;
      onChanged();
      return this;
    }

    private int scope_ = 0;
    /**
     *
     *
     * <pre>
     * The scope of the data scan (e.g. full, incremental).
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
     *
     * @return The enum numeric value on the wire for scope.
     */
    @java.lang.Override
    public int getScopeValue() {
      return scope_;
    }
    /**
     *
     *
     * <pre>
     * The scope of the data scan (e.g. full, incremental).
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
     *
     * @param value The enum numeric value on the wire for scope to set.
     * @return This builder for chaining.
     */
    public Builder setScopeValue(int value) {
      scope_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scope of the data scan (e.g. full, incremental).
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
     *
     * @return The scope.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() {
      com.google.cloud.dataplex.v1.DataScanEvent.Scope result =
          com.google.cloud.dataplex.v1.DataScanEvent.Scope.forNumber(scope_);
      return result == null
          ? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The scope of the data scan (e.g. full, incremental).
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
     *
     * @param value The scope to set.
     * @return This builder for chaining.
     */
    public Builder setScope(com.google.cloud.dataplex.v1.DataScanEvent.Scope value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000200;
      scope_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The scope of the data scan (e.g. full, incremental).
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearScope() {
      bitField0_ = (bitField0_ & ~0x00000200);
      scope_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult,
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder,
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder>
        dataProfileBuilder_;
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     *
     * @return Whether the dataProfile field is set.
     */
    @java.lang.Override
    public boolean hasDataProfile() {
      return resultCase_ == 101;
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     *
     * @return The dataProfile.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult getDataProfile() {
      if (dataProfileBuilder_ == null) {
        if (resultCase_ == 101) {
          return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_;
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
      } else {
        if (resultCase_ == 101) {
          return dataProfileBuilder_.getMessage();
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    public Builder setDataProfile(
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult value) {
      if (dataProfileBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        dataProfileBuilder_.setMessage(value);
      }
      resultCase_ = 101;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    public Builder setDataProfile(
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder builderForValue) {
      if (dataProfileBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        dataProfileBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 101;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    public Builder mergeDataProfile(
        com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult value) {
      if (dataProfileBuilder_ == null) {
        if (resultCase_ == 101
            && result_
                != com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
                    .getDefaultInstance()) {
          result_ =
              com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.newBuilder(
                      (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 101) {
          dataProfileBuilder_.mergeFrom(value);
        } else {
          dataProfileBuilder_.setMessage(value);
        }
      }
      resultCase_ = 101;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    public Builder clearDataProfile() {
      if (dataProfileBuilder_ == null) {
        if (resultCase_ == 101) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 101) {
          resultCase_ = 0;
          result_ = null;
        }
        dataProfileBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder
        getDataProfileBuilder() {
      return getDataProfileFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder
        getDataProfileOrBuilder() {
      if ((resultCase_ == 101) && (dataProfileBuilder_ != null)) {
        return dataProfileBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 101) {
          return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_;
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Data profile result for data profile type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult,
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder,
            com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder>
        getDataProfileFieldBuilder() {
      if (dataProfileBuilder_ == null) {
        if (!(resultCase_ == 101)) {
          result_ =
              com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
        }
        dataProfileBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult,
                com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder,
                com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder>(
                (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 101;
      onChanged();
      return dataProfileBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult,
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder,
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder>
        dataQualityBuilder_;
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     *
     * @return Whether the dataQuality field is set.
     */
    @java.lang.Override
    public boolean hasDataQuality() {
      return resultCase_ == 102;
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     *
     * @return The dataQuality.
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult getDataQuality() {
      if (dataQualityBuilder_ == null) {
        if (resultCase_ == 102) {
          return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_;
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
      } else {
        if (resultCase_ == 102) {
          return dataQualityBuilder_.getMessage();
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    public Builder setDataQuality(
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult value) {
      if (dataQualityBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        dataQualityBuilder_.setMessage(value);
      }
      resultCase_ = 102;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    public Builder setDataQuality(
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder builderForValue) {
      if (dataQualityBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        dataQualityBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 102;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    public Builder mergeDataQuality(
        com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult value) {
      if (dataQualityBuilder_ == null) {
        if (resultCase_ == 102
            && result_
                != com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
                    .getDefaultInstance()) {
          result_ =
              com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.newBuilder(
                      (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 102) {
          dataQualityBuilder_.mergeFrom(value);
        } else {
          dataQualityBuilder_.setMessage(value);
        }
      }
      resultCase_ = 102;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    public Builder clearDataQuality() {
      if (dataQualityBuilder_ == null) {
        if (resultCase_ == 102) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 102) {
          resultCase_ = 0;
          result_ = null;
        }
        dataQualityBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder
        getDataQualityBuilder() {
      return getDataQualityFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    @java.lang.Override
    public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder
        getDataQualityOrBuilder() {
      if ((resultCase_ == 102) && (dataQualityBuilder_ != null)) {
        return dataQualityBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 102) {
          return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_;
        }
        return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Data quality result for data quality type data scan.
     * </pre>
     *
     * <code>.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult,
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder,
            com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder>
        getDataQualityFieldBuilder() {
      if (dataQualityBuilder_ == null) {
        if (!(resultCase_ == 102)) {
          result_ =
              com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance();
        }
        dataQualityBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult,
                com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder,
                com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder>(
                (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 102;
      onChanged();
      return dataQualityBuilder_;
    }

    @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.cloud.dataplex.v1.DataScanEvent)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent)
  private static final com.google.cloud.dataplex.v1.DataScanEvent DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent();
  }

  public static com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<DataScanEvent> PARSER =
      new com.google.protobuf.AbstractParser<DataScanEvent>() {
        @java.lang.Override
        public DataScanEvent 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<DataScanEvent> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
