Package com.google.privacy.dlp.v2
Class DataProfileFinding.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
com.google.privacy.dlp.v2.DataProfileFinding.Builder
- All Implemented Interfaces:
DataProfileFindingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataProfileFinding
public static final class DataProfileFinding.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
implements DataProfileFindingOrBuilder
Details about a piece of potentially sensitive information that was detected when the data resource was profiled.Protobuf type
google.privacy.dlp.v2.DataProfileFinding-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Resource name of the data profile associated with the finding.The type of the resource that was profiled.A unique identifier for the finding.The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.Where the content was found.The content that was found.Contains data parsed from quotes.How broadly a resource has been shared.Timestamp when the finding was detected.Resource name of the data profile associated with the finding.com.google.protobuf.ByteStringResource name of the data profile associated with the finding.The type of the resource that was profiled.The type of the resource that was profiled.The type of the resource that was profiled.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA unique identifier for the finding.com.google.protobuf.ByteStringA unique identifier for the finding.The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.com.google.protobuf.ByteStringThe [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.Where the content was found.Where the content was found.Where the content was found.getQuote()The content that was found.com.google.protobuf.ByteStringThe content that was found.Contains data parsed from quotes.Contains data parsed from quotes.Contains data parsed from quotes.How broadly a resource has been shared.intHow broadly a resource has been shared.com.google.protobuf.TimestampTimestamp when the finding was detected.com.google.protobuf.Timestamp.BuilderTimestamp when the finding was detected.com.google.protobuf.TimestampOrBuilderTimestamp when the finding was detected.booleanThe type of the resource that was profiled.booleanThe [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.booleanWhere the content was found.booleanContains data parsed from quotes.booleanTimestamp when the finding was detected.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe type of the resource that was profiled.mergeFrom(DataProfileFinding other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInfotype(InfoType value) The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.Where the content was found.mergeQuoteInfo(QuoteInfo value) Contains data parsed from quotes.mergeTimestamp(com.google.protobuf.Timestamp value) Timestamp when the finding was detected.setDataProfileResourceName(String value) Resource name of the data profile associated with the finding.setDataProfileResourceNameBytes(com.google.protobuf.ByteString value) Resource name of the data profile associated with the finding.setDataSourceType(DataSourceType value) The type of the resource that was profiled.setDataSourceType(DataSourceType.Builder builderForValue) The type of the resource that was profiled.setFindingId(String value) A unique identifier for the finding.setFindingIdBytes(com.google.protobuf.ByteString value) A unique identifier for the finding.setFullResourceName(String value) The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.setFullResourceNameBytes(com.google.protobuf.ByteString value) The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.setInfotype(InfoType value) The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.setInfotype(InfoType.Builder builderForValue) The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.Where the content was found.setLocation(DataProfileFindingLocation.Builder builderForValue) Where the content was found.The content that was found.setQuoteBytes(com.google.protobuf.ByteString value) The content that was found.setQuoteInfo(QuoteInfo value) Contains data parsed from quotes.setQuoteInfo(QuoteInfo.Builder builderForValue) Contains data parsed from quotes.How broadly a resource has been shared.setResourceVisibilityValue(int value) How broadly a resource has been shared.setTimestamp(com.google.protobuf.Timestamp value) Timestamp when the finding was detected.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when the finding was detected.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileFinding.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileFinding.Builder>
-
mergeFrom
public DataProfileFinding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileFinding.Builder>- Throws:
IOException
-
getQuote
The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted.
string quote = 1;- Specified by:
getQuotein interfaceDataProfileFindingOrBuilder- Returns:
- The quote.
-
getQuoteBytes
public 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. If the finding exceeds 4096 bytes in length, the quote may be omitted.
string quote = 1;- Specified by:
getQuoteBytesin interfaceDataProfileFindingOrBuilder- Returns:
- The bytes for quote.
-
setQuote
The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted.
string quote = 1;- Parameters:
value- The quote to set.- Returns:
- This builder for chaining.
-
clearQuote
The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted.
string quote = 1;- Returns:
- This builder for chaining.
-
setQuoteBytes
The content that was found. Even if the content is not textual, it may be converted to a textual representation here. If the finding exceeds 4096 bytes in length, the quote may be omitted.
string quote = 1;- Parameters:
value- The bytes for quote to set.- Returns:
- This builder for chaining.
-
hasInfotype
public boolean hasInfotype()The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2;- Specified by:
hasInfotypein interfaceDataProfileFindingOrBuilder- Returns:
- Whether the infotype field is set.
-
getInfotype
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2;- Specified by:
getInfotypein interfaceDataProfileFindingOrBuilder- Returns:
- The infotype.
-
setInfotype
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2; -
setInfotype
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2; -
mergeInfotype
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2; -
clearInfotype
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2; -
getInfotypeBuilder
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2; -
getInfotypeOrBuilder
The [type of content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) that might have been found.
.google.privacy.dlp.v2.InfoType infotype = 2;- Specified by:
getInfotypeOrBuilderin interfaceDataProfileFindingOrBuilder
-
hasQuoteInfo
public boolean hasQuoteInfo()Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3;- Specified by:
hasQuoteInfoin interfaceDataProfileFindingOrBuilder- Returns:
- Whether the quoteInfo field is set.
-
getQuoteInfo
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3;- Specified by:
getQuoteInfoin interfaceDataProfileFindingOrBuilder- Returns:
- The quoteInfo.
-
setQuoteInfo
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3; -
setQuoteInfo
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3; -
mergeQuoteInfo
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3; -
clearQuoteInfo
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3; -
getQuoteInfoBuilder
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3; -
getQuoteInfoOrBuilder
Contains data parsed from quotes. Currently supported infoTypes: DATE, DATE_OF_BIRTH, and TIME.
.google.privacy.dlp.v2.QuoteInfo quote_info = 3;- Specified by:
getQuoteInfoOrBuilderin interfaceDataProfileFindingOrBuilder
-
getDataProfileResourceName
Resource name of the data profile associated with the finding.
string data_profile_resource_name = 4;- Specified by:
getDataProfileResourceNamein interfaceDataProfileFindingOrBuilder- Returns:
- The dataProfileResourceName.
-
getDataProfileResourceNameBytes
public com.google.protobuf.ByteString getDataProfileResourceNameBytes()Resource name of the data profile associated with the finding.
string data_profile_resource_name = 4;- Specified by:
getDataProfileResourceNameBytesin interfaceDataProfileFindingOrBuilder- Returns:
- The bytes for dataProfileResourceName.
-
setDataProfileResourceName
Resource name of the data profile associated with the finding.
string data_profile_resource_name = 4;- Parameters:
value- The dataProfileResourceName to set.- Returns:
- This builder for chaining.
-
clearDataProfileResourceName
Resource name of the data profile associated with the finding.
string data_profile_resource_name = 4;- Returns:
- This builder for chaining.
-
setDataProfileResourceNameBytes
public DataProfileFinding.Builder setDataProfileResourceNameBytes(com.google.protobuf.ByteString value) Resource name of the data profile associated with the finding.
string data_profile_resource_name = 4;- Parameters:
value- The bytes for dataProfileResourceName to set.- Returns:
- This builder for chaining.
-
getFindingId
A unique identifier for the finding.
string finding_id = 5;- Specified by:
getFindingIdin interfaceDataProfileFindingOrBuilder- Returns:
- The findingId.
-
getFindingIdBytes
public com.google.protobuf.ByteString getFindingIdBytes()A unique identifier for the finding.
string finding_id = 5;- Specified by:
getFindingIdBytesin interfaceDataProfileFindingOrBuilder- Returns:
- The bytes for findingId.
-
setFindingId
A unique identifier for the finding.
string finding_id = 5;- Parameters:
value- The findingId to set.- Returns:
- This builder for chaining.
-
clearFindingId
A unique identifier for the finding.
string finding_id = 5;- Returns:
- This builder for chaining.
-
setFindingIdBytes
A unique identifier for the finding.
string finding_id = 5;- Parameters:
value- The bytes for findingId to set.- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
hasTimestampin interfaceDataProfileFindingOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
getTimestampin interfaceDataProfileFindingOrBuilder- Returns:
- The timestamp.
-
setTimestamp
Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6; -
setTimestamp
public DataProfileFinding.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6; -
mergeTimestamp
Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6; -
clearTimestamp
Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6; -
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6; -
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()Timestamp when the finding was detected.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
getTimestampOrBuilderin interfaceDataProfileFindingOrBuilder
-
hasLocation
public boolean hasLocation()Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7;- Specified by:
hasLocationin interfaceDataProfileFindingOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7;- Specified by:
getLocationin interfaceDataProfileFindingOrBuilder- Returns:
- The location.
-
setLocation
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7; -
setLocation
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7; -
mergeLocation
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7; -
clearLocation
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7; -
getLocationBuilder
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7; -
getLocationOrBuilder
Where the content was found.
.google.privacy.dlp.v2.DataProfileFindingLocation location = 7;- Specified by:
getLocationOrBuilderin interfaceDataProfileFindingOrBuilder
-
getResourceVisibilityValue
public int getResourceVisibilityValue()How broadly a resource has been shared.
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;- Specified by:
getResourceVisibilityValuein interfaceDataProfileFindingOrBuilder- Returns:
- The enum numeric value on the wire for resourceVisibility.
-
setResourceVisibilityValue
How broadly a resource has been shared.
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;- Parameters:
value- The enum numeric value on the wire for resourceVisibility to set.- Returns:
- This builder for chaining.
-
getResourceVisibility
How broadly a resource has been shared.
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;- Specified by:
getResourceVisibilityin interfaceDataProfileFindingOrBuilder- Returns:
- The resourceVisibility.
-
setResourceVisibility
How broadly a resource has been shared.
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;- Parameters:
value- The resourceVisibility to set.- Returns:
- This builder for chaining.
-
clearResourceVisibility
How broadly a resource has been shared.
.google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8;- Returns:
- This builder for chaining.
-
getFullResourceName
The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.
string full_resource_name = 9;- Specified by:
getFullResourceNamein interfaceDataProfileFindingOrBuilder- Returns:
- The fullResourceName.
-
getFullResourceNameBytes
public com.google.protobuf.ByteString getFullResourceNameBytes()The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.
string full_resource_name = 9;- Specified by:
getFullResourceNameBytesin interfaceDataProfileFindingOrBuilder- Returns:
- The bytes for fullResourceName.
-
setFullResourceName
The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.
string full_resource_name = 9;- Parameters:
value- The fullResourceName to set.- Returns:
- This builder for chaining.
-
clearFullResourceName
The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.
string full_resource_name = 9;- Returns:
- This builder for chaining.
-
setFullResourceNameBytes
The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the resource profiled for this finding.
string full_resource_name = 9;- Parameters:
value- The bytes for fullResourceName to set.- Returns:
- This builder for chaining.
-
hasDataSourceType
public boolean hasDataSourceType()The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10;- Specified by:
hasDataSourceTypein interfaceDataProfileFindingOrBuilder- Returns:
- Whether the dataSourceType field is set.
-
getDataSourceType
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10;- Specified by:
getDataSourceTypein interfaceDataProfileFindingOrBuilder- Returns:
- The dataSourceType.
-
setDataSourceType
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10; -
setDataSourceType
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10; -
mergeDataSourceType
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10; -
clearDataSourceType
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10; -
getDataSourceTypeBuilder
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10; -
getDataSourceTypeOrBuilder
The type of the resource that was profiled.
.google.privacy.dlp.v2.DataSourceType data_source_type = 10;- Specified by:
getDataSourceTypeOrBuilderin interfaceDataProfileFindingOrBuilder
-