Class HybridFindingDetails (3.55.0)

public final class HybridFindingDetails extends GeneratedMessageV3 implements HybridFindingDetailsOrBuilder

Populate to associate additional data with each finding.

Protobuf type google.privacy.dlp.v2.HybridFindingDetails

Static Fields

CONTAINER_DETAILS_FIELD_NUMBER

public static final int CONTAINER_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

FILE_OFFSET_FIELD_NUMBER

public static final int FILE_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

ROW_OFFSET_FIELD_NUMBER

public static final int ROW_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

TABLE_OPTIONS_FIELD_NUMBER

public static final int TABLE_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HybridFindingDetails getDefaultInstance()
Returns
Type Description
HybridFindingDetails

getDescriptor()

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

newBuilder()

public static HybridFindingDetails.Builder newBuilder()
Returns
Type Description
HybridFindingDetails.Builder

newBuilder(HybridFindingDetails prototype)

public static HybridFindingDetails.Builder newBuilder(HybridFindingDetails prototype)
Parameter
Name Description
prototype HybridFindingDetails
Returns
Type Description
HybridFindingDetails.Builder

parseDelimitedFrom(InputStream input)

public static HybridFindingDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HybridFindingDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HybridFindingDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HybridFindingDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HybridFindingDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HybridFindingDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HybridFindingDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HybridFindingDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HybridFindingDetails> parser()
Returns
Type Description
Parser<HybridFindingDetails>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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

getParserForType()

public Parser<HybridFindingDetails> getParserForType()
Returns
Type Description
Parser<HybridFindingDetails>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HybridFindingDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HybridFindingDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException