Package io.grpc.rls
Class RlsProtoData.GrpcKeyBuilder
java.lang.Object
io.grpc.rls.RlsProtoData.GrpcKeyBuilder
- Direct Known Subclasses:
AutoValue_RlsProtoData_GrpcKeyBuilder
- Enclosing class:
RlsProtoData
GrpcKeyBuilder is a configuration to construct headers consumed by route lookup service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Name represents a method for a given service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static RlsProtoData.GrpcKeyBuilder
create
(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder.Name> names, com.google.common.collect.ImmutableList<RlsProtoData.NameMatcher> headers, RlsProtoData.ExtraKeys extraKeys, com.google.common.collect.ImmutableMap<String, String> constantKeys) (package private) abstract RlsProtoData.ExtraKeys
(package private) abstract com.google.common.collect.ImmutableList
<RlsProtoData.NameMatcher> headers()
Returns a list of NameMatchers for header.(package private) abstract com.google.common.collect.ImmutableList
<RlsProtoData.GrpcKeyBuilder.Name> names()
Returns names.
-
Constructor Details
-
GrpcKeyBuilder
GrpcKeyBuilder()
-
-
Method Details
-
names
Returns names. To match, one of the given Name fields must match; the service and method fields are specified as fixed strings. The service name is required and includes the proto package name. The method name may be omitted, in which case any method on the given service is matched. -
headers
Returns a list of NameMatchers for header. Extract keys from all listed headers. For gRPC, it is an error to specify "required_match" on the NameMatcher protos, and we ignore it if set. -
extraKeys
-
constantKeys
-
create
static RlsProtoData.GrpcKeyBuilder create(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder.Name> names, com.google.common.collect.ImmutableList<RlsProtoData.NameMatcher> headers, RlsProtoData.ExtraKeys extraKeys, com.google.common.collect.ImmutableMap<String, String> constantKeys)
-