Class JobTrigger.Builder (3.6.2)

public static final class JobTrigger.Builder extends GeneratedMessageV3.Builder<JobTrigger.Builder> implements JobTriggerOrBuilder

Contains a configuration to make dlp api calls on a repeating basis. See https://cloud.google.com/dlp/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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.Error>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.JobTrigger.Trigger>
Returns
TypeDescription
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
NameDescription
valueError
Returns
TypeDescription
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
NameDescription
builderForValueError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueJobTrigger.Trigger
Returns
TypeDescription
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
NameDescription
builderForValueJobTrigger.Trigger.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueJobTrigger.Trigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueJobTrigger.Trigger.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
JobTrigger.Trigger.Builder

build()

public JobTrigger build()
Returns
TypeDescription
JobTrigger

buildPartial()

public JobTrigger buildPartial()
Returns
TypeDescription
JobTrigger

clear()

public JobTrigger.Builder clear()
Returns
TypeDescription
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
TypeDescription
JobTrigger.Builder

clearDescription()

public JobTrigger.Builder clearDescription()

User provided description (max 256 chars)

string description = 3;

Returns
TypeDescription
JobTrigger.Builder

This builder for chaining.

clearDisplayName()

public JobTrigger.Builder clearDisplayName()

Display name (max 100 chars)

string display_name = 2;

Returns
TypeDescription
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
TypeDescription
JobTrigger.Builder

clearField(Descriptors.FieldDescriptor field)

public JobTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
JobTrigger.Builder

clearJob()

public JobTrigger.Builder clearJob()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
JobTrigger.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
JobTrigger.Builder

clone()

public JobTrigger.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public JobTrigger getDefaultInstanceForType()
Returns
TypeDescription
JobTrigger

getDescription()

public String getDescription()

User provided description (max 256 chars)

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User provided description (max 256 chars)

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name (max 100 chars)

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name (max 100 chars)

string display_name = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InspectJobConfig.Builder

getInspectJobOrBuilder()

public InspectJobConfigOrBuilder getInspectJobOrBuilder()

For inspect jobs, a snapshot of the configuration.

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

Returns
TypeDescription
InspectJobConfigOrBuilder

getJobCase()

public JobTrigger.JobCase getJobCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
JobTrigger.Builder

mergeFrom(JobTrigger other)

public JobTrigger.Builder mergeFrom(JobTrigger other)
Parameter
NameDescription
otherJobTrigger
Returns
TypeDescription
JobTrigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobTrigger.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobTrigger.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInspectJobConfig
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
JobTrigger.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
JobTrigger.Builder

setDescription(String value)

public JobTrigger.Builder setDescription(String value)

User provided description (max 256 chars)

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
indexint
valueError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
JobTrigger.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInspectJobConfig
Returns
TypeDescription
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
NameDescription
builderForValueInspectJobConfig.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueJobTrigger.Status

The status to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueJobTrigger.Trigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueJobTrigger.Trigger.Builder
Returns
TypeDescription
JobTrigger.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final JobTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
JobTrigger.Builder