Package io.grpc.rls
Class RlsProtoData.NameMatcher
java.lang.Object
io.grpc.rls.RlsProtoData.NameMatcher
- Direct Known Subclasses:
AutoValue_RlsProtoData_NameMatcher
- Enclosing class:
RlsProtoData
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 -
Method Summary
Modifier and TypeMethodDescription(package private) static RlsProtoData.NameMatcher
(package private) abstract 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
<String> names()
Returns ordered list of names; the first non-empty value will be used.
-
Constructor Details
-
NameMatcher
NameMatcher()
-
-
Method Details
-
key
The name that will be used in the RLS key_map to refer to this value. -
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)
-