Package io.grpc.lookup.v1
Class RouteLookupConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
- io.grpc.lookup.v1.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 typegrpc.lookup.v1.RouteLookupConfig
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private long
cacheSizeBytes_
private java.lang.Object
defaultTarget_
private java.util.List<GrpcKeyBuilder>
grpcKeybuilders_
private com.google.protobuf.RepeatedFieldBuilder<GrpcKeyBuilder,GrpcKeyBuilder.Builder,GrpcKeyBuilderOrBuilder>
grpcKeybuildersBuilder_
private java.util.List<HttpKeyBuilder>
httpKeybuilders_
private com.google.protobuf.RepeatedFieldBuilder<HttpKeyBuilder,HttpKeyBuilder.Builder,HttpKeyBuilderOrBuilder>
httpKeybuildersBuilder_
private java.lang.Object
lookupService_
private com.google.protobuf.Duration
lookupServiceTimeout_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
lookupServiceTimeoutBuilder_
private com.google.protobuf.Duration
maxAge_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
maxAgeBuilder_
private com.google.protobuf.Duration
staleAge_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
staleAgeBuilder_
private com.google.protobuf.LazyStringArrayList
validTargets_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteLookupConfig.Builder
addAllGrpcKeybuilders(java.lang.Iterable<? extends GrpcKeyBuilder> values)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
addAllHttpKeybuilders(java.lang.Iterable<? extends HttpKeyBuilder> values)
Ordered specifications for constructing keys for HTTP requests.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.RouteLookupConfig.Builder
addGrpcKeybuilders(int index, GrpcKeyBuilder value)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
addGrpcKeybuilders(int index, GrpcKeyBuilder.Builder builderForValue)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
addGrpcKeybuilders(GrpcKeyBuilder value)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
addGrpcKeybuilders(GrpcKeyBuilder.Builder builderForValue)
Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.Builder
addGrpcKeybuildersBuilder()
Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.Builder
addGrpcKeybuildersBuilder(int index)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
addHttpKeybuilders(int index, HttpKeyBuilder value)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
addHttpKeybuilders(int index, HttpKeyBuilder.Builder builderForValue)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
addHttpKeybuilders(HttpKeyBuilder value)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
addHttpKeybuilders(HttpKeyBuilder.Builder builderForValue)
Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.Builder
addHttpKeybuildersBuilder()
Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.Builder
addHttpKeybuildersBuilder(int index)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
addValidTargets(java.lang.String value)
This is a list of all the possible targets that can be returned by the lookup service.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.RouteLookupConfig
build()
RouteLookupConfig
buildPartial()
private void
buildPartial0(RouteLookupConfig result)
private void
buildPartialRepeatedFields(RouteLookupConfig result)
RouteLookupConfig.Builder
clear()
RouteLookupConfig.Builder
clearCacheSizeBytes()
Rough indicator of amount of memory to use for the client cache.RouteLookupConfig.Builder
clearDefaultTarget()
This value provides a default target to use if needed.RouteLookupConfig.Builder
clearGrpcKeybuilders()
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
clearHttpKeybuilders()
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
clearLookupService()
The name of the lookup service as a gRPC URI.RouteLookupConfig.Builder
clearLookupServiceTimeout()
Configure a timeout value for lookup service requests.RouteLookupConfig.Builder
clearMaxAge()
How long are responses valid for (like HTTP Cache-Control).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.RouteLookupConfig.Builder
clearValidTargets()
This is a list of all the possible targets that can be returned by the lookup service.private void
ensureGrpcKeybuildersIsMutable()
private void
ensureHttpKeybuildersIsMutable()
private void
ensureValidTargetsIsMutable()
long
getCacheSizeBytes()
Rough indicator of amount of memory to use for the client cache.RouteLookupConfig
getDefaultInstanceForType()
java.lang.String
getDefaultTarget()
This value provides a default target to use if needed.com.google.protobuf.ByteString
getDefaultTargetBytes()
This value provides a default target to use if needed.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GrpcKeyBuilder
getGrpcKeybuilders(int index)
Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.Builder
getGrpcKeybuildersBuilder(int index)
Unordered specifications for constructing keys for gRPC requests.java.util.List<GrpcKeyBuilder.Builder>
getGrpcKeybuildersBuilderList()
Unordered specifications for constructing keys for gRPC requests.int
getGrpcKeybuildersCount()
Unordered specifications for constructing keys for gRPC requests.private com.google.protobuf.RepeatedFieldBuilder<GrpcKeyBuilder,GrpcKeyBuilder.Builder,GrpcKeyBuilderOrBuilder>
getGrpcKeybuildersFieldBuilder()
java.util.List<GrpcKeyBuilder>
getGrpcKeybuildersList()
Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilderOrBuilder
getGrpcKeybuildersOrBuilder(int index)
Unordered specifications for constructing keys for gRPC requests.java.util.List<? extends GrpcKeyBuilderOrBuilder>
getGrpcKeybuildersOrBuilderList()
Unordered specifications for constructing keys for gRPC requests.HttpKeyBuilder
getHttpKeybuilders(int index)
Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.Builder
getHttpKeybuildersBuilder(int index)
Ordered specifications for constructing keys for HTTP requests.java.util.List<HttpKeyBuilder.Builder>
getHttpKeybuildersBuilderList()
Ordered specifications for constructing keys for HTTP requests.int
getHttpKeybuildersCount()
Ordered specifications for constructing keys for HTTP requests.private com.google.protobuf.RepeatedFieldBuilder<HttpKeyBuilder,HttpKeyBuilder.Builder,HttpKeyBuilderOrBuilder>
getHttpKeybuildersFieldBuilder()
java.util.List<HttpKeyBuilder>
getHttpKeybuildersList()
Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilderOrBuilder
getHttpKeybuildersOrBuilder(int index)
Ordered specifications for constructing keys for HTTP requests.java.util.List<? extends HttpKeyBuilderOrBuilder>
getHttpKeybuildersOrBuilderList()
Ordered specifications for constructing keys for HTTP requests.java.lang.String
getLookupService()
The name of the lookup service as a gRPC URI.com.google.protobuf.ByteString
getLookupServiceBytes()
The name of the lookup service as a gRPC URI.com.google.protobuf.Duration
getLookupServiceTimeout()
Configure a timeout value for lookup service requests.com.google.protobuf.Duration.Builder
getLookupServiceTimeoutBuilder()
Configure a timeout value for lookup service requests.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.com.google.protobuf.DurationOrBuilder
getLookupServiceTimeoutOrBuilder()
Configure a timeout value for lookup service requests.com.google.protobuf.Duration
getMaxAge()
How long are responses valid for (like HTTP Cache-Control).com.google.protobuf.Duration.Builder
getMaxAgeBuilder()
How long are responses valid for (like HTTP Cache-Control).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).com.google.protobuf.DurationOrBuilder
getMaxAgeOrBuilder()
How long are responses valid for (like HTTP Cache-Control).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.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.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.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.java.lang.String
getValidTargets(int index)
This is a list of all the possible targets that can be returned by the lookup service.com.google.protobuf.ByteString
getValidTargetsBytes(int index)
This is a list of all the possible targets that can be returned by the lookup service.int
getValidTargetsCount()
This is a list of all the possible targets that can be returned by the lookup service.com.google.protobuf.ProtocolStringList
getValidTargetsList()
This is a list of all the possible targets that can be returned by the lookup service.boolean
hasLookupServiceTimeout()
Configure a timeout value for lookup service requests.boolean
hasMaxAge()
How long are responses valid for (like HTTP Cache-Control).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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
RouteLookupConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteLookupConfig.Builder
mergeFrom(com.google.protobuf.Message other)
RouteLookupConfig.Builder
mergeFrom(RouteLookupConfig other)
RouteLookupConfig.Builder
mergeLookupServiceTimeout(com.google.protobuf.Duration value)
Configure a timeout value for lookup service requests.RouteLookupConfig.Builder
mergeMaxAge(com.google.protobuf.Duration value)
How long are responses valid for (like HTTP Cache-Control).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.RouteLookupConfig.Builder
removeGrpcKeybuilders(int index)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
removeHttpKeybuilders(int index)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
setCacheSizeBytes(long value)
Rough indicator of amount of memory to use for the client cache.RouteLookupConfig.Builder
setDefaultTarget(java.lang.String value)
This value provides a default target to use if needed.RouteLookupConfig.Builder
setDefaultTargetBytes(com.google.protobuf.ByteString value)
This value provides a default target to use if needed.RouteLookupConfig.Builder
setGrpcKeybuilders(int index, GrpcKeyBuilder value)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
setGrpcKeybuilders(int index, GrpcKeyBuilder.Builder builderForValue)
Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.Builder
setHttpKeybuilders(int index, HttpKeyBuilder value)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
setHttpKeybuilders(int index, HttpKeyBuilder.Builder builderForValue)
Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.Builder
setLookupService(java.lang.String value)
The name of the lookup service as a gRPC URI.RouteLookupConfig.Builder
setLookupServiceBytes(com.google.protobuf.ByteString value)
The name of the lookup service as a gRPC URI.RouteLookupConfig.Builder
setLookupServiceTimeout(com.google.protobuf.Duration value)
Configure a timeout value for lookup service requests.RouteLookupConfig.Builder
setLookupServiceTimeout(com.google.protobuf.Duration.Builder builderForValue)
Configure a timeout value for lookup service requests.RouteLookupConfig.Builder
setMaxAge(com.google.protobuf.Duration value)
How long are responses valid for (like HTTP Cache-Control).RouteLookupConfig.Builder
setMaxAge(com.google.protobuf.Duration.Builder builderForValue)
How long are responses valid for (like HTTP Cache-Control).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.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.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.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
httpKeybuilders_
private java.util.List<HttpKeyBuilder> httpKeybuilders_
-
httpKeybuildersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HttpKeyBuilder,HttpKeyBuilder.Builder,HttpKeyBuilderOrBuilder> httpKeybuildersBuilder_
-
grpcKeybuilders_
private java.util.List<GrpcKeyBuilder> grpcKeybuilders_
-
grpcKeybuildersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<GrpcKeyBuilder,GrpcKeyBuilder.Builder,GrpcKeyBuilderOrBuilder> grpcKeybuildersBuilder_
-
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_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public RouteLookupConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
getDefaultInstanceForType
public RouteLookupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLookupConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLookupConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(RouteLookupConfig result)
-
buildPartial0
private void buildPartial0(RouteLookupConfig result)
-
mergeFrom
public RouteLookupConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteLookupConfig.Builder>
-
mergeFrom
public RouteLookupConfig.Builder mergeFrom(RouteLookupConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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;
-
getHttpKeybuildersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HttpKeyBuilder,HttpKeyBuilder.Builder,HttpKeyBuilderOrBuilder> getHttpKeybuildersFieldBuilder()
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
-
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;
-
getGrpcKeybuildersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<GrpcKeyBuilder,GrpcKeyBuilder.Builder,GrpcKeyBuilderOrBuilder> getGrpcKeybuildersFieldBuilder()
-
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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
-
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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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 interfaceRouteLookupConfigOrBuilder
- 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.
-
-