Class ExcludeByHotword.Builder

  • All Implemented Interfaces:
    ExcludeByHotwordOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ExcludeByHotword

    public static final class ExcludeByHotword.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • clear

        public ExcludeByHotword.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • getDefaultInstanceForType

        public ExcludeByHotword getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExcludeByHotword build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExcludeByHotword buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExcludeByHotword.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • setField

        public ExcludeByHotword.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • clearField

        public ExcludeByHotword.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • clearOneof

        public ExcludeByHotword.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • setRepeatedField

        public ExcludeByHotword.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • addRepeatedField

        public ExcludeByHotword.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • mergeFrom

        public ExcludeByHotword.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExcludeByHotword.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • mergeFrom

        public ExcludeByHotword.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExcludeByHotword.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:
        hasHotwordRegex in interface ExcludeByHotwordOrBuilder
        Returns:
        Whether the hotwordRegex field is set.
      • setHotwordRegex

        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;
      • mergeHotwordRegex

        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;
      • clearHotwordRegex

        public ExcludeByHotword.Builder clearHotwordRegex()
         Regular expression pattern defining what qualifies as a hotword.
         
        .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
      • getHotwordRegexBuilder

        public CustomInfoType.Regex.Builder getHotwordRegexBuilder()
         Regular expression pattern defining what qualifies as a hotword.
         
        .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
      • 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;
        Specified by:
        hasProximity in interface ExcludeByHotwordOrBuilder
        Returns:
        Whether the proximity field is set.
      • 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;
        Specified by:
        getProximity in interface ExcludeByHotwordOrBuilder
        Returns:
        The proximity.
      • setProximity

        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;
      • setProximity

        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;
      • mergeProximity

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getProximityOrBuilder in interface ExcludeByHotwordOrBuilder
      • setUnknownFields

        public final ExcludeByHotword.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>
      • mergeUnknownFields

        public final ExcludeByHotword.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExcludeByHotword.Builder>