Class JobTrigger

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.JobTrigger
All Implemented Interfaces:
JobTriggerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class JobTrigger extends com.google.protobuf.GeneratedMessage implements JobTriggerOrBuilder
 Contains a configuration to make API calls on a repeating basis.
 See
 https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
 to learn more.
 
Protobuf type google.privacy.dlp.v2.JobTrigger
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getJobCase

      public JobTrigger.JobCase getJobCase()
      Specified by:
      getJobCase in interface JobTriggerOrBuilder
    • getName

      public String getName()
       Unique resource name for the triggeredJob, assigned by the service when the
       triggeredJob is created, for example
       `projects/dlp-test-project/jobTriggers/53234423`.
       
      string name = 1;
      Specified by:
      getName in interface JobTriggerOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Unique resource name for the triggeredJob, assigned by the service when the
       triggeredJob is created, for example
       `projects/dlp-test-project/jobTriggers/53234423`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface JobTriggerOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Display name (max 100 chars)
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface JobTriggerOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name (max 100 chars)
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface JobTriggerOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       User provided description (max 256 chars)
       
      string description = 3;
      Specified by:
      getDescription in interface JobTriggerOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User provided description (max 256 chars)
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface JobTriggerOrBuilder
      Returns:
      The bytes for description.
    • hasInspectJob

      public boolean hasInspectJob()
       For inspect jobs, a snapshot of the configuration.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;
      Specified by:
      hasInspectJob in interface JobTriggerOrBuilder
      Returns:
      Whether the inspectJob field is set.
    • getInspectJob

      public InspectJobConfig getInspectJob()
       For inspect jobs, a snapshot of the configuration.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;
      Specified by:
      getInspectJob in interface JobTriggerOrBuilder
      Returns:
      The inspectJob.
    • getInspectJobOrBuilder

      public InspectJobConfigOrBuilder getInspectJobOrBuilder()
       For inspect jobs, a snapshot of the configuration.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;
      Specified by:
      getInspectJobOrBuilder in interface JobTriggerOrBuilder
    • getTriggersList

      public List<JobTrigger.Trigger> getTriggersList()
       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.
       
      repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
      Specified by:
      getTriggersList in interface JobTriggerOrBuilder
    • getTriggersOrBuilderList

      public List<? extends JobTrigger.TriggerOrBuilder> getTriggersOrBuilderList()
       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.
       
      repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
      Specified by:
      getTriggersOrBuilderList in interface JobTriggerOrBuilder
    • getTriggersCount

      public int getTriggersCount()
       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.
       
      repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
      Specified by:
      getTriggersCount in interface JobTriggerOrBuilder
    • getTriggers

      public JobTrigger.Trigger getTriggers(int index)
       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.
       
      repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
      Specified by:
      getTriggers in interface JobTriggerOrBuilder
    • getTriggersOrBuilder

      public JobTrigger.TriggerOrBuilder getTriggersOrBuilder(int index)
       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.
       
      repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
      Specified by:
      getTriggersOrBuilder in interface JobTriggerOrBuilder
    • getErrorsList

      public List<Error> getErrorsList()
       Output only. A stream of errors encountered when the trigger was activated.
       Repeated errors may result in the JobTrigger automatically being paused.
       Will return the last 100 errors. Whenever the JobTrigger is modified
       this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsList in interface JobTriggerOrBuilder
    • getErrorsOrBuilderList

      public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()
       Output only. A stream of errors encountered when the trigger was activated.
       Repeated errors may result in the JobTrigger automatically being paused.
       Will return the last 100 errors. Whenever the JobTrigger is modified
       this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsOrBuilderList in interface JobTriggerOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       Output only. A stream of errors encountered when the trigger was activated.
       Repeated errors may result in the JobTrigger automatically being paused.
       Will return the last 100 errors. Whenever the JobTrigger is modified
       this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsCount in interface JobTriggerOrBuilder
    • getErrors

      public Error getErrors(int index)
       Output only. A stream of errors encountered when the trigger was activated.
       Repeated errors may result in the JobTrigger automatically being paused.
       Will return the last 100 errors. Whenever the JobTrigger is modified
       this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrors in interface JobTriggerOrBuilder
    • getErrorsOrBuilder

      public ErrorOrBuilder getErrorsOrBuilder(int index)
       Output only. A stream of errors encountered when the trigger was activated.
       Repeated errors may result in the JobTrigger automatically being paused.
       Will return the last 100 errors. Whenever the JobTrigger is modified
       this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsOrBuilder in interface JobTriggerOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface JobTriggerOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface JobTriggerOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface JobTriggerOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last update timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface JobTriggerOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last update timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface JobTriggerOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last update timestamp of a triggeredJob.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface JobTriggerOrBuilder
    • hasLastRunTime

      public boolean hasLastRunTime()
       Output only. The timestamp of the last time this trigger executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastRunTime in interface JobTriggerOrBuilder
      Returns:
      Whether the lastRunTime field is set.
    • getLastRunTime

      public com.google.protobuf.Timestamp getLastRunTime()
       Output only. The timestamp of the last time this trigger executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastRunTime in interface JobTriggerOrBuilder
      Returns:
      The lastRunTime.
    • getLastRunTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastRunTimeOrBuilder()
       Output only. The timestamp of the last time this trigger executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastRunTimeOrBuilder in interface JobTriggerOrBuilder
    • getStatusValue

      public int getStatusValue()
       Required. A status for this trigger.
       
      .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatusValue in interface JobTriggerOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public JobTrigger.Status getStatus()
       Required. A status for this trigger.
       
      .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatus in interface JobTriggerOrBuilder
      Returns:
      The status.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static JobTrigger parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static JobTrigger parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JobTrigger parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JobTrigger parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JobTrigger parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JobTrigger parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JobTrigger parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public JobTrigger.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static JobTrigger.Builder newBuilder()
    • newBuilder

      public static JobTrigger.Builder newBuilder(JobTrigger prototype)
    • toBuilder

      public JobTrigger.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected JobTrigger.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static JobTrigger getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<JobTrigger> parser()
    • getParserForType

      public com.google.protobuf.Parser<JobTrigger> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public JobTrigger getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder