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 Object
GrpcKeyBuilder is a configuration to construct headers consumed by route lookup service.
  • Constructor Details

    • GrpcKeyBuilder

      GrpcKeyBuilder()
  • Method Details

    • 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<String,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<String,String> constantKeys)