Package io.grpc.rls

Class AutoValue_RlsProtoData_RouteLookupConfig


  • @Generated("com.google.auto.value.processor.AutoValueProcessor")
    final class AutoValue_RlsProtoData_RouteLookupConfig
    extends RlsProtoData.RouteLookupConfig
    • Field Detail

      • lookupService

        private final java.lang.String lookupService
      • lookupServiceTimeoutInNanos

        private final long lookupServiceTimeoutInNanos
      • maxAgeInNanos

        private final long maxAgeInNanos
      • staleAgeInNanos

        private final long staleAgeInNanos
      • cacheSizeBytes

        private final long cacheSizeBytes
      • defaultTarget

        private final java.lang.String defaultTarget
    • Constructor Detail

      • AutoValue_RlsProtoData_RouteLookupConfig

        private AutoValue_RlsProtoData_RouteLookupConfig​(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders,
                                                         java.lang.String lookupService,
                                                         long lookupServiceTimeoutInNanos,
                                                         long maxAgeInNanos,
                                                         long staleAgeInNanos,
                                                         long cacheSizeBytes,
                                                         @Nullable
                                                         java.lang.String defaultTarget)
    • Method Detail

      • grpcKeybuilders

        com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders()
        Description copied from class: RlsProtoData.RouteLookupConfig
        Returns unordered specifications for constructing keys for gRPC requests. All GrpcKeyBuilders on this list must have unique "name" fields so that the client is free to prebuild a hash map keyed by name. If no GrpcKeyBuilder matches, an empty key_map will be sent to the lookup service; it should likely reply with a global default route and raise an alert.
        Specified by:
        grpcKeybuilders in class RlsProtoData.RouteLookupConfig
      • cacheSizeBytes

        long cacheSizeBytes()
        Description copied from class: RlsProtoData.RouteLookupConfig
        Returns a rough indicator of amount of memory to use for the client cache. Some of the data structure overhead is not accounted for, so actual memory consumed will be somewhat greater than this value. If this field is omitted or set to zero, a client default will be used. The value may be capped to a lower amount based on client configuration.
        Specified by:
        cacheSizeBytes in class RlsProtoData.RouteLookupConfig
      • defaultTarget

        @Nullable
        java.lang.String defaultTarget()
        Description copied from class: RlsProtoData.RouteLookupConfig
        Returns the default target to use if needed. If nonempty (implies request processing strategy SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR is set), it will be used if RLS returns an error. Note that requests can be routed only to a subdomain of the original target, e.g. "us_east_1.cloudbigtable.googleapis.com".
        Specified by:
        defaultTarget in class RlsProtoData.RouteLookupConfig
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object