Class Finding.Builder (3.45.0)

public static final class Finding.Builder extends GeneratedMessageV3.Builder<Finding.Builder> implements FindingOrBuilder

Represents a piece of potentially sensitive content.

Protobuf type google.privacy.dlp.v2.Finding

Implements

FindingOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Finding build()
Returns
TypeDescription
Finding

buildPartial()

public Finding buildPartial()
Returns
TypeDescription
Finding

clear()

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

clearCreateTime()

public Finding.Builder clearCreateTime()

Timestamp when finding was detected.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Finding.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFindingId()

public Finding.Builder clearFindingId()

The unique finding id.

string finding_id = 15;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearInfoType()

public Finding.Builder clearInfoType()

The type of content that might have been found. Provided if excluded_types is false.

.google.privacy.dlp.v2.InfoType info_type = 2;

Returns
TypeDescription
Finding.Builder

clearJobCreateTime()

public Finding.Builder clearJobCreateTime()

Time the job started that produced this finding.

.google.protobuf.Timestamp job_create_time = 11;

Returns
TypeDescription
Finding.Builder

clearJobName()

public Finding.Builder clearJobName()

The job that stored the finding.

string job_name = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearLabels()

public Finding.Builder clearLabels()
Returns
TypeDescription
Finding.Builder

clearLikelihood()

public Finding.Builder clearLikelihood()

Confidence of how likely it is that the info_type is correct.

.google.privacy.dlp.v2.Likelihood likelihood = 3;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearLocation()

public Finding.Builder clearLocation()

Where the content was found.

.google.privacy.dlp.v2.Location location = 4;

Returns
TypeDescription
Finding.Builder

clearName()

public Finding.Builder clearName()

Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

string name = 14;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuote()

public Finding.Builder clearQuote()

The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if include_quote is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

string quote = 1;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearQuoteInfo()

public Finding.Builder clearQuoteInfo()

Contains data parsed from quotes. Only populated if include_quote was set to true and a supported infoType was requested. Currently supported infoTypes: DATE, DATE_OF_BIRTH and TIME.

.google.privacy.dlp.v2.QuoteInfo quote_info = 7;

Returns
TypeDescription
Finding.Builder

clearResourceName()

public Finding.Builder clearResourceName()

The job that stored the finding.

string resource_name = 8 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearTriggerName()

public Finding.Builder clearTriggerName()

Job trigger name, if applicable, for this finding.

string trigger_name = 9 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

The labels associated with this Finding.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?.

Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?.

No more than 10 labels can be associated with a given finding.

Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 10;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Timestamp when finding was detected.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Timestamp when finding was detected.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Timestamp when finding was detected.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Finding getDefaultInstanceForType()
Returns
TypeDescription
Finding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFindingId()

public String getFindingId()

The unique finding id.

string finding_id = 15;

Returns
TypeDescription
String

The findingId.

getFindingIdBytes()

public ByteString getFindingIdBytes()

The unique finding id.

string finding_id = 15;

Returns
TypeDescription
ByteString

The bytes for findingId.

getInfoType()

public InfoType getInfoType()

The type of content that might have been found. Provided if excluded_types is false.

.google.privacy.dlp.v2.InfoType info_type = 2;

Returns
TypeDescription
InfoType

The infoType.

getInfoTypeBuilder()

public InfoType.Builder getInfoTypeBuilder()

The type of content that might have been found. Provided if excluded_types is false.

.google.privacy.dlp.v2.InfoType info_type = 2;

Returns
TypeDescription
InfoType.Builder

getInfoTypeOrBuilder()

public InfoTypeOrBuilder getInfoTypeOrBuilder()

The type of content that might have been found. Provided if excluded_types is false.

.google.privacy.dlp.v2.InfoType info_type = 2;

Returns
TypeDescription
InfoTypeOrBuilder

getJobCreateTime()

public Timestamp getJobCreateTime()

Time the job started that produced this finding.

.google.protobuf.Timestamp job_create_time = 11;

Returns
TypeDescription
Timestamp

The jobCreateTime.

getJobCreateTimeBuilder()

public Timestamp.Builder getJobCreateTimeBuilder()

Time the job started that produced this finding.

.google.protobuf.Timestamp job_create_time = 11;

Returns
TypeDescription
Builder

getJobCreateTimeOrBuilder()

public TimestampOrBuilder getJobCreateTimeOrBuilder()

Time the job started that produced this finding.

.google.protobuf.Timestamp job_create_time = 11;

Returns
TypeDescription
TimestampOrBuilder

getJobName()

public String getJobName()

The job that stored the finding.

string job_name = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The jobName.

getJobNameBytes()

public ByteString getJobNameBytes()

The job that stored the finding.

string job_name = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for jobName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels associated with this Finding.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?.

Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?.

No more than 10 labels can be associated with a given finding.

Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 10;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels associated with this Finding.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?.

Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?.

No more than 10 labels can be associated with a given finding.

Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 10;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The labels associated with this Finding.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?.

Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?.

No more than 10 labels can be associated with a given finding.

Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 10;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels associated with this Finding.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?.

Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?.

No more than 10 labels can be associated with a given finding.

Examples:

  • "environment" : "production"
  • "pipeline" : "etl"

map<string, string> labels = 10;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLikelihood()

public Likelihood getLikelihood()

Confidence of how likely it is that the info_type is correct.

.google.privacy.dlp.v2.Likelihood likelihood = 3;

Returns
TypeDescription
Likelihood

The likelihood.

getLikelihoodValue()

public int getLikelihoodValue()

Confidence of how likely it is that the info_type is correct.

.google.privacy.dlp.v2.Likelihood likelihood = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for likelihood.

getLocation()

public Location getLocation()

Where the content was found.

.google.privacy.dlp.v2.Location location = 4;

Returns
TypeDescription
Location

The location.

getLocationBuilder()

public Location.Builder getLocationBuilder()

Where the content was found.

.google.privacy.dlp.v2.Location location = 4;

Returns
TypeDescription
Location.Builder

getLocationOrBuilder()

public LocationOrBuilder getLocationOrBuilder()

Where the content was found.

.google.privacy.dlp.v2.Location location = 4;

Returns
TypeDescription
LocationOrBuilder

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

string name = 14;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name in format projects/{project}/locations/{location}/findings/{finding} Populated only when viewing persisted findings.

string name = 14;

Returns
TypeDescription
ByteString

The bytes for name.

getQuote()

public String getQuote()

The content that was found. Even if the content is not textual, it may be converted to a textual representation here. Provided if include_quote is true and the finding is less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes in length, the quote may be omitted.

string quote = 1;

Returns
TypeDescription
String

The quote.

getQuoteBytes()

public ByteString getQuoteBytes()