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

package com.google.privacy.dlp.v2beta1;

/**
 * <pre>
 * Metadata returned within the
 * [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.operations/get)
 * for risk analysis.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata}
 */
public  final class RiskAnalysisOperationMetadata extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata)
    RiskAnalysisOperationMetadataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RiskAnalysisOperationMetadata.newBuilder() to construct.
  private RiskAnalysisOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private RiskAnalysisOperationMetadata() {
  }

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

            break;
          }
          case 18: {
            com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder subBuilder = null;
            if (requestedPrivacyMetric_ != null) {
              subBuilder = requestedPrivacyMetric_.toBuilder();
            }
            requestedPrivacyMetric_ = input.readMessage(com.google.privacy.dlp.v2beta1.PrivacyMetric.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(requestedPrivacyMetric_);
              requestedPrivacyMetric_ = subBuilder.buildPartial();
            }

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

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

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

  public static final int CREATE_TIME_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp createTime_;
  /**
   * <pre>
   * The time which this request was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1;</code>
   */
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   * <pre>
   * The time which this request was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1;</code>
   */
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   * <pre>
   * The time which this request was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int REQUESTED_PRIVACY_METRIC_FIELD_NUMBER = 2;
  private com.google.privacy.dlp.v2beta1.PrivacyMetric requestedPrivacyMetric_;
  /**
   * <pre>
   * Privacy metric to compute.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
   */
  public boolean hasRequestedPrivacyMetric() {
    return requestedPrivacyMetric_ != null;
  }
  /**
   * <pre>
   * Privacy metric to compute.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.PrivacyMetric getRequestedPrivacyMetric() {
    return requestedPrivacyMetric_ == null ? com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : requestedPrivacyMetric_;
  }
  /**
   * <pre>
   * Privacy metric to compute.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
   */
  public com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder getRequestedPrivacyMetricOrBuilder() {
    return getRequestedPrivacyMetric();
  }

  public static final int REQUESTED_SOURCE_TABLE_FIELD_NUMBER = 3;
  private com.google.privacy.dlp.v2beta1.BigQueryTable requestedSourceTable_;
  /**
   * <pre>
   * Input dataset to compute metrics over.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
   */
  public boolean hasRequestedSourceTable() {
    return requestedSourceTable_ != null;
  }
  /**
   * <pre>
   * Input dataset to compute metrics over.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.BigQueryTable getRequestedSourceTable() {
    return requestedSourceTable_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : requestedSourceTable_;
  }
  /**
   * <pre>
   * Input dataset to compute metrics over.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
   */
  public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getRequestedSourceTableOrBuilder() {
    return getRequestedSourceTable();
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (createTime_ != null) {
      output.writeMessage(1, getCreateTime());
    }
    if (requestedPrivacyMetric_ != null) {
      output.writeMessage(2, getRequestedPrivacyMetric());
    }
    if (requestedSourceTable_ != null) {
      output.writeMessage(3, getRequestedSourceTable());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCreateTime());
    }
    if (requestedPrivacyMetric_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getRequestedPrivacyMetric());
    }
    if (requestedSourceTable_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getRequestedSourceTable());
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (hasCreateTime() == other.hasCreateTime());
    if (hasCreateTime()) {
      result = result && getCreateTime()
          .equals(other.getCreateTime());
    }
    result = result && (hasRequestedPrivacyMetric() == other.hasRequestedPrivacyMetric());
    if (hasRequestedPrivacyMetric()) {
      result = result && getRequestedPrivacyMetric()
          .equals(other.getRequestedPrivacyMetric());
    }
    result = result && (hasRequestedSourceTable() == other.hasRequestedSourceTable());
    if (hasRequestedSourceTable()) {
      result = result && getRequestedSourceTable()
          .equals(other.getRequestedSourceTable());
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasRequestedPrivacyMetric()) {
      hash = (37 * hash) + REQUESTED_PRIVACY_METRIC_FIELD_NUMBER;
      hash = (53 * hash) + getRequestedPrivacyMetric().hashCode();
    }
    if (hasRequestedSourceTable()) {
      hash = (37 * hash) + REQUESTED_SOURCE_TABLE_FIELD_NUMBER;
      hash = (53 * hash) + getRequestedSourceTable().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * Metadata returned within the
   * [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.operations/get)
   * for risk analysis.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata)
      com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_RiskAnalysisOperationMetadata_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      if (requestedPrivacyMetricBuilder_ == null) {
        requestedPrivacyMetric_ = null;
      } else {
        requestedPrivacyMetric_ = null;
        requestedPrivacyMetricBuilder_ = null;
      }
      if (requestedSourceTableBuilder_ == null) {
        requestedSourceTable_ = null;
      } else {
        requestedSourceTable_ = null;
        requestedSourceTableBuilder_ = null;
      }
      return this;
    }

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

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

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

    public com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata buildPartial() {
      com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata result = new com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata(this);
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      if (requestedPrivacyMetricBuilder_ == null) {
        result.requestedPrivacyMetric_ = requestedPrivacyMetric_;
      } else {
        result.requestedPrivacyMetric_ = requestedPrivacyMetricBuilder_.build();
      }
      if (requestedSourceTableBuilder_ == null) {
        result.requestedSourceTable_ = requestedSourceTable_;
      } else {
        result.requestedSourceTable_ = requestedSourceTableBuilder_.build();
      }
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata other) {
      if (other == com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata.getDefaultInstance()) return this;
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasRequestedPrivacyMetric()) {
        mergeRequestedPrivacyMetric(other.getRequestedPrivacyMetric());
      }
      if (other.hasRequestedSourceTable()) {
        mergeRequestedSourceTable(other.getRequestedSourceTable());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.google.protobuf.Timestamp createTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
        onChanged();
      } else {
        createTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public Builder setCreateTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
        onChanged();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (createTime_ != null) {
          createTime_ =
            com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
        } else {
          createTime_ = value;
        }
        onChanged();
      } else {
        createTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
      }
    }
    /**
     * <pre>
     * The time which this request was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(),
                getParentForChildren(),
                isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.privacy.dlp.v2beta1.PrivacyMetric requestedPrivacyMetric_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.PrivacyMetric, com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder, com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder> requestedPrivacyMetricBuilder_;
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public boolean hasRequestedPrivacyMetric() {
      return requestedPrivacyMetricBuilder_ != null || requestedPrivacyMetric_ != null;
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrivacyMetric getRequestedPrivacyMetric() {
      if (requestedPrivacyMetricBuilder_ == null) {
        return requestedPrivacyMetric_ == null ? com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : requestedPrivacyMetric_;
      } else {
        return requestedPrivacyMetricBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public Builder setRequestedPrivacyMetric(com.google.privacy.dlp.v2beta1.PrivacyMetric value) {
      if (requestedPrivacyMetricBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        requestedPrivacyMetric_ = value;
        onChanged();
      } else {
        requestedPrivacyMetricBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public Builder setRequestedPrivacyMetric(
        com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder builderForValue) {
      if (requestedPrivacyMetricBuilder_ == null) {
        requestedPrivacyMetric_ = builderForValue.build();
        onChanged();
      } else {
        requestedPrivacyMetricBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public Builder mergeRequestedPrivacyMetric(com.google.privacy.dlp.v2beta1.PrivacyMetric value) {
      if (requestedPrivacyMetricBuilder_ == null) {
        if (requestedPrivacyMetric_ != null) {
          requestedPrivacyMetric_ =
            com.google.privacy.dlp.v2beta1.PrivacyMetric.newBuilder(requestedPrivacyMetric_).mergeFrom(value).buildPartial();
        } else {
          requestedPrivacyMetric_ = value;
        }
        onChanged();
      } else {
        requestedPrivacyMetricBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public Builder clearRequestedPrivacyMetric() {
      if (requestedPrivacyMetricBuilder_ == null) {
        requestedPrivacyMetric_ = null;
        onChanged();
      } else {
        requestedPrivacyMetric_ = null;
        requestedPrivacyMetricBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder getRequestedPrivacyMetricBuilder() {
      
      onChanged();
      return getRequestedPrivacyMetricFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    public com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder getRequestedPrivacyMetricOrBuilder() {
      if (requestedPrivacyMetricBuilder_ != null) {
        return requestedPrivacyMetricBuilder_.getMessageOrBuilder();
      } else {
        return requestedPrivacyMetric_ == null ?
            com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : requestedPrivacyMetric_;
      }
    }
    /**
     * <pre>
     * Privacy metric to compute.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.PrivacyMetric requested_privacy_metric = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.PrivacyMetric, com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder, com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder> 
        getRequestedPrivacyMetricFieldBuilder() {
      if (requestedPrivacyMetricBuilder_ == null) {
        requestedPrivacyMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.PrivacyMetric, com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder, com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder>(
                getRequestedPrivacyMetric(),
                getParentForChildren(),
                isClean());
        requestedPrivacyMetric_ = null;
      }
      return requestedPrivacyMetricBuilder_;
    }

    private com.google.privacy.dlp.v2beta1.BigQueryTable requestedSourceTable_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder> requestedSourceTableBuilder_;
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public boolean hasRequestedSourceTable() {
      return requestedSourceTableBuilder_ != null || requestedSourceTable_ != null;
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.BigQueryTable getRequestedSourceTable() {
      if (requestedSourceTableBuilder_ == null) {
        return requestedSourceTable_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : requestedSourceTable_;
      } else {
        return requestedSourceTableBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public Builder setRequestedSourceTable(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
      if (requestedSourceTableBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        requestedSourceTable_ = value;
        onChanged();
      } else {
        requestedSourceTableBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public Builder setRequestedSourceTable(
        com.google.privacy.dlp.v2beta1.BigQueryTable.Builder builderForValue) {
      if (requestedSourceTableBuilder_ == null) {
        requestedSourceTable_ = builderForValue.build();
        onChanged();
      } else {
        requestedSourceTableBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public Builder mergeRequestedSourceTable(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
      if (requestedSourceTableBuilder_ == null) {
        if (requestedSourceTable_ != null) {
          requestedSourceTable_ =
            com.google.privacy.dlp.v2beta1.BigQueryTable.newBuilder(requestedSourceTable_).mergeFrom(value).buildPartial();
        } else {
          requestedSourceTable_ = value;
        }
        onChanged();
      } else {
        requestedSourceTableBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public Builder clearRequestedSourceTable() {
      if (requestedSourceTableBuilder_ == null) {
        requestedSourceTable_ = null;
        onChanged();
      } else {
        requestedSourceTable_ = null;
        requestedSourceTableBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.BigQueryTable.Builder getRequestedSourceTableBuilder() {
      
      onChanged();
      return getRequestedSourceTableFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getRequestedSourceTableOrBuilder() {
      if (requestedSourceTableBuilder_ != null) {
        return requestedSourceTableBuilder_.getMessageOrBuilder();
      } else {
        return requestedSourceTable_ == null ?
            com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : requestedSourceTable_;
      }
    }
    /**
     * <pre>
     * Input dataset to compute metrics over.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2beta1.BigQueryTable requested_source_table = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder> 
        getRequestedSourceTableFieldBuilder() {
      if (requestedSourceTableBuilder_ == null) {
        requestedSourceTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder>(
                getRequestedSourceTable(),
                getParentForChildren(),
                isClean());
        requestedSourceTable_ = null;
      }
      return requestedSourceTableBuilder_;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.RiskAnalysisOperationMetadata)
  }

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

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

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

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

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

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

}

