Class DlpJob.Builder (3.4.0)

public static final class DlpJob.Builder extends GeneratedMessageV3.Builder<DlpJob.Builder> implements DlpJobOrBuilder

Combines all of the information about a DLP job.

Protobuf type google.privacy.dlp.v2.DlpJob

Implements

DlpJobOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllErrors(Iterable<? extends Error> values)

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

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.Error>
Returns
TypeDescription
DlpJob.Builder

addErrors(Error value)

public DlpJob.Builder addErrors(Error value)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
valueError
Returns
TypeDescription
DlpJob.Builder

addErrors(Error.Builder builderForValue)

public DlpJob.Builder addErrors(Error.Builder builderForValue)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
builderForValueError.Builder
Returns
TypeDescription
DlpJob.Builder

addErrors(int index, Error value)

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

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameters
NameDescription
indexint
valueError
Returns
TypeDescription
DlpJob.Builder

addErrors(int index, Error.Builder builderForValue)

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

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameters
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
DlpJob.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Returns
TypeDescription
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(int index)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
Error.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DlpJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DlpJob.Builder
Overrides

build()

public DlpJob build()
Returns
TypeDescription
DlpJob

buildPartial()

public DlpJob buildPartial()
Returns
TypeDescription
DlpJob

clear()

public DlpJob.Builder clear()
Returns
TypeDescription
DlpJob.Builder
Overrides

clearCreateTime()

public DlpJob.Builder clearCreateTime()

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
DlpJob.Builder

clearDetails()

public DlpJob.Builder clearDetails()
Returns
TypeDescription
DlpJob.Builder

clearEndTime()

public DlpJob.Builder clearEndTime()

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Returns
TypeDescription
DlpJob.Builder

clearErrors()

public DlpJob.Builder clearErrors()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Returns
TypeDescription
DlpJob.Builder

clearField(Descriptors.FieldDescriptor field)

public DlpJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DlpJob.Builder
Overrides

clearInspectDetails()

public DlpJob.Builder clearInspectDetails()

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Returns
TypeDescription
DlpJob.Builder

clearJobTriggerName()

public DlpJob.Builder clearJobTriggerName()

If created by a job trigger, the resource name of the trigger that instantiated the job.

string job_trigger_name = 10;

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

clearName()

public DlpJob.Builder clearName()

The server-assigned name.

string name = 1;

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DlpJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DlpJob.Builder
Overrides

clearRiskDetails()

public DlpJob.Builder clearRiskDetails()

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Returns
TypeDescription
DlpJob.Builder

clearStartTime()

public DlpJob.Builder clearStartTime()

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
DlpJob.Builder

clearState()

public DlpJob.Builder clearState()

State of a job.

.google.privacy.dlp.v2.DlpJob.JobState state = 3;

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

clearType()

public DlpJob.Builder clearType()

The type of job.

.google.privacy.dlp.v2.DlpJobType type = 2;

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

clone()

public DlpJob.Builder clone()
Returns
TypeDescription
DlpJob.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DlpJob getDefaultInstanceForType()
Returns
TypeDescription
DlpJob

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetailsCase()

public DlpJob.DetailsCase getDetailsCase()
Returns
TypeDescription
DlpJob.DetailsCase

getEndTime()

public Timestamp getEndTime()

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getErrors(int index)

public Error getErrors(int index)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
Error

getErrorsBuilder(int index)

public Error.Builder getErrorsBuilder(int index)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
Error.Builder

getErrorsBuilderList()

public List<Error.Builder> getErrorsBuilderList()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Returns
TypeDescription
List<Builder>

getErrorsCount()

public int getErrorsCount()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Returns
TypeDescription
int

getErrorsList()

public List<Error> getErrorsList()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Returns
TypeDescription
List<Error>

getErrorsOrBuilder(int index)

public ErrorOrBuilder getErrorsOrBuilder(int index)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

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

getInspectDetails()

public InspectDataSourceDetails getInspectDetails()

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Returns
TypeDescription
InspectDataSourceDetails

The inspectDetails.

getInspectDetailsBuilder()

public InspectDataSourceDetails.Builder getInspectDetailsBuilder()

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Returns
TypeDescription
InspectDataSourceDetails.Builder

getInspectDetailsOrBuilder()

public InspectDataSourceDetailsOrBuilder getInspectDetailsOrBuilder()

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Returns
TypeDescription
InspectDataSourceDetailsOrBuilder

getJobTriggerName()

public String getJobTriggerName()

If created by a job trigger, the resource name of the trigger that instantiated the job.

string job_trigger_name = 10;

Returns
TypeDescription
String

The jobTriggerName.

getJobTriggerNameBytes()

public ByteString getJobTriggerNameBytes()

If created by a job trigger, the resource name of the trigger that instantiated the job.

string job_trigger_name = 10;

Returns
TypeDescription
ByteString

The bytes for jobTriggerName.

getName()

public String getName()

The server-assigned name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The server-assigned name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getRiskDetails()

public AnalyzeDataSourceRiskDetails getRiskDetails()

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Returns
TypeDescription
AnalyzeDataSourceRiskDetails

The riskDetails.

getRiskDetailsBuilder()

public AnalyzeDataSourceRiskDetails.Builder getRiskDetailsBuilder()

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Returns
TypeDescription
AnalyzeDataSourceRiskDetails.Builder

getRiskDetailsOrBuilder()

public AnalyzeDataSourceRiskDetailsOrBuilder getRiskDetailsOrBuilder()

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Returns
TypeDescription
AnalyzeDataSourceRiskDetailsOrBuilder

getStartTime()

public Timestamp getStartTime()

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getState()

public DlpJob.JobState getState()

State of a job.

.google.privacy.dlp.v2.DlpJob.JobState state = 3;

Returns
TypeDescription
DlpJob.JobState

The state.

getStateValue()

public int getStateValue()

State of a job.

.google.privacy.dlp.v2.DlpJob.JobState state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getType()

public DlpJobType getType()

The type of job.

.google.privacy.dlp.v2.DlpJobType type = 2;

Returns
TypeDescription
DlpJobType

The type.

getTypeValue()

public int getTypeValue()

The type of job.

.google.privacy.dlp.v2.DlpJobType type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasCreateTime()

public boolean hasCreateTime()

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEndTime()

public boolean hasEndTime()

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasInspectDetails()

public boolean hasInspectDetails()

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Returns
TypeDescription
boolean

Whether the inspectDetails field is set.

hasRiskDetails()

public boolean hasRiskDetails()

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Returns
TypeDescription
boolean

Whether the riskDetails field is set.

hasStartTime()

public boolean hasStartTime()

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Returns
TypeDescription
boolean

Whether the startTime 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 DlpJob.Builder mergeCreateTime(Timestamp value)

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

mergeEndTime(Timestamp value)

public DlpJob.Builder mergeEndTime(Timestamp value)

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

mergeFrom(DlpJob other)

public DlpJob.Builder mergeFrom(DlpJob other)
Parameter
NameDescription
otherDlpJob
Returns
TypeDescription
DlpJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DlpJob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DlpJob.Builder
Overrides

mergeInspectDetails(InspectDataSourceDetails value)

public DlpJob.Builder mergeInspectDetails(InspectDataSourceDetails value)

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Parameter
NameDescription
valueInspectDataSourceDetails
Returns
TypeDescription
DlpJob.Builder

mergeRiskDetails(AnalyzeDataSourceRiskDetails value)

public DlpJob.Builder mergeRiskDetails(AnalyzeDataSourceRiskDetails value)

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Parameter
NameDescription
valueAnalyzeDataSourceRiskDetails
Returns
TypeDescription
DlpJob.Builder

mergeStartTime(Timestamp value)

public DlpJob.Builder mergeStartTime(Timestamp value)

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DlpJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DlpJob.Builder
Overrides

removeErrors(int index)

public DlpJob.Builder removeErrors(int index)

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
DlpJob.Builder

setCreateTime(Timestamp value)

public DlpJob.Builder setCreateTime(Timestamp value)

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DlpJob.Builder setCreateTime(Timestamp.Builder builderForValue)

Time when the job was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DlpJob.Builder

setEndTime(Timestamp value)

public DlpJob.Builder setEndTime(Timestamp value)

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

setEndTime(Timestamp.Builder builderForValue)

public DlpJob.Builder setEndTime(Timestamp.Builder builderForValue)

Time when the job finished.

.google.protobuf.Timestamp end_time = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DlpJob.Builder

setErrors(int index, Error value)

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

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameters
NameDescription
indexint
valueError
Returns
TypeDescription
DlpJob.Builder

setErrors(int index, Error.Builder builderForValue)

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

A stream of errors encountered running the job.

repeated .google.privacy.dlp.v2.Error errors = 11;

Parameters
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
DlpJob.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DlpJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DlpJob.Builder
Overrides

setInspectDetails(InspectDataSourceDetails value)

public DlpJob.Builder setInspectDetails(InspectDataSourceDetails value)

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Parameter
NameDescription
valueInspectDataSourceDetails
Returns
TypeDescription
DlpJob.Builder

setInspectDetails(InspectDataSourceDetails.Builder builderForValue)

public DlpJob.Builder setInspectDetails(InspectDataSourceDetails.Builder builderForValue)

Results from inspecting a data source.

.google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;

Parameter
NameDescription
builderForValueInspectDataSourceDetails.Builder
Returns
TypeDescription
DlpJob.Builder

setJobTriggerName(String value)

public DlpJob.Builder setJobTriggerName(String value)

If created by a job trigger, the resource name of the trigger that instantiated the job.

string job_trigger_name = 10;

Parameter
NameDescription
valueString

The jobTriggerName to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setJobTriggerNameBytes(ByteString value)

public DlpJob.Builder setJobTriggerNameBytes(ByteString value)

If created by a job trigger, the resource name of the trigger that instantiated the job.

string job_trigger_name = 10;

Parameter
NameDescription
valueByteString

The bytes for jobTriggerName to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setName(String value)

public DlpJob.Builder setName(String value)

The server-assigned name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DlpJob.Builder setNameBytes(ByteString value)

The server-assigned name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

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

public DlpJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DlpJob.Builder
Overrides

setRiskDetails(AnalyzeDataSourceRiskDetails value)

public DlpJob.Builder setRiskDetails(AnalyzeDataSourceRiskDetails value)

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Parameter
NameDescription
valueAnalyzeDataSourceRiskDetails
Returns
TypeDescription
DlpJob.Builder

setRiskDetails(AnalyzeDataSourceRiskDetails.Builder builderForValue)

public DlpJob.Builder setRiskDetails(AnalyzeDataSourceRiskDetails.Builder builderForValue)

Results from analyzing risk of a data source.

.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;

Parameter
NameDescription
builderForValueAnalyzeDataSourceRiskDetails.Builder
Returns
TypeDescription
DlpJob.Builder

setStartTime(Timestamp value)

public DlpJob.Builder setStartTime(Timestamp value)

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DlpJob.Builder

setStartTime(Timestamp.Builder builderForValue)

public DlpJob.Builder setStartTime(Timestamp.Builder builderForValue)

Time when the job started.

.google.protobuf.Timestamp start_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DlpJob.Builder

setState(DlpJob.JobState value)

public DlpJob.Builder setState(DlpJob.JobState value)

State of a job.

.google.privacy.dlp.v2.DlpJob.JobState state = 3;

Parameter
NameDescription
valueDlpJob.JobState

The state to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setStateValue(int value)

public DlpJob.Builder setStateValue(int value)

State of a job.

.google.privacy.dlp.v2.DlpJob.JobState state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setType(DlpJobType value)

public DlpJob.Builder setType(DlpJobType value)

The type of job.

.google.privacy.dlp.v2.DlpJobType type = 2;

Parameter
NameDescription
valueDlpJobType

The type to set.

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setTypeValue(int value)

public DlpJob.Builder setTypeValue(int value)

The type of job.

.google.privacy.dlp.v2.DlpJobType type = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DlpJob.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DlpJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DlpJob.Builder
Overrides