Package io.grpc.rls

Class 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.
    • Constructor Detail

      • GrpcKeyBuilder

        GrpcKeyBuilder()
    • 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.
      • constantKeys

        abstract com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.String> constantKeys()