Class StoredInfoTypeConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StoredInfoTypeConfig.Builder>
com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder
All Implemented Interfaces:
StoredInfoTypeConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StoredInfoTypeConfig

public static final class StoredInfoTypeConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<StoredInfoTypeConfig.Builder> implements StoredInfoTypeConfigOrBuilder
 Configuration for stored infoTypes. All fields and subfield are provided
 by the user. For more information, see
 https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
 
Protobuf type google.privacy.dlp.v2.StoredInfoTypeConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StoredInfoTypeConfig.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.GeneratedMessage.Builder<StoredInfoTypeConfig.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.GeneratedMessage.Builder<StoredInfoTypeConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public StoredInfoTypeConfig.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<StoredInfoTypeConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public StoredInfoTypeConfig.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<StoredInfoTypeConfig.Builder>
      Throws:
      IOException
    • getTypeCase

      public StoredInfoTypeConfig.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface StoredInfoTypeConfigOrBuilder
    • clearType

      public StoredInfoTypeConfig.Builder clearType()
    • getDisplayName

      public String getDisplayName()
       Display name of the StoredInfoType (max 256 characters).
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name of the StoredInfoType (max 256 characters).
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public StoredInfoTypeConfig.Builder setDisplayName(String value)
       Display name of the StoredInfoType (max 256 characters).
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public StoredInfoTypeConfig.Builder clearDisplayName()
       Display name of the StoredInfoType (max 256 characters).
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public StoredInfoTypeConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name of the StoredInfoType (max 256 characters).
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description of the StoredInfoType (max 256 characters).
       
      string description = 2;
      Specified by:
      getDescription in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of the StoredInfoType (max 256 characters).
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public StoredInfoTypeConfig.Builder setDescription(String value)
       Description of the StoredInfoType (max 256 characters).
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public StoredInfoTypeConfig.Builder clearDescription()
       Description of the StoredInfoType (max 256 characters).
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public StoredInfoTypeConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of the StoredInfoType (max 256 characters).
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasLargeCustomDictionary

      public boolean hasLargeCustomDictionary()
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
      Specified by:
      hasLargeCustomDictionary in interface StoredInfoTypeConfigOrBuilder
      Returns:
      Whether the largeCustomDictionary field is set.
    • getLargeCustomDictionary

      public LargeCustomDictionaryConfig getLargeCustomDictionary()
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
      Specified by:
      getLargeCustomDictionary in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The largeCustomDictionary.
    • setLargeCustomDictionary

      public StoredInfoTypeConfig.Builder setLargeCustomDictionary(LargeCustomDictionaryConfig value)
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
    • setLargeCustomDictionary

      public StoredInfoTypeConfig.Builder setLargeCustomDictionary(LargeCustomDictionaryConfig.Builder builderForValue)
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
    • mergeLargeCustomDictionary

      public StoredInfoTypeConfig.Builder mergeLargeCustomDictionary(LargeCustomDictionaryConfig value)
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
    • clearLargeCustomDictionary

      public StoredInfoTypeConfig.Builder clearLargeCustomDictionary()
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
    • getLargeCustomDictionaryBuilder

      public LargeCustomDictionaryConfig.Builder getLargeCustomDictionaryBuilder()
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
    • getLargeCustomDictionaryOrBuilder

      public LargeCustomDictionaryConfigOrBuilder getLargeCustomDictionaryOrBuilder()
       StoredInfoType where findings are defined by a dictionary of phrases.
       
      .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;
      Specified by:
      getLargeCustomDictionaryOrBuilder in interface StoredInfoTypeConfigOrBuilder
    • hasDictionary

      public boolean hasDictionary()
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
      Specified by:
      hasDictionary in interface StoredInfoTypeConfigOrBuilder
      Returns:
      Whether the dictionary field is set.
    • getDictionary

      public CustomInfoType.Dictionary getDictionary()
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
      Specified by:
      getDictionary in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The dictionary.
    • setDictionary

       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
    • setDictionary

      public StoredInfoTypeConfig.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
    • mergeDictionary

       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
    • clearDictionary

      public StoredInfoTypeConfig.Builder clearDictionary()
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
    • getDictionaryBuilder

      public CustomInfoType.Dictionary.Builder getDictionaryBuilder()
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
    • getDictionaryOrBuilder

      public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
       Store dictionary-based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;
      Specified by:
      getDictionaryOrBuilder in interface StoredInfoTypeConfigOrBuilder
    • hasRegex

      public boolean hasRegex()
       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
      Specified by:
      hasRegex in interface StoredInfoTypeConfigOrBuilder
      Returns:
      Whether the regex field is set.
    • getRegex

      public CustomInfoType.Regex getRegex()
       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
      Specified by:
      getRegex in interface StoredInfoTypeConfigOrBuilder
      Returns:
      The regex.
    • setRegex

       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
    • setRegex

       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
    • mergeRegex

       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
    • clearRegex

      public StoredInfoTypeConfig.Builder clearRegex()
       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
    • getRegexBuilder

      public CustomInfoType.Regex.Builder getRegexBuilder()
       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
    • getRegexOrBuilder

      public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
       Store regular expression-based StoredInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;
      Specified by:
      getRegexOrBuilder in interface StoredInfoTypeConfigOrBuilder