Package io.grpc.rls
Class RlsProtoData.GrpcKeyBuilder
- java.lang.Object
-
- io.grpc.rls.RlsProtoData.GrpcKeyBuilder
-
- Direct Known Subclasses:
AutoValue_RlsProtoData_GrpcKeyBuilder
- Enclosing class:
- RlsProtoData
@Immutable abstract static class RlsProtoData.GrpcKeyBuilder extends java.lang.Object
GrpcKeyBuilder is a configuration to construct headers consumed by route lookup service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RlsProtoData.GrpcKeyBuilder.Name
Name represents a method for a given service.
-
Constructor Summary
Constructors Constructor Description GrpcKeyBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>
constantKeys()
(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<java.lang.String,java.lang.String> constantKeys)
(package private) abstract RlsProtoData.ExtraKeys
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.
-
-
-
Method Detail
-
names
abstract com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder.Name> 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
abstract com.google.common.collect.ImmutableList<RlsProtoData.NameMatcher> 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
abstract RlsProtoData.ExtraKeys extraKeys()
-
constantKeys
abstract com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> 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<java.lang.String,java.lang.String> constantKeys)
-
-