Class RouteLookupConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteLookupConfigOrBuilder, java.lang.Cloneable
    Enclosing class:
    RouteLookupConfig

    public static final class RouteLookupConfig.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
    implements RouteLookupConfigOrBuilder
    Protobuf type grpc.lookup.v1.RouteLookupConfig
    • Field Detail

      • bitField0_

        private int bitField0_
      • httpKeybuilders_

        private java.util.List<HttpKeyBuilder> httpKeybuilders_
      • grpcKeybuilders_

        private java.util.List<GrpcKeyBuilder> grpcKeybuilders_
      • lookupService_

        private java.lang.Object lookupService_
      • lookupServiceTimeout_

        private com.google.protobuf.Duration lookupServiceTimeout_
      • lookupServiceTimeoutBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> lookupServiceTimeoutBuilder_
      • maxAge_

        private com.google.protobuf.Duration maxAge_
      • maxAgeBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> maxAgeBuilder_
      • staleAge_

        private com.google.protobuf.Duration staleAge_
      • staleAgeBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> staleAgeBuilder_
      • cacheSizeBytes_

        private long cacheSizeBytes_
      • validTargets_

        private com.google.protobuf.LazyStringArrayList validTargets_
      • defaultTarget_

        private java.lang.Object defaultTarget_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public RouteLookupConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
      • getDefaultInstanceForType

        public RouteLookupConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public RouteLookupConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RouteLookupConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(RouteLookupConfig result)
      • mergeFrom

        public RouteLookupConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteLookupConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
      • mergeFrom

        public RouteLookupConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteLookupConfig.Builder>
        Throws:
        java.io.IOException
      • ensureHttpKeybuildersIsMutable

        private void ensureHttpKeybuildersIsMutable()
      • getHttpKeybuildersList

        public java.util.List<HttpKeyBuilder> getHttpKeybuildersList()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
        Specified by:
        getHttpKeybuildersList in interface RouteLookupConfigOrBuilder
      • getHttpKeybuildersCount

        public int getHttpKeybuildersCount()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
        Specified by:
        getHttpKeybuildersCount in interface RouteLookupConfigOrBuilder
      • getHttpKeybuilders

        public HttpKeyBuilder getHttpKeybuilders​(int index)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
        Specified by:
        getHttpKeybuilders in interface RouteLookupConfigOrBuilder
      • setHttpKeybuilders

        public RouteLookupConfig.Builder setHttpKeybuilders​(int index,
                                                            HttpKeyBuilder value)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • setHttpKeybuilders

        public RouteLookupConfig.Builder setHttpKeybuilders​(int index,
                                                            HttpKeyBuilder.Builder builderForValue)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addHttpKeybuilders

        public RouteLookupConfig.Builder addHttpKeybuilders​(HttpKeyBuilder value)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addHttpKeybuilders

        public RouteLookupConfig.Builder addHttpKeybuilders​(int index,
                                                            HttpKeyBuilder value)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addHttpKeybuilders

        public RouteLookupConfig.Builder addHttpKeybuilders​(HttpKeyBuilder.Builder builderForValue)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addHttpKeybuilders

        public RouteLookupConfig.Builder addHttpKeybuilders​(int index,
                                                            HttpKeyBuilder.Builder builderForValue)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addAllHttpKeybuilders

        public RouteLookupConfig.Builder addAllHttpKeybuilders​(java.lang.Iterable<? extends HttpKeyBuilder> values)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • clearHttpKeybuilders

        public RouteLookupConfig.Builder clearHttpKeybuilders()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • removeHttpKeybuilders

        public RouteLookupConfig.Builder removeHttpKeybuilders​(int index)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • getHttpKeybuildersBuilder

        public HttpKeyBuilder.Builder getHttpKeybuildersBuilder​(int index)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • getHttpKeybuildersOrBuilder

        public HttpKeyBuilderOrBuilder getHttpKeybuildersOrBuilder​(int index)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
        Specified by:
        getHttpKeybuildersOrBuilder in interface RouteLookupConfigOrBuilder
      • getHttpKeybuildersOrBuilderList

        public java.util.List<? extends HttpKeyBuilderOrBuilder> getHttpKeybuildersOrBuilderList()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
        Specified by:
        getHttpKeybuildersOrBuilderList in interface RouteLookupConfigOrBuilder
      • addHttpKeybuildersBuilder

        public HttpKeyBuilder.Builder addHttpKeybuildersBuilder()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • addHttpKeybuildersBuilder

        public HttpKeyBuilder.Builder addHttpKeybuildersBuilder​(int index)
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • getHttpKeybuildersBuilderList

        public java.util.List<HttpKeyBuilder.Builder> getHttpKeybuildersBuilderList()
         Ordered specifications for constructing keys for HTTP requests.  Last
         match wins.  If no HttpKeyBuilder 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.
         
        repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1;
      • ensureGrpcKeybuildersIsMutable

        private void ensureGrpcKeybuildersIsMutable()
      • getGrpcKeybuildersList

        public java.util.List<GrpcKeyBuilder> getGrpcKeybuildersList()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
        Specified by:
        getGrpcKeybuildersList in interface RouteLookupConfigOrBuilder
      • getGrpcKeybuildersCount

        public int getGrpcKeybuildersCount()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
        Specified by:
        getGrpcKeybuildersCount in interface RouteLookupConfigOrBuilder
      • getGrpcKeybuilders

        public GrpcKeyBuilder getGrpcKeybuilders​(int index)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
        Specified by:
        getGrpcKeybuilders in interface RouteLookupConfigOrBuilder
      • setGrpcKeybuilders

        public RouteLookupConfig.Builder setGrpcKeybuilders​(int index,
                                                            GrpcKeyBuilder value)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • setGrpcKeybuilders

        public RouteLookupConfig.Builder setGrpcKeybuilders​(int index,
                                                            GrpcKeyBuilder.Builder builderForValue)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addGrpcKeybuilders

        public RouteLookupConfig.Builder addGrpcKeybuilders​(GrpcKeyBuilder value)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addGrpcKeybuilders

        public RouteLookupConfig.Builder addGrpcKeybuilders​(int index,
                                                            GrpcKeyBuilder value)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addGrpcKeybuilders

        public RouteLookupConfig.Builder addGrpcKeybuilders​(GrpcKeyBuilder.Builder builderForValue)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addGrpcKeybuilders

        public RouteLookupConfig.Builder addGrpcKeybuilders​(int index,
                                                            GrpcKeyBuilder.Builder builderForValue)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addAllGrpcKeybuilders

        public RouteLookupConfig.Builder addAllGrpcKeybuilders​(java.lang.Iterable<? extends GrpcKeyBuilder> values)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • clearGrpcKeybuilders

        public RouteLookupConfig.Builder clearGrpcKeybuilders()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • removeGrpcKeybuilders

        public RouteLookupConfig.Builder removeGrpcKeybuilders​(int index)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • getGrpcKeybuildersBuilder

        public GrpcKeyBuilder.Builder getGrpcKeybuildersBuilder​(int index)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • getGrpcKeybuildersOrBuilder

        public GrpcKeyBuilderOrBuilder getGrpcKeybuildersOrBuilder​(int index)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
        Specified by:
        getGrpcKeybuildersOrBuilder in interface RouteLookupConfigOrBuilder
      • getGrpcKeybuildersOrBuilderList

        public java.util.List<? extends GrpcKeyBuilderOrBuilder> getGrpcKeybuildersOrBuilderList()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
        Specified by:
        getGrpcKeybuildersOrBuilderList in interface RouteLookupConfigOrBuilder
      • addGrpcKeybuildersBuilder

        public GrpcKeyBuilder.Builder addGrpcKeybuildersBuilder()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • addGrpcKeybuildersBuilder

        public GrpcKeyBuilder.Builder addGrpcKeybuildersBuilder​(int index)
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • getGrpcKeybuildersBuilderList

        public java.util.List<GrpcKeyBuilder.Builder> getGrpcKeybuildersBuilderList()
         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.
         
        repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2;
      • getLookupService

        public java.lang.String getLookupService()
         The name of the lookup service as a gRPC URI.  Typically, this will be
         a subdomain of the target, such as "lookup.datastore.googleapis.com".
         
        string lookup_service = 3;
        Specified by:
        getLookupService in interface RouteLookupConfigOrBuilder
        Returns:
        The lookupService.
      • getLookupServiceBytes

        public com.google.protobuf.ByteString getLookupServiceBytes()
         The name of the lookup service as a gRPC URI.  Typically, this will be
         a subdomain of the target, such as "lookup.datastore.googleapis.com".
         
        string lookup_service = 3;
        Specified by:
        getLookupServiceBytes in interface RouteLookupConfigOrBuilder
        Returns:
        The bytes for lookupService.
      • setLookupService

        public RouteLookupConfig.Builder setLookupService​(java.lang.String value)
         The name of the lookup service as a gRPC URI.  Typically, this will be
         a subdomain of the target, such as "lookup.datastore.googleapis.com".
         
        string lookup_service = 3;
        Parameters:
        value - The lookupService to set.
        Returns:
        This builder for chaining.
      • clearLookupService

        public RouteLookupConfig.Builder clearLookupService()
         The name of the lookup service as a gRPC URI.  Typically, this will be
         a subdomain of the target, such as "lookup.datastore.googleapis.com".
         
        string lookup_service = 3;
        Returns:
        This builder for chaining.
      • setLookupServiceBytes

        public RouteLookupConfig.Builder setLookupServiceBytes​(com.google.protobuf.ByteString value)
         The name of the lookup service as a gRPC URI.  Typically, this will be
         a subdomain of the target, such as "lookup.datastore.googleapis.com".
         
        string lookup_service = 3;
        Parameters:
        value - The bytes for lookupService to set.
        Returns:
        This builder for chaining.
      • hasLookupServiceTimeout

        public boolean hasLookupServiceTimeout()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
        Specified by:
        hasLookupServiceTimeout in interface RouteLookupConfigOrBuilder
        Returns:
        Whether the lookupServiceTimeout field is set.
      • getLookupServiceTimeout

        public com.google.protobuf.Duration getLookupServiceTimeout()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
        Specified by:
        getLookupServiceTimeout in interface RouteLookupConfigOrBuilder
        Returns:
        The lookupServiceTimeout.
      • setLookupServiceTimeout

        public RouteLookupConfig.Builder setLookupServiceTimeout​(com.google.protobuf.Duration value)
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • setLookupServiceTimeout

        public RouteLookupConfig.Builder setLookupServiceTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • mergeLookupServiceTimeout

        public RouteLookupConfig.Builder mergeLookupServiceTimeout​(com.google.protobuf.Duration value)
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • clearLookupServiceTimeout

        public RouteLookupConfig.Builder clearLookupServiceTimeout()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • getLookupServiceTimeoutBuilder

        public com.google.protobuf.Duration.Builder getLookupServiceTimeoutBuilder()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • getLookupServiceTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getLookupServiceTimeoutOrBuilder()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
        Specified by:
        getLookupServiceTimeoutOrBuilder in interface RouteLookupConfigOrBuilder
      • getLookupServiceTimeoutFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getLookupServiceTimeoutFieldBuilder()
         Configure a timeout value for lookup service requests.
         Defaults to 10 seconds if not specified.
         
        .google.protobuf.Duration lookup_service_timeout = 4;
      • hasMaxAge

        public boolean hasMaxAge()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
        Specified by:
        hasMaxAge in interface RouteLookupConfigOrBuilder
        Returns:
        Whether the maxAge field is set.
      • getMaxAge

        public com.google.protobuf.Duration getMaxAge()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
        Specified by:
        getMaxAge in interface RouteLookupConfigOrBuilder
        Returns:
        The maxAge.
      • setMaxAge

        public RouteLookupConfig.Builder setMaxAge​(com.google.protobuf.Duration value)
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • setMaxAge

        public RouteLookupConfig.Builder setMaxAge​(com.google.protobuf.Duration.Builder builderForValue)
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • mergeMaxAge

        public RouteLookupConfig.Builder mergeMaxAge​(com.google.protobuf.Duration value)
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • clearMaxAge

        public RouteLookupConfig.Builder clearMaxAge()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • getMaxAgeBuilder

        public com.google.protobuf.Duration.Builder getMaxAgeBuilder()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • getMaxAgeOrBuilder

        public com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
        Specified by:
        getMaxAgeOrBuilder in interface RouteLookupConfigOrBuilder
      • getMaxAgeFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getMaxAgeFieldBuilder()
         How long are responses valid for (like HTTP Cache-Control).
         If omitted or zero, the longest valid cache time is used.
         This value is clamped to 5 minutes to avoid unflushable bad responses.
         
        .google.protobuf.Duration max_age = 5;
      • hasStaleAge

        public boolean hasStaleAge()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
        Specified by:
        hasStaleAge in interface RouteLookupConfigOrBuilder
        Returns:
        Whether the staleAge field is set.
      • getStaleAge

        public com.google.protobuf.Duration getStaleAge()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
        Specified by:
        getStaleAge in interface RouteLookupConfigOrBuilder
        Returns:
        The staleAge.
      • setStaleAge

        public RouteLookupConfig.Builder setStaleAge​(com.google.protobuf.Duration value)
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • setStaleAge

        public RouteLookupConfig.Builder setStaleAge​(com.google.protobuf.Duration.Builder builderForValue)
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • mergeStaleAge

        public RouteLookupConfig.Builder mergeStaleAge​(com.google.protobuf.Duration value)
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • clearStaleAge

        public RouteLookupConfig.Builder clearStaleAge()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • getStaleAgeBuilder

        public com.google.protobuf.Duration.Builder getStaleAgeBuilder()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • getStaleAgeOrBuilder

        public com.google.protobuf.DurationOrBuilder getStaleAgeOrBuilder()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
        Specified by:
        getStaleAgeOrBuilder in interface RouteLookupConfigOrBuilder
      • getStaleAgeFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getStaleAgeFieldBuilder()
         After a response has been in the client cache for this amount of time
         and is re-requested, start an asynchronous RPC to re-validate it.
         This value should be less than max_age by at least the length of a
         typical RTT to the Route Lookup Service to fully mask the RTT latency.
         If omitted, keys are only re-requested after they have expired.
         
        .google.protobuf.Duration stale_age = 6;
      • getCacheSizeBytes

        public long getCacheSizeBytes()
         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.
         
        int64 cache_size_bytes = 7;
        Specified by:
        getCacheSizeBytes in interface RouteLookupConfigOrBuilder
        Returns:
        The cacheSizeBytes.
      • setCacheSizeBytes

        public RouteLookupConfig.Builder setCacheSizeBytes​(long value)
         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.
         
        int64 cache_size_bytes = 7;
        Parameters:
        value - The cacheSizeBytes to set.
        Returns:
        This builder for chaining.
      • clearCacheSizeBytes

        public RouteLookupConfig.Builder clearCacheSizeBytes()
         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.
         
        int64 cache_size_bytes = 7;
        Returns:
        This builder for chaining.
      • ensureValidTargetsIsMutable

        private void ensureValidTargetsIsMutable()
      • getValidTargetsList

        public com.google.protobuf.ProtocolStringList getValidTargetsList()
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Specified by:
        getValidTargetsList in interface RouteLookupConfigOrBuilder
        Returns:
        A list containing the validTargets.
      • getValidTargetsCount

        public int getValidTargetsCount()
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Specified by:
        getValidTargetsCount in interface RouteLookupConfigOrBuilder
        Returns:
        The count of validTargets.
      • getValidTargets

        public java.lang.String getValidTargets​(int index)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Specified by:
        getValidTargets in interface RouteLookupConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The validTargets at the given index.
      • getValidTargetsBytes

        public com.google.protobuf.ByteString getValidTargetsBytes​(int index)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Specified by:
        getValidTargetsBytes in interface RouteLookupConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the validTargets at the given index.
      • setValidTargets

        public RouteLookupConfig.Builder setValidTargets​(int index,
                                                         java.lang.String value)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Parameters:
        index - The index to set the value at.
        value - The validTargets to set.
        Returns:
        This builder for chaining.
      • addValidTargets

        public RouteLookupConfig.Builder addValidTargets​(java.lang.String value)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Parameters:
        value - The validTargets to add.
        Returns:
        This builder for chaining.
      • addAllValidTargets

        public RouteLookupConfig.Builder addAllValidTargets​(java.lang.Iterable<java.lang.String> values)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Parameters:
        values - The validTargets to add.
        Returns:
        This builder for chaining.
      • clearValidTargets

        public RouteLookupConfig.Builder clearValidTargets()
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Returns:
        This builder for chaining.
      • addValidTargetsBytes

        public RouteLookupConfig.Builder addValidTargetsBytes​(com.google.protobuf.ByteString value)
         This is a list of all the possible targets that can be returned by the
         lookup service.  If a target not on this list is returned, it will be
         treated the same as an unhealthy target.
         
        repeated string valid_targets = 8;
        Parameters:
        value - The bytes of the validTargets to add.
        Returns:
        This builder for chaining.
      • getDefaultTarget

        public java.lang.String getDefaultTarget()
         This value provides a default target to use if needed.  If set, it will be
         used if RLS returns an error, times out, or returns an invalid response.
         Note that requests can be routed only to a subdomain of the original
         target, e.g. "us_east_1.cloudbigtable.googleapis.com".
         
        string default_target = 9;
        Specified by:
        getDefaultTarget in interface RouteLookupConfigOrBuilder
        Returns:
        The defaultTarget.
      • getDefaultTargetBytes

        public com.google.protobuf.ByteString getDefaultTargetBytes()
         This value provides a default target to use if needed.  If set, it will be
         used if RLS returns an error, times out, or returns an invalid response.
         Note that requests can be routed only to a subdomain of the original
         target, e.g. "us_east_1.cloudbigtable.googleapis.com".
         
        string default_target = 9;
        Specified by:
        getDefaultTargetBytes in interface RouteLookupConfigOrBuilder
        Returns:
        The bytes for defaultTarget.
      • setDefaultTarget

        public RouteLookupConfig.Builder setDefaultTarget​(java.lang.String value)
         This value provides a default target to use if needed.  If set, it will be
         used if RLS returns an error, times out, or returns an invalid response.
         Note that requests can be routed only to a subdomain of the original
         target, e.g. "us_east_1.cloudbigtable.googleapis.com".
         
        string default_target = 9;
        Parameters:
        value - The defaultTarget to set.
        Returns:
        This builder for chaining.
      • clearDefaultTarget

        public RouteLookupConfig.Builder clearDefaultTarget()
         This value provides a default target to use if needed.  If set, it will be
         used if RLS returns an error, times out, or returns an invalid response.
         Note that requests can be routed only to a subdomain of the original
         target, e.g. "us_east_1.cloudbigtable.googleapis.com".
         
        string default_target = 9;
        Returns:
        This builder for chaining.
      • setDefaultTargetBytes

        public RouteLookupConfig.Builder setDefaultTargetBytes​(com.google.protobuf.ByteString value)
         This value provides a default target to use if needed.  If set, it will be
         used if RLS returns an error, times out, or returns an invalid response.
         Note that requests can be routed only to a subdomain of the original
         target, e.g. "us_east_1.cloudbigtable.googleapis.com".
         
        string default_target = 9;
        Parameters:
        value - The bytes for defaultTarget to set.
        Returns:
        This builder for chaining.