Class HybridFindingDetails.Builder (3.58.0)

public static final class HybridFindingDetails.Builder extends GeneratedMessageV3.Builder<HybridFindingDetails.Builder> implements HybridFindingDetailsOrBuilder

Populate to associate additional data with each finding.

Protobuf type google.privacy.dlp.v2.HybridFindingDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HybridFindingDetails build()
Returns
Type Description
HybridFindingDetails

buildPartial()

public HybridFindingDetails buildPartial()
Returns
Type Description
HybridFindingDetails

clear()

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

clearContainerDetails()

public HybridFindingDetails.Builder clearContainerDetails()

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Returns
Type Description
HybridFindingDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFileOffset()

public HybridFindingDetails.Builder clearFileOffset()

Offset in bytes of the line, from the beginning of the file, where the finding is located. Populate if the item being scanned is only part of a bigger item, such as a shard of a file and you want to track the absolute position of the finding.

int64 file_offset = 2;

Returns
Type Description
HybridFindingDetails.Builder

This builder for chaining.

clearLabels()

public HybridFindingDetails.Builder clearLabels()
Returns
Type Description
HybridFindingDetails.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRowOffset()

public HybridFindingDetails.Builder clearRowOffset()

Offset of the row for tables. Populate if the row(s) being scanned are part of a bigger dataset and you want to keep track of their absolute position.

int64 row_offset = 3;

Returns
Type Description
HybridFindingDetails.Builder

This builder for chaining.

clearTableOptions()

public HybridFindingDetails.Builder clearTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
Type Description
HybridFindingDetails.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getContainerDetails()

public Container getContainerDetails()

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Returns
Type Description
Container

The containerDetails.

getContainerDetailsBuilder()

public Container.Builder getContainerDetailsBuilder()

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Returns
Type Description
Container.Builder

getContainerDetailsOrBuilder()

public ContainerOrBuilder getContainerDetailsOrBuilder()

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Returns
Type Description
ContainerOrBuilder

getDefaultInstanceForType()

public HybridFindingDetails getDefaultInstanceForType()
Returns
Type Description
HybridFindingDetails

getDescriptorForType()

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

getFileOffset()

public long getFileOffset()

Offset in bytes of the line, from the beginning of the file, where the finding is located. Populate if the item being scanned is only part of a bigger item, such as a shard of a file and you want to track the absolute position of the finding.

int64 file_offset = 2;

Returns
Type Description
long

The fileOffset.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getRowOffset()

public long getRowOffset()

Offset of the row for tables. Populate if the row(s) being scanned are part of a bigger dataset and you want to keep track of their absolute position.

int64 row_offset = 3;

Returns
Type Description
long

The rowOffset.

getTableOptions()

public TableOptions getTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
Type Description
TableOptions

The tableOptions.

getTableOptionsBuilder()

public TableOptions.Builder getTableOptionsBuilder()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
Type Description
TableOptions.Builder

getTableOptionsOrBuilder()

public TableOptionsOrBuilder getTableOptionsOrBuilder()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
Type Description
TableOptionsOrBuilder

hasContainerDetails()

public boolean hasContainerDetails()

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Returns
Type Description
boolean

Whether the containerDetails field is set.

hasTableOptions()

public boolean hasTableOptions()

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Returns
Type Description
boolean

Whether the tableOptions field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContainerDetails(Container value)

public HybridFindingDetails.Builder mergeContainerDetails(Container value)

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Parameter
Name Description
value Container
Returns
Type Description
HybridFindingDetails.Builder

mergeFrom(HybridFindingDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTableOptions(TableOptions value)

public HybridFindingDetails.Builder mergeTableOptions(TableOptions value)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
Name Description
value TableOptions
Returns
Type Description
HybridFindingDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public HybridFindingDetails.Builder putAllLabels(Map<String,String> values)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
HybridFindingDetails.Builder

putLabels(String key, String value)

public HybridFindingDetails.Builder putLabels(String key, String value)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameters
Name Description
key String
value String
Returns
Type Description
HybridFindingDetails.Builder

removeLabels(String key)

public HybridFindingDetails.Builder removeLabels(String key)

Labels to represent user provided metadata about the data being inspected. If configured by the job, some key values may be required. The labels associated with Finding's produced by hybrid inspection.

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 = 5;

Parameter
Name Description
key String
Returns
Type Description
HybridFindingDetails.Builder

setContainerDetails(Container value)

public HybridFindingDetails.Builder setContainerDetails(Container value)

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Parameter
Name Description
value Container
Returns
Type Description
HybridFindingDetails.Builder

setContainerDetails(Container.Builder builderForValue)

public HybridFindingDetails.Builder setContainerDetails(Container.Builder builderForValue)

Details about the container where the content being inspected is from.

.google.privacy.dlp.v2.Container container_details = 1;

Parameter
Name Description
builderForValue Container.Builder
Returns
Type Description
HybridFindingDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileOffset(long value)

public HybridFindingDetails.Builder setFileOffset(long value)

Offset in bytes of the line, from the beginning of the file, where the finding is located. Populate if the item being scanned is only part of a bigger item, such as a shard of a file and you want to track the absolute position of the finding.

int64 file_offset = 2;

Parameter
Name Description
value long

The fileOffset to set.

Returns
Type Description
HybridFindingDetails.Builder

This builder for chaining.

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

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

setRowOffset(long value)

public HybridFindingDetails.Builder setRowOffset(long value)

Offset of the row for tables. Populate if the row(s) being scanned are part of a bigger dataset and you want to keep track of their absolute position.

int64 row_offset = 3;

Parameter
Name Description
value long

The rowOffset to set.

Returns
Type Description
HybridFindingDetails.Builder

This builder for chaining.

setTableOptions(TableOptions value)

public HybridFindingDetails.Builder setTableOptions(TableOptions value)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
Name Description
value TableOptions
Returns
Type Description
HybridFindingDetails.Builder

setTableOptions(TableOptions.Builder builderForValue)

public HybridFindingDetails.Builder setTableOptions(TableOptions.Builder builderForValue)

If the container is a table, additional information to make findings meaningful such as the columns that are primary keys. If not known ahead of time, can also be set within each inspect hybrid call and the two will be merged. Note that identifying_fields will only be stored to BigQuery, and only if the BigQuery action has been included.

.google.privacy.dlp.v2.TableOptions table_options = 4;

Parameter
Name Description
builderForValue TableOptions.Builder
Returns
Type Description
HybridFindingDetails.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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