Class CustomInfoType.Regex.Builder

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

public static final class CustomInfoType.Regex.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Regex.Builder> implements CustomInfoType.RegexOrBuilder
 Message defining a custom regular expression.
 
Protobuf type google.privacy.dlp.v2.CustomInfoType.Regex
  • 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.Regex.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.Regex.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.Regex.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CustomInfoType.Regex.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.Regex.Builder>
      Throws:
      IOException
    • getPattern

      public String getPattern()
       Pattern defining the regular expression. Its syntax
       (https://github.com/google/re2/wiki/Syntax) can be found under the
       google/re2 repository on GitHub.
       
      string pattern = 1;
      Specified by:
      getPattern in interface CustomInfoType.RegexOrBuilder
      Returns:
      The pattern.
    • getPatternBytes

      public com.google.protobuf.ByteString getPatternBytes()
       Pattern defining the regular expression. Its syntax
       (https://github.com/google/re2/wiki/Syntax) can be found under the
       google/re2 repository on GitHub.
       
      string pattern = 1;
      Specified by:
      getPatternBytes in interface CustomInfoType.RegexOrBuilder
      Returns:
      The bytes for pattern.
    • setPattern

      public CustomInfoType.Regex.Builder setPattern(String value)
       Pattern defining the regular expression. Its syntax
       (https://github.com/google/re2/wiki/Syntax) can be found under the
       google/re2 repository on GitHub.
       
      string pattern = 1;
      Parameters:
      value - The pattern to set.
      Returns:
      This builder for chaining.
    • clearPattern

      public CustomInfoType.Regex.Builder clearPattern()
       Pattern defining the regular expression. Its syntax
       (https://github.com/google/re2/wiki/Syntax) can be found under the
       google/re2 repository on GitHub.
       
      string pattern = 1;
      Returns:
      This builder for chaining.
    • setPatternBytes

      public CustomInfoType.Regex.Builder setPatternBytes(com.google.protobuf.ByteString value)
       Pattern defining the regular expression. Its syntax
       (https://github.com/google/re2/wiki/Syntax) can be found under the
       google/re2 repository on GitHub.
       
      string pattern = 1;
      Parameters:
      value - The bytes for pattern to set.
      Returns:
      This builder for chaining.
    • getGroupIndexesList

      public List<Integer> getGroupIndexesList()
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Specified by:
      getGroupIndexesList in interface CustomInfoType.RegexOrBuilder
      Returns:
      A list containing the groupIndexes.
    • getGroupIndexesCount

      public int getGroupIndexesCount()
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Specified by:
      getGroupIndexesCount in interface CustomInfoType.RegexOrBuilder
      Returns:
      The count of groupIndexes.
    • getGroupIndexes

      public int getGroupIndexes(int index)
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Specified by:
      getGroupIndexes in interface CustomInfoType.RegexOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The groupIndexes at the given index.
    • setGroupIndexes

      public CustomInfoType.Regex.Builder setGroupIndexes(int index, int value)
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Parameters:
      index - The index to set the value at.
      value - The groupIndexes to set.
      Returns:
      This builder for chaining.
    • addGroupIndexes

      public CustomInfoType.Regex.Builder addGroupIndexes(int value)
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Parameters:
      value - The groupIndexes to add.
      Returns:
      This builder for chaining.
    • addAllGroupIndexes

      public CustomInfoType.Regex.Builder addAllGroupIndexes(Iterable<? extends Integer> values)
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Parameters:
      values - The groupIndexes to add.
      Returns:
      This builder for chaining.
    • clearGroupIndexes

      public CustomInfoType.Regex.Builder clearGroupIndexes()
       The index of the submatch to extract as findings. When not
       specified, the entire match is returned. No more than 3 may be included.
       
      repeated int32 group_indexes = 2;
      Returns:
      This builder for chaining.