Package io.grpc.rls

Class RlsProtoData.NameMatcher

  • Direct Known Subclasses:
    AutoValue_RlsProtoData_NameMatcher
    Enclosing class:
    RlsProtoData

    @Immutable
    abstract static class RlsProtoData.NameMatcher
    extends java.lang.Object
    NameMatcher extract a key based on a given name (e.g. header name or query parameter name). The name must match one of the names listed in the "name" field. If the "required_match" field is true, one of the specified names must be present for the keybuilder to match.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameMatcher()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static RlsProtoData.NameMatcher create​(java.lang.String key, com.google.common.collect.ImmutableList<java.lang.String> names)  
      (package private) abstract java.lang.String key()
      The name that will be used in the RLS key_map to refer to this value.
      (package private) abstract com.google.common.collect.ImmutableList<java.lang.String> names()
      Returns ordered list of names; the first non-empty value will be used.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameMatcher

        NameMatcher()
    • Method Detail

      • key

        abstract java.lang.String key()
        The name that will be used in the RLS key_map to refer to this value.
      • names

        abstract com.google.common.collect.ImmutableList<java.lang.String> names()
        Returns ordered list of names; the first non-empty value will be used.
      • create

        static RlsProtoData.NameMatcher create​(java.lang.String key,
                                               com.google.common.collect.ImmutableList<java.lang.String> names)