public final class Finding extends com.google.protobuf.GeneratedMessageV3 implements FindingOrBuilder
Represents a piece of potentially sensitive content.Protobuf type
google.privacy.dlp.v2.Finding| Modifier and Type | Class and Description |
|---|---|
static class |
Finding.Builder
Represents a piece of potentially sensitive content.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
FINDING_ID_FIELD_NUMBER |
static int |
INFO_TYPE_FIELD_NUMBER |
static int |
JOB_CREATE_TIME_FIELD_NUMBER |
static int |
JOB_NAME_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LIKELIHOOD_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
QUOTE_FIELD_NUMBER |
static int |
QUOTE_INFO_FIELD_NUMBER |
static int |
RESOURCE_NAME_FIELD_NUMBER |
static int |
TRIGGER_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The labels associated with this `Finding`.
|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Timestamp when finding was detected.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Timestamp when finding was detected.
|
static Finding |
getDefaultInstance() |
Finding |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFindingId()
The unique finding id.
|
com.google.protobuf.ByteString |
getFindingIdBytes()
The unique finding id.
|
InfoType |
getInfoType()
The type of content that might have been found.
|
InfoTypeOrBuilder |
getInfoTypeOrBuilder()
The type of content that might have been found.
|
com.google.protobuf.Timestamp |
getJobCreateTime()
Time the job started that produced this finding.
|
com.google.protobuf.TimestampOrBuilder |
getJobCreateTimeOrBuilder()
Time the job started that produced this finding.
|
String |
getJobName()
The job that stored the finding.
|
com.google.protobuf.ByteString |
getJobNameBytes()
The job that stored the finding.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels associated with this `Finding`.
|
Map<String,String> |
getLabelsMap()
The labels associated with this `Finding`.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The labels associated with this `Finding`.
|
String |
getLabelsOrThrow(String key)
The labels associated with this `Finding`.
|
Likelihood |
getLikelihood()
Confidence of how likely it is that the `info_type` is correct.
|
int |
getLikelihoodValue()
Confidence of how likely it is that the `info_type` is correct.
|
Location |
getLocation()
Where the content was found.
|
LocationOrBuilder |
getLocationOrBuilder()
Where the content was found.
|
String |
getName()
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
|
com.google.protobuf.ByteString |
getNameBytes()
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
|
com.google.protobuf.Parser<Finding> |
getParserForType() |
String |
getQuote()
The content that was found.
|
com.google.protobuf.ByteString |
getQuoteBytes()
The content that was found.
|
QuoteInfo |
getQuoteInfo()
Contains data parsed from quotes.
|
QuoteInfoOrBuilder |
getQuoteInfoOrBuilder()
Contains data parsed from quotes.
|
String |
getResourceName()
The job that stored the finding.
|
com.google.protobuf.ByteString |
getResourceNameBytes()
The job that stored the finding.
|
int |
getSerializedSize() |
String |
getTriggerName()
Job trigger name, if applicable, for this finding.
|
com.google.protobuf.ByteString |
getTriggerNameBytes()
Job trigger name, if applicable, for this finding.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreateTime()
Timestamp when finding was detected.
|
int |
hashCode() |
boolean |
hasInfoType()
The type of content that might have been found.
|
boolean |
hasJobCreateTime()
Time the job started that produced this finding.
|
boolean |
hasLocation()
Where the content was found.
|
boolean |
hasQuoteInfo()
Contains data parsed from quotes.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Finding.Builder |
newBuilder() |
static Finding.Builder |
newBuilder(Finding prototype) |
Finding.Builder |
newBuilderForType() |
protected Finding.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Finding |
parseDelimitedFrom(InputStream input) |
static Finding |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(byte[] data) |
static Finding |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(ByteBuffer data) |
static Finding |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(com.google.protobuf.ByteString data) |
static Finding |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Finding |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Finding |
parseFrom(InputStream input) |
static Finding |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Finding> |
parser() |
Finding.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int QUOTE_FIELD_NUMBER
public static final int INFO_TYPE_FIELD_NUMBER
public static final int LIKELIHOOD_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int QUOTE_INFO_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
public static final int TRIGGER_NAME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int JOB_CREATE_TIME_FIELD_NUMBER
public static final int JOB_NAME_FIELD_NUMBER
public static final int FINDING_ID_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
string name = 14;getName in interface FindingOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Resource name in format
projects/{project}/locations/{location}/findings/{finding} Populated only
when viewing persisted findings.
string name = 14;getNameBytes in interface FindingOrBuilderpublic 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;getQuote in interface FindingOrBuilderpublic com.google.protobuf.ByteString getQuoteBytes()
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;getQuoteBytes in interface FindingOrBuilderpublic boolean hasInfoType()
The type of content that might have been found. Provided if `excluded_types` is false.
.google.privacy.dlp.v2.InfoType info_type = 2;hasInfoType in interface FindingOrBuilderpublic 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;getInfoType in interface FindingOrBuilderpublic 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;getInfoTypeOrBuilder in interface FindingOrBuilderpublic int getLikelihoodValue()
Confidence of how likely it is that the `info_type` is correct.
.google.privacy.dlp.v2.Likelihood likelihood = 3;getLikelihoodValue in interface FindingOrBuilderpublic Likelihood getLikelihood()
Confidence of how likely it is that the `info_type` is correct.
.google.privacy.dlp.v2.Likelihood likelihood = 3;getLikelihood in interface FindingOrBuilderpublic boolean hasLocation()
Where the content was found.
.google.privacy.dlp.v2.Location location = 4;hasLocation in interface FindingOrBuilderpublic Location getLocation()
Where the content was found.
.google.privacy.dlp.v2.Location location = 4;getLocation in interface FindingOrBuilderpublic LocationOrBuilder getLocationOrBuilder()
Where the content was found.
.google.privacy.dlp.v2.Location location = 4;getLocationOrBuilder in interface FindingOrBuilderpublic boolean hasCreateTime()
Timestamp when finding was detected.
.google.protobuf.Timestamp create_time = 6;hasCreateTime in interface FindingOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Timestamp when finding was detected.
.google.protobuf.Timestamp create_time = 6;getCreateTime in interface FindingOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Timestamp when finding was detected.
.google.protobuf.Timestamp create_time = 6;getCreateTimeOrBuilder in interface FindingOrBuilderpublic boolean hasQuoteInfo()
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;hasQuoteInfo in interface FindingOrBuilderpublic QuoteInfo getQuoteInfo()
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;getQuoteInfo in interface FindingOrBuilderpublic QuoteInfoOrBuilder getQuoteInfoOrBuilder()
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;getQuoteInfoOrBuilder in interface FindingOrBuilderpublic String getResourceName()
The job that stored the finding.
string resource_name = 8 [(.google.api.resource_reference) = { ... }getResourceName in interface FindingOrBuilderpublic com.google.protobuf.ByteString getResourceNameBytes()
The job that stored the finding.
string resource_name = 8 [(.google.api.resource_reference) = { ... }getResourceNameBytes in interface FindingOrBuilderpublic String getTriggerName()
Job trigger name, if applicable, for this finding.
string trigger_name = 9 [(.google.api.resource_reference) = { ... }getTriggerName in interface FindingOrBuilderpublic com.google.protobuf.ByteString getTriggerNameBytes()
Job trigger name, if applicable, for this finding.
string trigger_name = 9 [(.google.api.resource_reference) = { ... }getTriggerNameBytes in interface FindingOrBuilderpublic int getLabelsCount()
FindingOrBuilderThe 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]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `"environment" : "production"` * `"pipeline" : "etl"`
map<string, string> labels = 10;getLabelsCount in interface FindingOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `"environment" : "production"` * `"pipeline" : "etl"`
map<string, string> labels = 10;containsLabels in interface FindingOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface FindingOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `"environment" : "production"` * `"pipeline" : "etl"`
map<string, string> labels = 10;getLabelsMap in interface FindingOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `"environment" : "production"` * `"pipeline" : "etl"`
map<string, string> labels = 10;getLabelsOrDefault in interface FindingOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated with a given finding. Examples: * `"environment" : "production"` * `"pipeline" : "etl"`
map<string, string> labels = 10;getLabelsOrThrow in interface FindingOrBuilderpublic boolean hasJobCreateTime()
Time the job started that produced this finding.
.google.protobuf.Timestamp job_create_time = 11;hasJobCreateTime in interface FindingOrBuilderpublic com.google.protobuf.Timestamp getJobCreateTime()
Time the job started that produced this finding.
.google.protobuf.Timestamp job_create_time = 11;getJobCreateTime in interface FindingOrBuilderpublic com.google.protobuf.TimestampOrBuilder getJobCreateTimeOrBuilder()
Time the job started that produced this finding.
.google.protobuf.Timestamp job_create_time = 11;getJobCreateTimeOrBuilder in interface FindingOrBuilderpublic String getJobName()
The job that stored the finding.
string job_name = 13 [(.google.api.resource_reference) = { ... }getJobName in interface FindingOrBuilderpublic com.google.protobuf.ByteString getJobNameBytes()
The job that stored the finding.
string job_name = 13 [(.google.api.resource_reference) = { ... }getJobNameBytes in interface FindingOrBuilderpublic String getFindingId()
The unique finding id.
string finding_id = 15;getFindingId in interface FindingOrBuilderpublic com.google.protobuf.ByteString getFindingIdBytes()
The unique finding id.
string finding_id = 15;getFindingIdBytes in interface FindingOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Finding parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Finding parseFrom(InputStream input) throws IOException
IOExceptionpublic static Finding parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Finding parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Finding parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Finding parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Finding parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Finding.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Finding.Builder newBuilder()
public static Finding.Builder newBuilder(Finding prototype)
public Finding.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Finding.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Finding getDefaultInstance()
public static com.google.protobuf.Parser<Finding> parser()
public com.google.protobuf.Parser<Finding> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Finding getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.