Interface StringMatcherOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    StringMatcher, StringMatcher.Builder

    public interface StringMatcherOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContains()
      The input string must have the substring specified here.
      com.google.protobuf.ByteString getContainsBytes()
      The input string must have the substring specified here.
      TypedExtensionConfig getCustom()
      Use an extension as the matcher type.
      TypedExtensionConfigOrBuilder getCustomOrBuilder()
      Use an extension as the matcher type.
      java.lang.String getExact()
      The input string must match exactly the string specified here.
      com.google.protobuf.ByteString getExactBytes()
      The input string must match exactly the string specified here.
      boolean getIgnoreCase()
      If true, indicates the exact/prefix/suffix/contains matching should be case insensitive.
      StringMatcher.MatchPatternCase getMatchPatternCase()  
      java.lang.String getPrefix()
      The input string must have the prefix specified here.
      com.google.protobuf.ByteString getPrefixBytes()
      The input string must have the prefix specified here.
      RegexMatcher getSafeRegex()
      The input string must match the regular expression specified here.
      RegexMatcherOrBuilder getSafeRegexOrBuilder()
      The input string must match the regular expression specified here.
      java.lang.String getSuffix()
      The input string must have the suffix specified here.
      com.google.protobuf.ByteString getSuffixBytes()
      The input string must have the suffix specified here.
      boolean hasContains()
      The input string must have the substring specified here.
      boolean hasCustom()
      Use an extension as the matcher type.
      boolean hasExact()
      The input string must match exactly the string specified here.
      boolean hasPrefix()
      The input string must have the prefix specified here.
      boolean hasSafeRegex()
      The input string must match the regular expression specified here.
      boolean hasSuffix()
      The input string must have the suffix specified here.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasExact

        boolean hasExact()
         The input string must match exactly the string specified here.
        
         Examples:
        
         * ``abc`` only matches the value ``abc``.
         
        string exact = 1;
        Returns:
        Whether the exact field is set.
      • getExact

        java.lang.String getExact()
         The input string must match exactly the string specified here.
        
         Examples:
        
         * ``abc`` only matches the value ``abc``.
         
        string exact = 1;
        Returns:
        The exact.
      • getExactBytes

        com.google.protobuf.ByteString getExactBytes()
         The input string must match exactly the string specified here.
        
         Examples:
        
         * ``abc`` only matches the value ``abc``.
         
        string exact = 1;
        Returns:
        The bytes for exact.
      • hasPrefix

        boolean hasPrefix()
         The input string must have the prefix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``abc.xyz``
         
        string prefix = 2 [(.validate.rules) = { ... }
        Returns:
        Whether the prefix field is set.
      • getPrefix

        java.lang.String getPrefix()
         The input string must have the prefix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``abc.xyz``
         
        string prefix = 2 [(.validate.rules) = { ... }
        Returns:
        The prefix.
      • getPrefixBytes

        com.google.protobuf.ByteString getPrefixBytes()
         The input string must have the prefix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``abc.xyz``
         
        string prefix = 2 [(.validate.rules) = { ... }
        Returns:
        The bytes for prefix.
      • hasSuffix

        boolean hasSuffix()
         The input string must have the suffix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc``
         
        string suffix = 3 [(.validate.rules) = { ... }
        Returns:
        Whether the suffix field is set.
      • getSuffix

        java.lang.String getSuffix()
         The input string must have the suffix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc``
         
        string suffix = 3 [(.validate.rules) = { ... }
        Returns:
        The suffix.
      • getSuffixBytes

        com.google.protobuf.ByteString getSuffixBytes()
         The input string must have the suffix specified here.
         Note: empty prefix is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc``
         
        string suffix = 3 [(.validate.rules) = { ... }
        Returns:
        The bytes for suffix.
      • hasSafeRegex

        boolean hasSafeRegex()
         The input string must match the regular expression specified here.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }
        Returns:
        Whether the safeRegex field is set.
      • getSafeRegex

        RegexMatcher getSafeRegex()
         The input string must match the regular expression specified here.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }
        Returns:
        The safeRegex.
      • getSafeRegexOrBuilder

        RegexMatcherOrBuilder getSafeRegexOrBuilder()
         The input string must match the regular expression specified here.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }
      • hasContains

        boolean hasContains()
         The input string must have the substring specified here.
         Note: empty contains match is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc.def``
         
        string contains = 7 [(.validate.rules) = { ... }
        Returns:
        Whether the contains field is set.
      • getContains

        java.lang.String getContains()
         The input string must have the substring specified here.
         Note: empty contains match is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc.def``
         
        string contains = 7 [(.validate.rules) = { ... }
        Returns:
        The contains.
      • getContainsBytes

        com.google.protobuf.ByteString getContainsBytes()
         The input string must have the substring specified here.
         Note: empty contains match is not allowed, please use regex instead.
        
         Examples:
        
         * ``abc`` matches the value ``xyz.abc.def``
         
        string contains = 7 [(.validate.rules) = { ... }
        Returns:
        The bytes for contains.
      • hasCustom

        boolean hasCustom()
         Use an extension as the matcher type.
         [#extension-category: envoy.string_matcher]
         
        .xds.core.v3.TypedExtensionConfig custom = 8;
        Returns:
        Whether the custom field is set.
      • getCustom

        TypedExtensionConfig getCustom()
         Use an extension as the matcher type.
         [#extension-category: envoy.string_matcher]
         
        .xds.core.v3.TypedExtensionConfig custom = 8;
        Returns:
        The custom.
      • getCustomOrBuilder

        TypedExtensionConfigOrBuilder getCustomOrBuilder()
         Use an extension as the matcher type.
         [#extension-category: envoy.string_matcher]
         
        .xds.core.v3.TypedExtensionConfig custom = 8;
      • getIgnoreCase

        boolean getIgnoreCase()
         If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. This
         has no effect for the safe_regex match.
         For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if set to true.
         
        bool ignore_case = 6;
        Returns:
        The ignoreCase.