Class CustomInfoType.Dictionary.WordList.Builder

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

public static final class CustomInfoType.Dictionary.WordList.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.WordList.Builder> implements CustomInfoType.Dictionary.WordListOrBuilder
 Message defining a list of words or phrases to search for in the data.
 
Protobuf type google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList
  • 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<CustomInfoType.Dictionary.WordList.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<CustomInfoType.Dictionary.WordList.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<CustomInfoType.Dictionary.WordList.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CustomInfoType.Dictionary.WordList.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<CustomInfoType.Dictionary.WordList.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<CustomInfoType.Dictionary.WordList.Builder>
    • mergeFrom

      public CustomInfoType.Dictionary.WordList.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<CustomInfoType.Dictionary.WordList.Builder>
      Throws:
      IOException
    • getWordsList

      public com.google.protobuf.ProtocolStringList getWordsList()
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Specified by:
      getWordsList in interface CustomInfoType.Dictionary.WordListOrBuilder
      Returns:
      A list containing the words.
    • getWordsCount

      public int getWordsCount()
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Specified by:
      getWordsCount in interface CustomInfoType.Dictionary.WordListOrBuilder
      Returns:
      The count of words.
    • getWords

      public String getWords(int index)
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Specified by:
      getWords in interface CustomInfoType.Dictionary.WordListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The words at the given index.
    • getWordsBytes

      public com.google.protobuf.ByteString getWordsBytes(int index)
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Specified by:
      getWordsBytes in interface CustomInfoType.Dictionary.WordListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the words at the given index.
    • setWords

      public CustomInfoType.Dictionary.WordList.Builder setWords(int index, String value)
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Parameters:
      index - The index to set the value at.
      value - The words to set.
      Returns:
      This builder for chaining.
    • addWords

       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Parameters:
      value - The words to add.
      Returns:
      This builder for chaining.
    • addAllWords

       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Parameters:
      values - The words to add.
      Returns:
      This builder for chaining.
    • clearWords

       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Returns:
      This builder for chaining.
    • addWordsBytes

      public CustomInfoType.Dictionary.WordList.Builder addWordsBytes(com.google.protobuf.ByteString value)
       Words or phrases defining the dictionary. The dictionary must contain
       at least one phrase and every phrase must contain at least 2 characters
       that are letters or digits. [required]
       
      repeated string words = 1;
      Parameters:
      value - The bytes of the words to add.
      Returns:
      This builder for chaining.