Class JobTrigger.Builder (3.58.0)

public static final class JobTrigger.Builder extends GeneratedMessageV3.Builder<JobTrigger.Builder> 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

Implements

JobTriggerOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllErrors(Iterable<? extends Error> values)

public JobTrigger.Builder addAllErrors(Iterable<? extends Error> values)

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

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.Error>
Returns
Type Description
JobTrigger.Builder

addAllTriggers(Iterable<? extends JobTrigger.Trigger> values)

public JobTrigger.Builder addAllTriggers(Iterable<? extends JobTrigger.Trigger> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.JobTrigger.Trigger>
Returns
Type Description
JobTrigger.Builder

addErrors(Error value)

public JobTrigger.Builder addErrors(Error value)

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

Parameter
Name Description
value Error
Returns
Type Description
JobTrigger.Builder

addErrors(Error.Builder builderForValue)

public JobTrigger.Builder addErrors(Error.Builder builderForValue)

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

Parameter
Name Description
builderForValue Error.Builder
Returns
Type Description
JobTrigger.Builder

addErrors(int index, Error value)

public JobTrigger.Builder addErrors(int index, Error value)

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

Parameters
Name Description
index int
value Error
Returns
Type Description
JobTrigger.Builder

addErrors(int index, Error.Builder builderForValue)

public JobTrigger.Builder addErrors(int index, Error.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
JobTrigger.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

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

Returns
Type Description
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(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];

Parameter
Name Description
index int
Returns
Type Description
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobTrigger.Builder
Overrides

addTriggers(JobTrigger.Trigger value)

public JobTrigger.Builder addTriggers(JobTrigger.Trigger value)

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;

Parameter
Name Description
value JobTrigger.Trigger
Returns
Type Description
JobTrigger.Builder

addTriggers(JobTrigger.Trigger.Builder builderForValue)

public JobTrigger.Builder addTriggers(JobTrigger.Trigger.Builder builderForValue)

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;

Parameter
Name Description
builderForValue JobTrigger.Trigger.Builder
Returns
Type Description
JobTrigger.Builder

addTriggers(int index, JobTrigger.Trigger value)

public JobTrigger.Builder addTriggers(int index, JobTrigger.Trigger value)

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;

Parameters
Name Description
index int
value JobTrigger.Trigger
Returns
Type Description
JobTrigger.Builder

addTriggers(int index, JobTrigger.Trigger.Builder builderForValue)

public JobTrigger.Builder addTriggers(int index, JobTrigger.Trigger.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue JobTrigger.Trigger.Builder
Returns
Type Description
JobTrigger.Builder

addTriggersBuilder()

public JobTrigger.Trigger.Builder addTriggersBuilder()

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;

Returns
Type Description
JobTrigger.Trigger.Builder

addTriggersBuilder(int index)

public JobTrigger.Trigger.Builder addTriggersBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.Trigger.Builder

build()

public JobTrigger build()
Returns
Type Description
JobTrigger

buildPartial()

public JobTrigger buildPartial()
Returns
Type Description
JobTrigger

clear()

public JobTrigger.Builder clear()
Returns
Type Description
JobTrigger.Builder
Overrides

clearCreateTime()

public JobTrigger.Builder clearCreateTime()

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobTrigger.Builder

clearDescription()

public JobTrigger.Builder clearDescription()

User provided description (max 256 chars)

string description = 3;

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

clearDisplayName()

public JobTrigger.Builder clearDisplayName()

Display name (max 100 chars)

string display_name = 2;

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

clearErrors()

public JobTrigger.Builder clearErrors()

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

Returns
Type Description
JobTrigger.Builder

clearField(Descriptors.FieldDescriptor field)

public JobTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobTrigger.Builder
Overrides

clearInspectJob()

public JobTrigger.Builder clearInspectJob()

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Returns
Type Description
JobTrigger.Builder

clearJob()

public JobTrigger.Builder clearJob()
Returns
Type Description
JobTrigger.Builder

clearLastRunTime()

public JobTrigger.Builder clearLastRunTime()

Output only. The timestamp of the last time this trigger executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobTrigger.Builder

clearName()

public JobTrigger.Builder clearName()

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;

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobTrigger.Builder
Overrides

clearStatus()

public JobTrigger.Builder clearStatus()

Required. A status for this trigger.

.google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

clearTriggers()

public JobTrigger.Builder clearTriggers()

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;

Returns
Type Description
JobTrigger.Builder

clearUpdateTime()

public JobTrigger.Builder clearUpdateTime()

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobTrigger.Builder

clone()

public JobTrigger.Builder clone()
Returns
Type Description
JobTrigger.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public JobTrigger getDefaultInstanceForType()
Returns
Type Description
JobTrigger

getDescription()

public String getDescription()

User provided description (max 256 chars)

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User provided description (max 256 chars)

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name (max 100 chars)

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name (max 100 chars)

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getErrors(int index)

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

Parameter
Name Description
index int
Returns
Type Description
Error

getErrorsBuilder(int index)

public Error.Builder getErrorsBuilder(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];

Parameter
Name Description
index int
Returns
Type Description
Error.Builder

getErrorsBuilderList()

public List<Error.Builder> getErrorsBuilderList()

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

Returns
Type Description
List<Builder>

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

Returns
Type Description
int

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

Returns
Type Description
List<Error>

getErrorsOrBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ErrorOrBuilder

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

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder>

getInspectJob()

public InspectJobConfig getInspectJob()

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Returns
Type Description
InspectJobConfig

The inspectJob.

getInspectJobBuilder()

public InspectJobConfig.Builder getInspectJobBuilder()

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Returns
Type Description
InspectJobConfig.Builder

getInspectJobOrBuilder()

public InspectJobConfigOrBuilder getInspectJobOrBuilder()

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Returns
Type Description
InspectJobConfigOrBuilder

getJobCase()

public JobTrigger.JobCase getJobCase()
Returns
Type Description
JobTrigger.JobCase

getLastRunTime()

public 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];

Returns
Type Description
Timestamp

The lastRunTime.

getLastRunTimeBuilder()

public Timestamp.Builder getLastRunTimeBuilder()

Output only. The timestamp of the last time this trigger executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getLastRunTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

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;

Returns
Type Description
String

The name.

getNameBytes()

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

Returns
Type Description
ByteString

The bytes for name.

getStatus()

public JobTrigger.Status getStatus()

Required. A status for this trigger.

.google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobTrigger.Status

The status.

getStatusValue()

public int getStatusValue()

Required. A status for this trigger.

.google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for status.

getTriggers(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.Trigger

getTriggersBuilder(int index)

public JobTrigger.Trigger.Builder getTriggersBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.Trigger.Builder

getTriggersBuilderList()

public List<JobTrigger.Trigger.Builder> getTriggersBuilderList()

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<Trigger>

getTriggersOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.TriggerOrBuilder

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;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasInspectJob()

public boolean hasInspectJob()

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Returns
Type Description
boolean

Whether the inspectJob field is set.

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

Returns
Type Description
boolean

Whether the lastRunTime field is set.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public JobTrigger.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

mergeFrom(JobTrigger other)

public JobTrigger.Builder mergeFrom(JobTrigger other)
Parameter
Name Description
other JobTrigger
Returns
Type Description
JobTrigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
JobTrigger.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public JobTrigger.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
JobTrigger.Builder
Overrides

mergeInspectJob(InspectJobConfig value)

public JobTrigger.Builder mergeInspectJob(InspectJobConfig value)

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Parameter
Name Description
value InspectJobConfig
Returns
Type Description
JobTrigger.Builder

mergeLastRunTime(Timestamp value)

public JobTrigger.Builder mergeLastRunTime(Timestamp value)

Output only. The timestamp of the last time this trigger executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobTrigger.Builder
Overrides

mergeUpdateTime(Timestamp value)

public JobTrigger.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

removeErrors(int index)

public JobTrigger.Builder removeErrors(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];

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.Builder

removeTriggers(int index)

public JobTrigger.Builder removeTriggers(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;

Parameter
Name Description
index int
Returns
Type Description
JobTrigger.Builder

setCreateTime(Timestamp value)

public JobTrigger.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

setCreateTime(Timestamp.Builder builderForValue)

public JobTrigger.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a triggeredJob.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
JobTrigger.Builder

setDescription(String value)

public JobTrigger.Builder setDescription(String value)

User provided description (max 256 chars)

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public JobTrigger.Builder setDescriptionBytes(ByteString value)

User provided description (max 256 chars)

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setDisplayName(String value)

public JobTrigger.Builder setDisplayName(String value)

Display name (max 100 chars)

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public JobTrigger.Builder setDisplayNameBytes(ByteString value)

Display name (max 100 chars)

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setErrors(int index, Error value)

public JobTrigger.Builder setErrors(int index, Error value)

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

Parameters
Name Description
index int
value Error
Returns
Type Description
JobTrigger.Builder

setErrors(int index, Error.Builder builderForValue)

public JobTrigger.Builder setErrors(int index, Error.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
JobTrigger.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobTrigger.Builder
Overrides

setInspectJob(InspectJobConfig value)

public JobTrigger.Builder setInspectJob(InspectJobConfig value)

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Parameter
Name Description
value InspectJobConfig
Returns
Type Description
JobTrigger.Builder

setInspectJob(InspectJobConfig.Builder builderForValue)

public JobTrigger.Builder setInspectJob(InspectJobConfig.Builder builderForValue)

For inspect jobs, a snapshot of the configuration.

.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;

Parameter
Name Description
builderForValue InspectJobConfig.Builder
Returns
Type Description
JobTrigger.Builder

setLastRunTime(Timestamp value)

public JobTrigger.Builder setLastRunTime(Timestamp value)

Output only. The timestamp of the last time this trigger executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

setLastRunTime(Timestamp.Builder builderForValue)

public JobTrigger.Builder setLastRunTime(Timestamp.Builder builderForValue)

Output only. The timestamp of the last time this trigger executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
JobTrigger.Builder

setName(String value)

public JobTrigger.Builder setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setNameBytes(ByteString value)

public JobTrigger.Builder setNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobTrigger.Builder
Overrides

setStatus(JobTrigger.Status value)

public JobTrigger.Builder setStatus(JobTrigger.Status value)

Required. A status for this trigger.

.google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobTrigger.Status

The status to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setStatusValue(int value)

public JobTrigger.Builder setStatusValue(int value)

Required. A status for this trigger.

.google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
JobTrigger.Builder

This builder for chaining.

setTriggers(int index, JobTrigger.Trigger value)

public JobTrigger.Builder setTriggers(int index, JobTrigger.Trigger value)

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;

Parameters
Name Description
index int
value JobTrigger.Trigger
Returns
Type Description
JobTrigger.Builder

setTriggers(int index, JobTrigger.Trigger.Builder builderForValue)

public JobTrigger.Builder setTriggers(int index, JobTrigger.Trigger.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue JobTrigger.Trigger.Builder
Returns
Type Description
JobTrigger.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final JobTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobTrigger.Builder
Overrides

setUpdateTime(Timestamp value)

public JobTrigger.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
JobTrigger.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public JobTrigger.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a triggeredJob.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
JobTrigger.Builder