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

package com.google.privacy.dlp.v2;

/**
 * <pre>
 * Contains a configuration to make dlp api calls on a repeating basis.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2.JobTrigger}
 */
public  final class JobTrigger extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.JobTrigger)
    JobTriggerOrBuilder {
private static final long serialVersionUID = 0L;
  // Use JobTrigger.newBuilder() to construct.
  private JobTrigger(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private JobTrigger() {
    name_ = "";
    displayName_ = "";
    description_ = "";
    triggers_ = java.util.Collections.emptyList();
    errors_ = java.util.Collections.emptyList();
    status_ = 0;
  }

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

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

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

            description_ = s;
            break;
          }
          case 34: {
            com.google.privacy.dlp.v2.InspectJobConfig.Builder subBuilder = null;
            if (jobCase_ == 4) {
              subBuilder = ((com.google.privacy.dlp.v2.InspectJobConfig) job_).toBuilder();
            }
            job_ =
                input.readMessage(com.google.privacy.dlp.v2.InspectJobConfig.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.InspectJobConfig) job_);
              job_ = subBuilder.buildPartial();
            }
            jobCase_ = 4;
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              triggers_ = new java.util.ArrayList<com.google.privacy.dlp.v2.JobTrigger.Trigger>();
              mutable_bitField0_ |= 0x00000010;
            }
            triggers_.add(
                input.readMessage(com.google.privacy.dlp.v2.JobTrigger.Trigger.parser(), extensionRegistry));
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              errors_ = new java.util.ArrayList<com.google.privacy.dlp.v2.Error>();
              mutable_bitField0_ |= 0x00000020;
            }
            errors_.add(
                input.readMessage(com.google.privacy.dlp.v2.Error.parser(), extensionRegistry));
            break;
          }
          case 58: {
            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 66: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (updateTime_ != null) {
              subBuilder = updateTime_.toBuilder();
            }
            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(updateTime_);
              updateTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 74: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (lastRunTime_ != null) {
              subBuilder = lastRunTime_.toBuilder();
            }
            lastRunTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lastRunTime_);
              lastRunTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 80: {
            int rawValue = input.readEnum();

            status_ = rawValue;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        triggers_ = java.util.Collections.unmodifiableList(triggers_);
      }
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        errors_ = java.util.Collections.unmodifiableList(errors_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_JobTrigger_descriptor;
  }

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

  /**
   * <pre>
   * Whether the trigger is currently active. If PAUSED or CANCELLED, no jobs
   * will be created with this configuration. The service may automatically
   * pause triggers experiencing frequent errors. To restart a job, set the
   * status to HEALTHY after correcting user errors.
   * </pre>
   *
   * Protobuf enum {@code google.privacy.dlp.v2.JobTrigger.Status}
   */
  public enum Status
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>STATUS_UNSPECIFIED = 0;</code>
     */
    STATUS_UNSPECIFIED(0),
    /**
     * <pre>
     * Trigger is healthy.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    HEALTHY(1),
    /**
     * <pre>
     * Trigger is temporarily paused.
     * </pre>
     *
     * <code>PAUSED = 2;</code>
     */
    PAUSED(2),
    /**
     * <pre>
     * Trigger is cancelled and can not be resumed.
     * </pre>
     *
     * <code>CANCELLED = 3;</code>
     */
    CANCELLED(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>STATUS_UNSPECIFIED = 0;</code>
     */
    public static final int STATUS_UNSPECIFIED_VALUE = 0;
    /**
     * <pre>
     * Trigger is healthy.
     * </pre>
     *
     * <code>HEALTHY = 1;</code>
     */
    public static final int HEALTHY_VALUE = 1;
    /**
     * <pre>
     * Trigger is temporarily paused.
     * </pre>
     *
     * <code>PAUSED = 2;</code>
     */
    public static final int PAUSED_VALUE = 2;
    /**
     * <pre>
     * Trigger is cancelled and can not be resumed.
     * </pre>
     *
     * <code>CANCELLED = 3;</code>
     */
    public static final int CANCELLED_VALUE = 3;


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

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Status valueOf(int value) {
      return forNumber(value);
    }

    public static Status forNumber(int value) {
      switch (value) {
        case 0: return STATUS_UNSPECIFIED;
        case 1: return HEALTHY;
        case 2: return PAUSED;
        case 3: return CANCELLED;
        default: return null;
      }
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      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.privacy.dlp.v2.JobTrigger.getDescriptor().getEnumTypes().get(0);
    }

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

    public static Status 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 Status(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.JobTrigger.Status)
  }

  public interface TriggerOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.JobTrigger.Trigger)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    boolean hasSchedule();
    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    com.google.privacy.dlp.v2.Schedule getSchedule();
    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder();

    public com.google.privacy.dlp.v2.JobTrigger.Trigger.TriggerCase getTriggerCase();
  }
  /**
   * <pre>
   * What event needs to occur for a new job to be started.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.JobTrigger.Trigger}
   */
  public  static final class Trigger extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.JobTrigger.Trigger)
      TriggerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Trigger.newBuilder() to construct.
    private Trigger(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Trigger() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Trigger(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.privacy.dlp.v2.Schedule.Builder subBuilder = null;
              if (triggerCase_ == 1) {
                subBuilder = ((com.google.privacy.dlp.v2.Schedule) trigger_).toBuilder();
              }
              trigger_ =
                  input.readMessage(com.google.privacy.dlp.v2.Schedule.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.privacy.dlp.v2.Schedule) trigger_);
                trigger_ = subBuilder.buildPartial();
              }
              triggerCase_ = 1;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_JobTrigger_Trigger_descriptor;
    }

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

    private int triggerCase_ = 0;
    private java.lang.Object trigger_;
    public enum TriggerCase
        implements com.google.protobuf.Internal.EnumLite {
      SCHEDULE(1),
      TRIGGER_NOT_SET(0);
      private final int value;
      private TriggerCase(int value) {
        this.value = value;
      }
      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static TriggerCase valueOf(int value) {
        return forNumber(value);
      }

      public static TriggerCase forNumber(int value) {
        switch (value) {
          case 1: return SCHEDULE;
          case 0: return TRIGGER_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public TriggerCase
    getTriggerCase() {
      return TriggerCase.forNumber(
          triggerCase_);
    }

    public static final int SCHEDULE_FIELD_NUMBER = 1;
    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    public boolean hasSchedule() {
      return triggerCase_ == 1;
    }
    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    public com.google.privacy.dlp.v2.Schedule getSchedule() {
      if (triggerCase_ == 1) {
         return (com.google.privacy.dlp.v2.Schedule) trigger_;
      }
      return com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
    }
    /**
     * <pre>
     * Create a job on a repeating basis based on the elapse of time.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
     */
    public com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder() {
      if (triggerCase_ == 1) {
         return (com.google.privacy.dlp.v2.Schedule) trigger_;
      }
      return com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
    }

    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 (triggerCase_ == 1) {
        output.writeMessage(1, (com.google.privacy.dlp.v2.Schedule) trigger_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (triggerCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (com.google.privacy.dlp.v2.Schedule) trigger_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      boolean result = true;
      result = result && getTriggerCase().equals(
          other.getTriggerCase());
      if (!result) return false;
      switch (triggerCase_) {
        case 1:
          result = result && getSchedule()
              .equals(other.getSchedule());
          break;
        case 0:
        default:
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (triggerCase_) {
        case 1:
          hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
          hash = (53 * hash) + getSchedule().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2.JobTrigger.Trigger 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>
     * What event needs to occur for a new job to be started.
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2.JobTrigger.Trigger}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.JobTrigger.Trigger)
        com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_JobTrigger_Trigger_descriptor;
      }

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

      // Construct using com.google.privacy.dlp.v2.JobTrigger.Trigger.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();
        triggerCase_ = 0;
        trigger_ = null;
        return this;
      }

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

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

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

      public com.google.privacy.dlp.v2.JobTrigger.Trigger buildPartial() {
        com.google.privacy.dlp.v2.JobTrigger.Trigger result = new com.google.privacy.dlp.v2.JobTrigger.Trigger(this);
        if (triggerCase_ == 1) {
          if (scheduleBuilder_ == null) {
            result.trigger_ = trigger_;
          } else {
            result.trigger_ = scheduleBuilder_.build();
          }
        }
        result.triggerCase_ = triggerCase_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(com.google.privacy.dlp.v2.JobTrigger.Trigger other) {
        if (other == com.google.privacy.dlp.v2.JobTrigger.Trigger.getDefaultInstance()) return this;
        switch (other.getTriggerCase()) {
          case SCHEDULE: {
            mergeSchedule(other.getSchedule());
            break;
          }
          case TRIGGER_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2.JobTrigger.Trigger parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.JobTrigger.Trigger) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int triggerCase_ = 0;
      private java.lang.Object trigger_;
      public TriggerCase
          getTriggerCase() {
        return TriggerCase.forNumber(
            triggerCase_);
      }

      public Builder clearTrigger() {
        triggerCase_ = 0;
        trigger_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.Schedule, com.google.privacy.dlp.v2.Schedule.Builder, com.google.privacy.dlp.v2.ScheduleOrBuilder> scheduleBuilder_;
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public boolean hasSchedule() {
        return triggerCase_ == 1;
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public com.google.privacy.dlp.v2.Schedule getSchedule() {
        if (scheduleBuilder_ == null) {
          if (triggerCase_ == 1) {
            return (com.google.privacy.dlp.v2.Schedule) trigger_;
          }
          return com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
        } else {
          if (triggerCase_ == 1) {
            return scheduleBuilder_.getMessage();
          }
          return com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public Builder setSchedule(com.google.privacy.dlp.v2.Schedule value) {
        if (scheduleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          trigger_ = value;
          onChanged();
        } else {
          scheduleBuilder_.setMessage(value);
        }
        triggerCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public Builder setSchedule(
          com.google.privacy.dlp.v2.Schedule.Builder builderForValue) {
        if (scheduleBuilder_ == null) {
          trigger_ = builderForValue.build();
          onChanged();
        } else {
          scheduleBuilder_.setMessage(builderForValue.build());
        }
        triggerCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public Builder mergeSchedule(com.google.privacy.dlp.v2.Schedule value) {
        if (scheduleBuilder_ == null) {
          if (triggerCase_ == 1 &&
              trigger_ != com.google.privacy.dlp.v2.Schedule.getDefaultInstance()) {
            trigger_ = com.google.privacy.dlp.v2.Schedule.newBuilder((com.google.privacy.dlp.v2.Schedule) trigger_)
                .mergeFrom(value).buildPartial();
          } else {
            trigger_ = value;
          }
          onChanged();
        } else {
          if (triggerCase_ == 1) {
            scheduleBuilder_.mergeFrom(value);
          }
          scheduleBuilder_.setMessage(value);
        }
        triggerCase_ = 1;
        return this;
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public Builder clearSchedule() {
        if (scheduleBuilder_ == null) {
          if (triggerCase_ == 1) {
            triggerCase_ = 0;
            trigger_ = null;
            onChanged();
          }
        } else {
          if (triggerCase_ == 1) {
            triggerCase_ = 0;
            trigger_ = null;
          }
          scheduleBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public com.google.privacy.dlp.v2.Schedule.Builder getScheduleBuilder() {
        return getScheduleFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      public com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder() {
        if ((triggerCase_ == 1) && (scheduleBuilder_ != null)) {
          return scheduleBuilder_.getMessageOrBuilder();
        } else {
          if (triggerCase_ == 1) {
            return (com.google.privacy.dlp.v2.Schedule) trigger_;
          }
          return com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
        }
      }
      /**
       * <pre>
       * Create a job on a repeating basis based on the elapse of time.
       * </pre>
       *
       * <code>.google.privacy.dlp.v2.Schedule schedule = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.Schedule, com.google.privacy.dlp.v2.Schedule.Builder, com.google.privacy.dlp.v2.ScheduleOrBuilder> 
          getScheduleFieldBuilder() {
        if (scheduleBuilder_ == null) {
          if (!(triggerCase_ == 1)) {
            trigger_ = com.google.privacy.dlp.v2.Schedule.getDefaultInstance();
          }
          scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.Schedule, com.google.privacy.dlp.v2.Schedule.Builder, com.google.privacy.dlp.v2.ScheduleOrBuilder>(
                  (com.google.privacy.dlp.v2.Schedule) trigger_,
                  getParentForChildren(),
                  isClean());
          trigger_ = null;
        }
        triggerCase_ = 1;
        onChanged();;
        return scheduleBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


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

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

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

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

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

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

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

  }

  private int bitField0_;
  private int jobCase_ = 0;
  private java.lang.Object job_;
  public enum JobCase
      implements com.google.protobuf.Internal.EnumLite {
    INSPECT_JOB(4),
    JOB_NOT_SET(0);
    private final int value;
    private JobCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static JobCase valueOf(int value) {
      return forNumber(value);
    }

    public static JobCase forNumber(int value) {
      switch (value) {
        case 4: return INSPECT_JOB;
        case 0: return JOB_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public JobCase
  getJobCase() {
    return JobCase.forNumber(
        jobCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   * Unique resource name for the triggeredJob, assigned by the service when the
   * triggeredJob is created, for example
   * `projects/dlp-test-project/triggeredJobs/53234423`.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Unique resource name for the triggeredJob, assigned by the service when the
   * triggeredJob is created, for example
   * `projects/dlp-test-project/triggeredJobs/53234423`.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object displayName_;
  /**
   * <pre>
   * Display name (max 100 chars)
   * </pre>
   *
   * <code>string display_name = 2;</code>
   */
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Display name (max 100 chars)
   * </pre>
   *
   * <code>string display_name = 2;</code>
   */
  public com.google.protobuf.ByteString
      getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 3;
  private volatile java.lang.Object description_;
  /**
   * <pre>
   * User provided description (max 256 chars)
   * </pre>
   *
   * <code>string description = 3;</code>
   */
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * User provided description (max 256 chars)
   * </pre>
   *
   * <code>string description = 3;</code>
   */
  public com.google.protobuf.ByteString
      getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSPECT_JOB_FIELD_NUMBER = 4;
  /**
   * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
   */
  public boolean hasInspectJob() {
    return jobCase_ == 4;
  }
  /**
   * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
   */
  public com.google.privacy.dlp.v2.InspectJobConfig getInspectJob() {
    if (jobCase_ == 4) {
       return (com.google.privacy.dlp.v2.InspectJobConfig) job_;
    }
    return com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
  }
  /**
   * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
   */
  public com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getInspectJobOrBuilder() {
    if (jobCase_ == 4) {
       return (com.google.privacy.dlp.v2.InspectJobConfig) job_;
    }
    return com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
  }

  public static final int TRIGGERS_FIELD_NUMBER = 5;
  private java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger> triggers_;
  /**
   * <pre>
   * A list of triggers which will be OR'ed together. Only one in the list
   * needs to trigger for a job to be started. The list may contain only
   * a single Schedule trigger and must have at least one object.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger> getTriggersList() {
    return triggers_;
  }
  /**
   * <pre>
   * A list of triggers which will be OR'ed together. Only one in the list
   * needs to trigger for a job to be started. The list may contain only
   * a single Schedule trigger and must have at least one object.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder> 
      getTriggersOrBuilderList() {
    return triggers_;
  }
  /**
   * <pre>
   * A list of triggers which will be OR'ed together. Only one in the list
   * needs to trigger for a job to be started. The list may contain only
   * a single Schedule trigger and must have at least one object.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
   */
  public int getTriggersCount() {
    return triggers_.size();
  }
  /**
   * <pre>
   * A list of triggers which will be OR'ed together. Only one in the list
   * needs to trigger for a job to be started. The list may contain only
   * a single Schedule trigger and must have at least one object.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
   */
  public com.google.privacy.dlp.v2.JobTrigger.Trigger getTriggers(int index) {
    return triggers_.get(index);
  }
  /**
   * <pre>
   * A list of triggers which will be OR'ed together. Only one in the list
   * needs to trigger for a job to be started. The list may contain only
   * a single Schedule trigger and must have at least one object.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
   */
  public com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder getTriggersOrBuilder(
      int index) {
    return triggers_.get(index);
  }

  public static final int ERRORS_FIELD_NUMBER = 6;
  private java.util.List<com.google.privacy.dlp.v2.Error> errors_;
  /**
   * <pre>
   * A stream of errors encountered when the trigger was activated. Repeated
   * errors may result in the JobTrigger automaticaly being paused.
   * Will return the last 100 errors. Whenever the JobTrigger is modified
   * this list will be cleared. Output only field.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
   */
  public java.util.List<com.google.privacy.dlp.v2.Error> getErrorsList() {
    return errors_;
  }
  /**
   * <pre>
   * A stream of errors encountered when the trigger was activated. Repeated
   * errors may result in the JobTrigger automaticaly being paused.
   * Will return the last 100 errors. Whenever the JobTrigger is modified
   * this list will be cleared. Output only field.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
   */
  public java.util.List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder> 
      getErrorsOrBuilderList() {
    return errors_;
  }
  /**
   * <pre>
   * A stream of errors encountered when the trigger was activated. Repeated
   * errors may result in the JobTrigger automaticaly being paused.
   * Will return the last 100 errors. Whenever the JobTrigger is modified
   * this list will be cleared. Output only field.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
   */
  public int getErrorsCount() {
    return errors_.size();
  }
  /**
   * <pre>
   * A stream of errors encountered when the trigger was activated. Repeated
   * errors may result in the JobTrigger automaticaly being paused.
   * Will return the last 100 errors. Whenever the JobTrigger is modified
   * this list will be cleared. Output only field.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
   */
  public com.google.privacy.dlp.v2.Error getErrors(int index) {
    return errors_.get(index);
  }
  /**
   * <pre>
   * A stream of errors encountered when the trigger was activated. Repeated
   * errors may result in the JobTrigger automaticaly being paused.
   * Will return the last 100 errors. Whenever the JobTrigger is modified
   * this list will be cleared. Output only field.
   * </pre>
   *
   * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
   */
  public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(
      int index) {
    return errors_.get(index);
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 7;
  private com.google.protobuf.Timestamp createTime_;
  /**
   * <pre>
   * The creation timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 7;</code>
   */
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   * <pre>
   * The creation timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 7;</code>
   */
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   * <pre>
   * The creation timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 7;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 8;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   * <pre>
   * The last update timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 8;</code>
   */
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   * <pre>
   * The last update timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 8;</code>
   */
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   * <pre>
   * The last update timestamp of a triggeredJob, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 8;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return getUpdateTime();
  }

  public static final int LAST_RUN_TIME_FIELD_NUMBER = 9;
  private com.google.protobuf.Timestamp lastRunTime_;
  /**
   * <pre>
   * The timestamp of the last time this trigger executed, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
   */
  public boolean hasLastRunTime() {
    return lastRunTime_ != null;
  }
  /**
   * <pre>
   * The timestamp of the last time this trigger executed, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
   */
  public com.google.protobuf.Timestamp getLastRunTime() {
    return lastRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRunTime_;
  }
  /**
   * <pre>
   * The timestamp of the last time this trigger executed, output only field.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getLastRunTimeOrBuilder() {
    return getLastRunTime();
  }

  public static final int STATUS_FIELD_NUMBER = 10;
  private int status_;
  /**
   * <pre>
   * A status for this trigger. [required]
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
   */
  public int getStatusValue() {
    return status_;
  }
  /**
   * <pre>
   * A status for this trigger. [required]
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
   */
  public com.google.privacy.dlp.v2.JobTrigger.Status getStatus() {
    com.google.privacy.dlp.v2.JobTrigger.Status result = com.google.privacy.dlp.v2.JobTrigger.Status.valueOf(status_);
    return result == null ? com.google.privacy.dlp.v2.JobTrigger.Status.UNRECOGNIZED : result;
  }

  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 (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!getDisplayNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
    }
    if (jobCase_ == 4) {
      output.writeMessage(4, (com.google.privacy.dlp.v2.InspectJobConfig) job_);
    }
    for (int i = 0; i < triggers_.size(); i++) {
      output.writeMessage(5, triggers_.get(i));
    }
    for (int i = 0; i < errors_.size(); i++) {
      output.writeMessage(6, errors_.get(i));
    }
    if (createTime_ != null) {
      output.writeMessage(7, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(8, getUpdateTime());
    }
    if (lastRunTime_ != null) {
      output.writeMessage(9, getLastRunTime());
    }
    if (status_ != com.google.privacy.dlp.v2.JobTrigger.Status.STATUS_UNSPECIFIED.getNumber()) {
      output.writeEnum(10, status_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!getDisplayNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (!getDescriptionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
    }
    if (jobCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.google.privacy.dlp.v2.InspectJobConfig) job_);
    }
    for (int i = 0; i < triggers_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, triggers_.get(i));
    }
    for (int i = 0; i < errors_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, errors_.get(i));
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, getUpdateTime());
    }
    if (lastRunTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, getLastRunTime());
    }
    if (status_ != com.google.privacy.dlp.v2.JobTrigger.Status.STATUS_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(10, status_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && getDisplayName()
        .equals(other.getDisplayName());
    result = result && getDescription()
        .equals(other.getDescription());
    result = result && getTriggersList()
        .equals(other.getTriggersList());
    result = result && getErrorsList()
        .equals(other.getErrorsList());
    result = result && (hasCreateTime() == other.hasCreateTime());
    if (hasCreateTime()) {
      result = result && getCreateTime()
          .equals(other.getCreateTime());
    }
    result = result && (hasUpdateTime() == other.hasUpdateTime());
    if (hasUpdateTime()) {
      result = result && getUpdateTime()
          .equals(other.getUpdateTime());
    }
    result = result && (hasLastRunTime() == other.hasLastRunTime());
    if (hasLastRunTime()) {
      result = result && getLastRunTime()
          .equals(other.getLastRunTime());
    }
    result = result && status_ == other.status_;
    result = result && getJobCase().equals(
        other.getJobCase());
    if (!result) return false;
    switch (jobCase_) {
      case 4:
        result = result && getInspectJob()
            .equals(other.getInspectJob());
        break;
      case 0:
      default:
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    if (getTriggersCount() > 0) {
      hash = (37 * hash) + TRIGGERS_FIELD_NUMBER;
      hash = (53 * hash) + getTriggersList().hashCode();
    }
    if (getErrorsCount() > 0) {
      hash = (37 * hash) + ERRORS_FIELD_NUMBER;
      hash = (53 * hash) + getErrorsList().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    if (hasLastRunTime()) {
      hash = (37 * hash) + LAST_RUN_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getLastRunTime().hashCode();
    }
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + status_;
    switch (jobCase_) {
      case 4:
        hash = (37 * hash) + INSPECT_JOB_FIELD_NUMBER;
        hash = (53 * hash) + getInspectJob().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.privacy.dlp.v2.JobTrigger 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>
   * Contains a configuration to make dlp api calls on a repeating basis.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.JobTrigger}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.JobTrigger)
      com.google.privacy.dlp.v2.JobTriggerOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_JobTrigger_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getTriggersFieldBuilder();
        getErrorsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      name_ = "";

      displayName_ = "";

      description_ = "";

      if (triggersBuilder_ == null) {
        triggers_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
      } else {
        triggersBuilder_.clear();
      }
      if (errorsBuilder_ == null) {
        errors_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
      } else {
        errorsBuilder_.clear();
      }
      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      if (updateTimeBuilder_ == null) {
        updateTime_ = null;
      } else {
        updateTime_ = null;
        updateTimeBuilder_ = null;
      }
      if (lastRunTimeBuilder_ == null) {
        lastRunTime_ = null;
      } else {
        lastRunTime_ = null;
        lastRunTimeBuilder_ = null;
      }
      status_ = 0;

      jobCase_ = 0;
      job_ = null;
      return this;
    }

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

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

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

    public com.google.privacy.dlp.v2.JobTrigger buildPartial() {
      com.google.privacy.dlp.v2.JobTrigger result = new com.google.privacy.dlp.v2.JobTrigger(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.name_ = name_;
      result.displayName_ = displayName_;
      result.description_ = description_;
      if (jobCase_ == 4) {
        if (inspectJobBuilder_ == null) {
          result.job_ = job_;
        } else {
          result.job_ = inspectJobBuilder_.build();
        }
      }
      if (triggersBuilder_ == null) {
        if (((bitField0_ & 0x00000010) == 0x00000010)) {
          triggers_ = java.util.Collections.unmodifiableList(triggers_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.triggers_ = triggers_;
      } else {
        result.triggers_ = triggersBuilder_.build();
      }
      if (errorsBuilder_ == null) {
        if (((bitField0_ & 0x00000020) == 0x00000020)) {
          errors_ = java.util.Collections.unmodifiableList(errors_);
          bitField0_ = (bitField0_ & ~0x00000020);
        }
        result.errors_ = errors_;
      } else {
        result.errors_ = errorsBuilder_.build();
      }
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      if (updateTimeBuilder_ == null) {
        result.updateTime_ = updateTime_;
      } else {
        result.updateTime_ = updateTimeBuilder_.build();
      }
      if (lastRunTimeBuilder_ == null) {
        result.lastRunTime_ = lastRunTime_;
      } else {
        result.lastRunTime_ = lastRunTimeBuilder_.build();
      }
      result.status_ = status_;
      result.bitField0_ = to_bitField0_;
      result.jobCase_ = jobCase_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.google.privacy.dlp.v2.JobTrigger other) {
      if (other == com.google.privacy.dlp.v2.JobTrigger.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        onChanged();
      }
      if (triggersBuilder_ == null) {
        if (!other.triggers_.isEmpty()) {
          if (triggers_.isEmpty()) {
            triggers_ = other.triggers_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureTriggersIsMutable();
            triggers_.addAll(other.triggers_);
          }
          onChanged();
        }
      } else {
        if (!other.triggers_.isEmpty()) {
          if (triggersBuilder_.isEmpty()) {
            triggersBuilder_.dispose();
            triggersBuilder_ = null;
            triggers_ = other.triggers_;
            bitField0_ = (bitField0_ & ~0x00000010);
            triggersBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTriggersFieldBuilder() : null;
          } else {
            triggersBuilder_.addAllMessages(other.triggers_);
          }
        }
      }
      if (errorsBuilder_ == null) {
        if (!other.errors_.isEmpty()) {
          if (errors_.isEmpty()) {
            errors_ = other.errors_;
            bitField0_ = (bitField0_ & ~0x00000020);
          } else {
            ensureErrorsIsMutable();
            errors_.addAll(other.errors_);
          }
          onChanged();
        }
      } else {
        if (!other.errors_.isEmpty()) {
          if (errorsBuilder_.isEmpty()) {
            errorsBuilder_.dispose();
            errorsBuilder_ = null;
            errors_ = other.errors_;
            bitField0_ = (bitField0_ & ~0x00000020);
            errorsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getErrorsFieldBuilder() : null;
          } else {
            errorsBuilder_.addAllMessages(other.errors_);
          }
        }
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (other.hasLastRunTime()) {
        mergeLastRunTime(other.getLastRunTime());
      }
      if (other.status_ != 0) {
        setStatusValue(other.getStatusValue());
      }
      switch (other.getJobCase()) {
        case INSPECT_JOB: {
          mergeInspectJob(other.getInspectJob());
          break;
        }
        case JOB_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.privacy.dlp.v2.JobTrigger parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2.JobTrigger) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int jobCase_ = 0;
    private java.lang.Object job_;
    public JobCase
        getJobCase() {
      return JobCase.forNumber(
          jobCase_);
    }

    public Builder clearJob() {
      jobCase_ = 0;
      job_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     * <pre>
     * Unique resource name for the triggeredJob, assigned by the service when the
     * triggeredJob is created, for example
     * `projects/dlp-test-project/triggeredJobs/53234423`.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Unique resource name for the triggeredJob, assigned by the service when the
     * triggeredJob is created, for example
     * `projects/dlp-test-project/triggeredJobs/53234423`.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Unique resource name for the triggeredJob, assigned by the service when the
     * triggeredJob is created, for example
     * `projects/dlp-test-project/triggeredJobs/53234423`.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique resource name for the triggeredJob, assigned by the service when the
     * triggeredJob is created, for example
     * `projects/dlp-test-project/triggeredJobs/53234423`.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique resource name for the triggeredJob, assigned by the service when the
     * triggeredJob is created, for example
     * `projects/dlp-test-project/triggeredJobs/53234423`.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     * <pre>
     * Display name (max 100 chars)
     * </pre>
     *
     * <code>string display_name = 2;</code>
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Display name (max 100 chars)
     * </pre>
     *
     * <code>string display_name = 2;</code>
     */
    public com.google.protobuf.ByteString
        getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Display name (max 100 chars)
     * </pre>
     *
     * <code>string display_name = 2;</code>
     */
    public Builder setDisplayName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      displayName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Display name (max 100 chars)
     * </pre>
     *
     * <code>string display_name = 2;</code>
     */
    public Builder clearDisplayName() {
      
      displayName_ = getDefaultInstance().getDisplayName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Display name (max 100 chars)
     * </pre>
     *
     * <code>string display_name = 2;</code>
     */
    public Builder setDisplayNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      displayName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     * <pre>
     * User provided description (max 256 chars)
     * </pre>
     *
     * <code>string description = 3;</code>
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * User provided description (max 256 chars)
     * </pre>
     *
     * <code>string description = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * User provided description (max 256 chars)
     * </pre>
     *
     * <code>string description = 3;</code>
     */
    public Builder setDescription(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      description_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * User provided description (max 256 chars)
     * </pre>
     *
     * <code>string description = 3;</code>
     */
    public Builder clearDescription() {
      
      description_ = getDefaultInstance().getDescription();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * User provided description (max 256 chars)
     * </pre>
     *
     * <code>string description = 3;</code>
     */
    public Builder setDescriptionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      description_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder> inspectJobBuilder_;
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public boolean hasInspectJob() {
      return jobCase_ == 4;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public com.google.privacy.dlp.v2.InspectJobConfig getInspectJob() {
      if (inspectJobBuilder_ == null) {
        if (jobCase_ == 4) {
          return (com.google.privacy.dlp.v2.InspectJobConfig) job_;
        }
        return com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
      } else {
        if (jobCase_ == 4) {
          return inspectJobBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public Builder setInspectJob(com.google.privacy.dlp.v2.InspectJobConfig value) {
      if (inspectJobBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        job_ = value;
        onChanged();
      } else {
        inspectJobBuilder_.setMessage(value);
      }
      jobCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public Builder setInspectJob(
        com.google.privacy.dlp.v2.InspectJobConfig.Builder builderForValue) {
      if (inspectJobBuilder_ == null) {
        job_ = builderForValue.build();
        onChanged();
      } else {
        inspectJobBuilder_.setMessage(builderForValue.build());
      }
      jobCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public Builder mergeInspectJob(com.google.privacy.dlp.v2.InspectJobConfig value) {
      if (inspectJobBuilder_ == null) {
        if (jobCase_ == 4 &&
            job_ != com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance()) {
          job_ = com.google.privacy.dlp.v2.InspectJobConfig.newBuilder((com.google.privacy.dlp.v2.InspectJobConfig) job_)
              .mergeFrom(value).buildPartial();
        } else {
          job_ = value;
        }
        onChanged();
      } else {
        if (jobCase_ == 4) {
          inspectJobBuilder_.mergeFrom(value);
        }
        inspectJobBuilder_.setMessage(value);
      }
      jobCase_ = 4;
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public Builder clearInspectJob() {
      if (inspectJobBuilder_ == null) {
        if (jobCase_ == 4) {
          jobCase_ = 0;
          job_ = null;
          onChanged();
        }
      } else {
        if (jobCase_ == 4) {
          jobCase_ = 0;
          job_ = null;
        }
        inspectJobBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public com.google.privacy.dlp.v2.InspectJobConfig.Builder getInspectJobBuilder() {
      return getInspectJobFieldBuilder().getBuilder();
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    public com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getInspectJobOrBuilder() {
      if ((jobCase_ == 4) && (inspectJobBuilder_ != null)) {
        return inspectJobBuilder_.getMessageOrBuilder();
      } else {
        if (jobCase_ == 4) {
          return (com.google.privacy.dlp.v2.InspectJobConfig) job_;
        }
        return com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
      }
    }
    /**
     * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder> 
        getInspectJobFieldBuilder() {
      if (inspectJobBuilder_ == null) {
        if (!(jobCase_ == 4)) {
          job_ = com.google.privacy.dlp.v2.InspectJobConfig.getDefaultInstance();
        }
        inspectJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.InspectJobConfig, com.google.privacy.dlp.v2.InspectJobConfig.Builder, com.google.privacy.dlp.v2.InspectJobConfigOrBuilder>(
                (com.google.privacy.dlp.v2.InspectJobConfig) job_,
                getParentForChildren(),
                isClean());
        job_ = null;
      }
      jobCase_ = 4;
      onChanged();;
      return inspectJobBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger> triggers_ =
      java.util.Collections.emptyList();
    private void ensureTriggersIsMutable() {
      if (!((bitField0_ & 0x00000010) == 0x00000010)) {
        triggers_ = new java.util.ArrayList<com.google.privacy.dlp.v2.JobTrigger.Trigger>(triggers_);
        bitField0_ |= 0x00000010;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2.JobTrigger.Trigger, com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder, com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder> triggersBuilder_;

    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger> getTriggersList() {
      if (triggersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(triggers_);
      } else {
        return triggersBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public int getTriggersCount() {
      if (triggersBuilder_ == null) {
        return triggers_.size();
      } else {
        return triggersBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.Trigger getTriggers(int index) {
      if (triggersBuilder_ == null) {
        return triggers_.get(index);
      } else {
        return triggersBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder setTriggers(
        int index, com.google.privacy.dlp.v2.JobTrigger.Trigger value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.set(index, value);
        onChanged();
      } else {
        triggersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder setTriggers(
        int index, com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.set(index, builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder addTriggers(com.google.privacy.dlp.v2.JobTrigger.Trigger value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.add(value);
        onChanged();
      } else {
        triggersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder addTriggers(
        int index, com.google.privacy.dlp.v2.JobTrigger.Trigger value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.add(index, value);
        onChanged();
      } else {
        triggersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder addTriggers(
        com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.add(builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder addTriggers(
        int index, com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.add(index, builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder addAllTriggers(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2.JobTrigger.Trigger> values) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, triggers_);
        onChanged();
      } else {
        triggersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder clearTriggers() {
      if (triggersBuilder_ == null) {
        triggers_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        triggersBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public Builder removeTriggers(int index) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.remove(index);
        onChanged();
      } else {
        triggersBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder getTriggersBuilder(
        int index) {
      return getTriggersFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder getTriggersOrBuilder(
        int index) {
      if (triggersBuilder_ == null) {
        return triggers_.get(index);  } else {
        return triggersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder> 
         getTriggersOrBuilderList() {
      if (triggersBuilder_ != null) {
        return triggersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(triggers_);
      }
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder addTriggersBuilder() {
      return getTriggersFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2.JobTrigger.Trigger.getDefaultInstance());
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder addTriggersBuilder(
        int index) {
      return getTriggersFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2.JobTrigger.Trigger.getDefaultInstance());
    }
    /**
     * <pre>
     * A list of triggers which will be OR'ed together. Only one in the list
     * needs to trigger for a job to be started. The list may contain only
     * a single Schedule trigger and must have at least one object.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder> 
         getTriggersBuilderList() {
      return getTriggersFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2.JobTrigger.Trigger, com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder, com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder> 
        getTriggersFieldBuilder() {
      if (triggersBuilder_ == null) {
        triggersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2.JobTrigger.Trigger, com.google.privacy.dlp.v2.JobTrigger.Trigger.Builder, com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder>(
                triggers_,
                ((bitField0_ & 0x00000010) == 0x00000010),
                getParentForChildren(),
                isClean());
        triggers_ = null;
      }
      return triggersBuilder_;
    }

    private java.util.List<com.google.privacy.dlp.v2.Error> errors_ =
      java.util.Collections.emptyList();
    private void ensureErrorsIsMutable() {
      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
        errors_ = new java.util.ArrayList<com.google.privacy.dlp.v2.Error>(errors_);
        bitField0_ |= 0x00000020;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2.Error, com.google.privacy.dlp.v2.Error.Builder, com.google.privacy.dlp.v2.ErrorOrBuilder> errorsBuilder_;

    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2.Error> getErrorsList() {
      if (errorsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(errors_);
      } else {
        return errorsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public int getErrorsCount() {
      if (errorsBuilder_ == null) {
        return errors_.size();
      } else {
        return errorsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public com.google.privacy.dlp.v2.Error getErrors(int index) {
      if (errorsBuilder_ == null) {
        return errors_.get(index);
      } else {
        return errorsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder setErrors(
        int index, com.google.privacy.dlp.v2.Error value) {
      if (errorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureErrorsIsMutable();
        errors_.set(index, value);
        onChanged();
      } else {
        errorsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder setErrors(
        int index, com.google.privacy.dlp.v2.Error.Builder builderForValue) {
      if (errorsBuilder_ == null) {
        ensureErrorsIsMutable();
        errors_.set(index, builderForValue.build());
        onChanged();
      } else {
        errorsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder addErrors(com.google.privacy.dlp.v2.Error value) {
      if (errorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureErrorsIsMutable();
        errors_.add(value);
        onChanged();
      } else {
        errorsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder addErrors(
        int index, com.google.privacy.dlp.v2.Error value) {
      if (errorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureErrorsIsMutable();
        errors_.add(index, value);
        onChanged();
      } else {
        errorsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder addErrors(
        com.google.privacy.dlp.v2.Error.Builder builderForValue) {
      if (errorsBuilder_ == null) {
        ensureErrorsIsMutable();
        errors_.add(builderForValue.build());
        onChanged();
      } else {
        errorsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder addErrors(
        int index, com.google.privacy.dlp.v2.Error.Builder builderForValue) {
      if (errorsBuilder_ == null) {
        ensureErrorsIsMutable();
        errors_.add(index, builderForValue.build());
        onChanged();
      } else {
        errorsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder addAllErrors(
        java.lang.Iterable<? extends com.google.privacy.dlp.v2.Error> values) {
      if (errorsBuilder_ == null) {
        ensureErrorsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, errors_);
        onChanged();
      } else {
        errorsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder clearErrors() {
      if (errorsBuilder_ == null) {
        errors_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
      } else {
        errorsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public Builder removeErrors(int index) {
      if (errorsBuilder_ == null) {
        ensureErrorsIsMutable();
        errors_.remove(index);
        onChanged();
      } else {
        errorsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public com.google.privacy.dlp.v2.Error.Builder getErrorsBuilder(
        int index) {
      return getErrorsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(
        int index) {
      if (errorsBuilder_ == null) {
        return errors_.get(index);  } else {
        return errorsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public java.util.List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder> 
         getErrorsOrBuilderList() {
      if (errorsBuilder_ != null) {
        return errorsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(errors_);
      }
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder() {
      return getErrorsFieldBuilder().addBuilder(
          com.google.privacy.dlp.v2.Error.getDefaultInstance());
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder(
        int index) {
      return getErrorsFieldBuilder().addBuilder(
          index, com.google.privacy.dlp.v2.Error.getDefaultInstance());
    }
    /**
     * <pre>
     * A stream of errors encountered when the trigger was activated. Repeated
     * errors may result in the JobTrigger automaticaly being paused.
     * Will return the last 100 errors. Whenever the JobTrigger is modified
     * this list will be cleared. Output only field.
     * </pre>
     *
     * <code>repeated .google.privacy.dlp.v2.Error errors = 6;</code>
     */
    public java.util.List<com.google.privacy.dlp.v2.Error.Builder> 
         getErrorsBuilderList() {
      return getErrorsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.privacy.dlp.v2.Error, com.google.privacy.dlp.v2.Error.Builder, com.google.privacy.dlp.v2.ErrorOrBuilder> 
        getErrorsFieldBuilder() {
      if (errorsBuilder_ == null) {
        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.privacy.dlp.v2.Error, com.google.privacy.dlp.v2.Error.Builder, com.google.privacy.dlp.v2.ErrorOrBuilder>(
                errors_,
                ((bitField0_ & 0x00000020) == 0x00000020),
                getParentForChildren(),
                isClean());
        errors_ = null;
      }
      return errorsBuilder_;
    }

    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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</code>
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     * <pre>
     * The creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</code>
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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 creation timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 7;</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.protobuf.Timestamp updateTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public boolean hasUpdateTime() {
      return updateTimeBuilder_ != null || updateTime_ != null;
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
        onChanged();
      } else {
        updateTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public Builder setUpdateTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
        onChanged();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (updateTime_ != null) {
          updateTime_ =
            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
        } else {
          updateTime_ = value;
        }
        onChanged();
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public Builder clearUpdateTime() {
      if (updateTimeBuilder_ == null) {
        updateTime_ = null;
        onChanged();
      } else {
        updateTime_ = null;
        updateTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
      }
    }
    /**
     * <pre>
     * The last update timestamp of a triggeredJob, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp update_time = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(),
                getParentForChildren(),
                isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private com.google.protobuf.Timestamp lastRunTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastRunTimeBuilder_;
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public boolean hasLastRunTime() {
      return lastRunTimeBuilder_ != null || lastRunTime_ != null;
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public com.google.protobuf.Timestamp getLastRunTime() {
      if (lastRunTimeBuilder_ == null) {
        return lastRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRunTime_;
      } else {
        return lastRunTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public Builder setLastRunTime(com.google.protobuf.Timestamp value) {
      if (lastRunTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lastRunTime_ = value;
        onChanged();
      } else {
        lastRunTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public Builder setLastRunTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (lastRunTimeBuilder_ == null) {
        lastRunTime_ = builderForValue.build();
        onChanged();
      } else {
        lastRunTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public Builder mergeLastRunTime(com.google.protobuf.Timestamp value) {
      if (lastRunTimeBuilder_ == null) {
        if (lastRunTime_ != null) {
          lastRunTime_ =
            com.google.protobuf.Timestamp.newBuilder(lastRunTime_).mergeFrom(value).buildPartial();
        } else {
          lastRunTime_ = value;
        }
        onChanged();
      } else {
        lastRunTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public Builder clearLastRunTime() {
      if (lastRunTimeBuilder_ == null) {
        lastRunTime_ = null;
        onChanged();
      } else {
        lastRunTime_ = null;
        lastRunTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public com.google.protobuf.Timestamp.Builder getLastRunTimeBuilder() {
      
      onChanged();
      return getLastRunTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getLastRunTimeOrBuilder() {
      if (lastRunTimeBuilder_ != null) {
        return lastRunTimeBuilder_.getMessageOrBuilder();
      } else {
        return lastRunTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : lastRunTime_;
      }
    }
    /**
     * <pre>
     * The timestamp of the last time this trigger executed, output only field.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp last_run_time = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getLastRunTimeFieldBuilder() {
      if (lastRunTimeBuilder_ == null) {
        lastRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getLastRunTime(),
                getParentForChildren(),
                isClean());
        lastRunTime_ = null;
      }
      return lastRunTimeBuilder_;
    }

    private int status_ = 0;
    /**
     * <pre>
     * A status for this trigger. [required]
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
     */
    public int getStatusValue() {
      return status_;
    }
    /**
     * <pre>
     * A status for this trigger. [required]
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
     */
    public Builder setStatusValue(int value) {
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * A status for this trigger. [required]
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
     */
    public com.google.privacy.dlp.v2.JobTrigger.Status getStatus() {
      com.google.privacy.dlp.v2.JobTrigger.Status result = com.google.privacy.dlp.v2.JobTrigger.Status.valueOf(status_);
      return result == null ? com.google.privacy.dlp.v2.JobTrigger.Status.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * A status for this trigger. [required]
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
     */
    public Builder setStatus(com.google.privacy.dlp.v2.JobTrigger.Status value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      status_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * A status for this trigger. [required]
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.JobTrigger.Status status = 10;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


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

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

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

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

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

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

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

}

