Class RegexMatcher.GoogleRE2

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.github.xds.type.matcher.v3.RegexMatcher.GoogleRE2
All Implemented Interfaces:
RegexMatcher.GoogleRE2OrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
RegexMatcher

public static final class RegexMatcher.GoogleRE2 extends com.google.protobuf.GeneratedMessage implements RegexMatcher.GoogleRE2OrBuilder
Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex
string must adhere to the documented `syntax
<https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to
complete execution in linear time as well as limit the amount of memory
used.

Envoy supports program size checking via runtime. The runtime keys
`re2.max_program_size.error_level` and `re2.max_program_size.warn_level`
can be set to integers as the maximum program size or complexity that a
compiled regex can have before an exception is thrown or a warning is
logged, respectively. `re2.max_program_size.error_level` defaults to 100,
and `re2.max_program_size.warn_level` has no default if unset (will not
check/log a warning).

Envoy emits two stats for tracking the program size of regexes: the
histogram `re2.program_size`, which records the program size, and the
counter `re2.exceeded_warn_level`, which is incremented each time the
program size exceeds the warn level threshold.
Protobuf type xds.type.matcher.v3.RegexMatcher.GoogleRE2
See Also:
  • Field Details

  • Constructor Details

    • GoogleRE2

      private GoogleRE2(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • GoogleRE2

      private GoogleRE2()
  • Method Details

    • getDescriptor

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

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegexMatcher.GoogleRE2 parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegexMatcher.GoogleRE2 parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegexMatcher.GoogleRE2 parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RegexMatcher.GoogleRE2.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RegexMatcher.GoogleRE2.Builder newBuilder()
    • newBuilder

      public static RegexMatcher.GoogleRE2.Builder newBuilder(RegexMatcher.GoogleRE2 prototype)
    • toBuilder

      public RegexMatcher.GoogleRE2.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RegexMatcher.GoogleRE2.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RegexMatcher.GoogleRE2 getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RegexMatcher.GoogleRE2> parser()
    • getParserForType

      public com.google.protobuf.Parser<RegexMatcher.GoogleRE2> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RegexMatcher.GoogleRE2 getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder