public static final class ExcludeByHotword.Builder extends GeneratedMessageV3.Builder<ExcludeByHotword.Builder> implements ExcludeByHotwordOrBuilder
The rule to exclude findings based on a hotword. For record inspection of
tables, column names are considered hotwords. An example of this is to
exclude a finding if a BigQuery column matches a specific pattern.
Protobuf type google.privacy.dlp.v2.ExcludeByHotword
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExcludeByHotword.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ExcludeByHotword build()
Returns
buildPartial()
public ExcludeByHotword buildPartial()
Returns
clear()
public ExcludeByHotword.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ExcludeByHotword.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearHotwordRegex()
public ExcludeByHotword.Builder clearHotwordRegex()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ExcludeByHotword.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProximity()
public ExcludeByHotword.Builder clearProximity()
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns
clone()
public ExcludeByHotword.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ExcludeByHotword getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getHotwordRegex()
public CustomInfoType.Regex getHotwordRegex()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
getHotwordRegexBuilder()
public CustomInfoType.Regex.Builder getHotwordRegexBuilder()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
getHotwordRegexOrBuilder()
public CustomInfoType.RegexOrBuilder getHotwordRegexOrBuilder()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
getProximity()
public CustomInfoType.DetectionRule.Proximity getProximity()
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns
getProximityBuilder()
public CustomInfoType.DetectionRule.Proximity.Builder getProximityBuilder()
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns
getProximityOrBuilder()
public CustomInfoType.DetectionRule.ProximityOrBuilder getProximityOrBuilder()
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns
hasHotwordRegex()
public boolean hasHotwordRegex()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
Type | Description |
boolean | Whether the hotwordRegex field is set.
|
hasProximity()
public boolean hasProximity()
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns
Type | Description |
boolean | Whether the proximity field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ExcludeByHotword other)
public ExcludeByHotword.Builder mergeFrom(ExcludeByHotword other)
Parameter
Returns
public ExcludeByHotword.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ExcludeByHotword.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeHotwordRegex(CustomInfoType.Regex value)
public ExcludeByHotword.Builder mergeHotwordRegex(CustomInfoType.Regex value)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Parameter
Returns
mergeProximity(CustomInfoType.DetectionRule.Proximity value)
public ExcludeByHotword.Builder mergeProximity(CustomInfoType.DetectionRule.Proximity value)
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExcludeByHotword.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ExcludeByHotword.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setHotwordRegex(CustomInfoType.Regex value)
public ExcludeByHotword.Builder setHotwordRegex(CustomInfoType.Regex value)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Parameter
Returns
setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)
public ExcludeByHotword.Builder setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Parameter
Returns
setProximity(CustomInfoType.DetectionRule.Proximity value)
public ExcludeByHotword.Builder setProximity(CustomInfoType.DetectionRule.Proximity value)
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Parameter
Returns
setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
public ExcludeByHotword.Builder setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
Range of characters within which the entire hotword must reside.
The total length of the window cannot exceed 1000 characters.
The windowBefore property in proximity should be set to 1 if the hotword
needs to be included in a column header.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExcludeByHotword.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ExcludeByHotword.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides