Package io.grpc.rls

Class RlsProtoData.NameMatcher

java.lang.Object
io.grpc.rls.RlsProtoData.NameMatcher
Direct Known Subclasses:
AutoValue_RlsProtoData_NameMatcher
Enclosing class:
RlsProtoData

@Immutable abstract static class RlsProtoData.NameMatcher extends 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 Details

    • NameMatcher

      NameMatcher()
  • Method Details

    • key

      abstract 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<String> names()
      Returns ordered list of names; the first non-empty value will be used.
    • create

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