Package com.google.privacy.dlp.v2
Class CustomInfoType.DetectionRule.HotwordRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.DetectionRule.HotwordRule.Builder>
com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule.Builder
- All Implemented Interfaces:
CustomInfoType.DetectionRule.HotwordRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomInfoType.DetectionRule.HotwordRule
public static final class CustomInfoType.DetectionRule.HotwordRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.DetectionRule.HotwordRule.Builder>
implements CustomInfoType.DetectionRule.HotwordRuleOrBuilder
The rule that adjusts the likelihood of findings within a certain proximity of hotwords.Protobuf type
google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Regular expression pattern defining what qualifies as a hotword.Likelihood adjustment to apply to all matching findings.Range of characters within which the entire hotword must reside.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRegular expression pattern defining what qualifies as a hotword.Regular expression pattern defining what qualifies as a hotword.Regular expression pattern defining what qualifies as a hotword.Likelihood adjustment to apply to all matching findings.Likelihood adjustment to apply to all matching findings.Likelihood adjustment to apply to all matching findings.Range of characters within which the entire hotword must reside.Range of characters within which the entire hotword must reside.Range of characters within which the entire hotword must reside.booleanRegular expression pattern defining what qualifies as a hotword.booleanLikelihood adjustment to apply to all matching findings.booleanRange of characters within which the entire hotword must reside.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Regular expression pattern defining what qualifies as a hotword.Likelihood adjustment to apply to all matching findings.Range of characters within which the entire hotword must reside.Regular expression pattern defining what qualifies as a hotword.setHotwordRegex(CustomInfoType.Regex.Builder builderForValue) Regular expression pattern defining what qualifies as a hotword.Likelihood adjustment to apply to all matching findings.Likelihood adjustment to apply to all matching findings.Range of characters within which the entire hotword must reside.setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue) Range of characters within which the entire hotword must reside.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<CustomInfoType.DetectionRule.HotwordRule.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<CustomInfoType.DetectionRule.HotwordRule.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<CustomInfoType.DetectionRule.HotwordRule.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
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.DetectionRule.HotwordRule.Builder>
-
mergeFrom
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(CustomInfoType.DetectionRule.HotwordRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.DetectionRule.HotwordRule.Builder>
-
mergeFrom
public CustomInfoType.DetectionRule.HotwordRule.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<CustomInfoType.DetectionRule.HotwordRule.Builder>- Throws:
IOException
-
hasHotwordRegex
public boolean hasHotwordRegex()Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;- Specified by:
hasHotwordRegexin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- Whether the hotwordRegex field is set.
-
getHotwordRegex
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;- Specified by:
getHotwordRegexin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- The hotwordRegex.
-
setHotwordRegex
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
setHotwordRegex
public CustomInfoType.DetectionRule.HotwordRule.Builder setHotwordRegex(CustomInfoType.Regex.Builder builderForValue) Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
mergeHotwordRegex
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeHotwordRegex(CustomInfoType.Regex value) Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
clearHotwordRegex
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
getHotwordRegexBuilder
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
getHotwordRegexOrBuilder
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;- Specified by:
getHotwordRegexOrBuilderin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder
-
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 finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;- Specified by:
hasProximityin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- Whether the proximity field is set.
-
getProximity
Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;- Specified by:
getProximityin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- The proximity.
-
setProximity
public CustomInfoType.DetectionRule.HotwordRule.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 finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; -
setProximity
public CustomInfoType.DetectionRule.HotwordRule.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 finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; -
mergeProximity
public CustomInfoType.DetectionRule.HotwordRule.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 finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; -
clearProximity
Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; -
getProximityBuilder
Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; -
getProximityOrBuilder
Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The finding itself will be included in the window, so that hotwords can be used to match substrings of the finding itself. Suppose you want Cloud DLP to promote the likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the area code of a company's office. In this case, use the hotword regex "\(xxx\)", where "xxx" is the area code in question. For tabular data, if you want to modify the likelihood of an entire column of findngs, see [Hotword example: Set the match likelihood of a table column] (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values)..google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;- Specified by:
getProximityOrBuilderin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder
-
hasLikelihoodAdjustment
public boolean hasLikelihoodAdjustment()Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;- Specified by:
hasLikelihoodAdjustmentin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- Whether the likelihoodAdjustment field is set.
-
getLikelihoodAdjustment
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;- Specified by:
getLikelihoodAdjustmentin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder- Returns:
- The likelihoodAdjustment.
-
setLikelihoodAdjustment
public CustomInfoType.DetectionRule.HotwordRule.Builder setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value) Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; -
setLikelihoodAdjustment
public CustomInfoType.DetectionRule.HotwordRule.Builder setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder builderForValue) Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; -
mergeLikelihoodAdjustment
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value) Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; -
clearLikelihoodAdjustment
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; -
getLikelihoodAdjustmentBuilder
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; -
getLikelihoodAdjustmentOrBuilder
public CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder getLikelihoodAdjustmentOrBuilder()Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;- Specified by:
getLikelihoodAdjustmentOrBuilderin interfaceCustomInfoType.DetectionRule.HotwordRuleOrBuilder
-