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 intbitField0_private longcacheSizeBytes_private java.lang.ObjectdefaultTarget_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.ObjectlookupService_private com.google.protobuf.DurationlookupServiceTimeout_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>lookupServiceTimeoutBuilder_private com.google.protobuf.DurationmaxAge_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>maxAgeBuilder_private com.google.protobuf.DurationstaleAge_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>staleAgeBuilder_private com.google.protobuf.LazyStringArrayListvalidTargets_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteLookupConfig.BuilderaddAllGrpcKeybuilders(java.lang.Iterable<? extends GrpcKeyBuilder> values)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderaddAllHttpKeybuilders(java.lang.Iterable<? extends HttpKeyBuilder> values)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderaddAllValidTargets(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.BuilderaddGrpcKeybuilders(int index, GrpcKeyBuilder value)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderaddGrpcKeybuilders(int index, GrpcKeyBuilder.Builder builderForValue)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderaddGrpcKeybuilders(GrpcKeyBuilder value)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderaddGrpcKeybuilders(GrpcKeyBuilder.Builder builderForValue)Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.BuilderaddGrpcKeybuildersBuilder()Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.BuilderaddGrpcKeybuildersBuilder(int index)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderaddHttpKeybuilders(int index, HttpKeyBuilder value)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderaddHttpKeybuilders(int index, HttpKeyBuilder.Builder builderForValue)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderaddHttpKeybuilders(HttpKeyBuilder value)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderaddHttpKeybuilders(HttpKeyBuilder.Builder builderForValue)Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.BuilderaddHttpKeybuildersBuilder()Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.BuilderaddHttpKeybuildersBuilder(int index)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderaddValidTargets(java.lang.String value)This is a list of all the possible targets that can be returned by the lookup service.RouteLookupConfig.BuilderaddValidTargetsBytes(com.google.protobuf.ByteString value)This is a list of all the possible targets that can be returned by the lookup service.RouteLookupConfigbuild()RouteLookupConfigbuildPartial()private voidbuildPartial0(RouteLookupConfig result)private voidbuildPartialRepeatedFields(RouteLookupConfig result)RouteLookupConfig.Builderclear()RouteLookupConfig.BuilderclearCacheSizeBytes()Rough indicator of amount of memory to use for the client cache.RouteLookupConfig.BuilderclearDefaultTarget()This value provides a default target to use if needed.RouteLookupConfig.BuilderclearGrpcKeybuilders()Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderclearHttpKeybuilders()Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuilderclearLookupService()The name of the lookup service as a gRPC URI.RouteLookupConfig.BuilderclearLookupServiceTimeout()Configure a timeout value for lookup service requests.RouteLookupConfig.BuilderclearMaxAge()How long are responses valid for (like HTTP Cache-Control).RouteLookupConfig.BuilderclearStaleAge()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.BuilderclearValidTargets()This is a list of all the possible targets that can be returned by the lookup service.private voidensureGrpcKeybuildersIsMutable()private voidensureHttpKeybuildersIsMutable()private voidensureValidTargetsIsMutable()longgetCacheSizeBytes()Rough indicator of amount of memory to use for the client cache.RouteLookupConfiggetDefaultInstanceForType()java.lang.StringgetDefaultTarget()This value provides a default target to use if needed.com.google.protobuf.ByteStringgetDefaultTargetBytes()This value provides a default target to use if needed.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GrpcKeyBuildergetGrpcKeybuilders(int index)Unordered specifications for constructing keys for gRPC requests.GrpcKeyBuilder.BuildergetGrpcKeybuildersBuilder(int index)Unordered specifications for constructing keys for gRPC requests.java.util.List<GrpcKeyBuilder.Builder>getGrpcKeybuildersBuilderList()Unordered specifications for constructing keys for gRPC requests.intgetGrpcKeybuildersCount()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.GrpcKeyBuilderOrBuildergetGrpcKeybuildersOrBuilder(int index)Unordered specifications for constructing keys for gRPC requests.java.util.List<? extends GrpcKeyBuilderOrBuilder>getGrpcKeybuildersOrBuilderList()Unordered specifications for constructing keys for gRPC requests.HttpKeyBuildergetHttpKeybuilders(int index)Ordered specifications for constructing keys for HTTP requests.HttpKeyBuilder.BuildergetHttpKeybuildersBuilder(int index)Ordered specifications for constructing keys for HTTP requests.java.util.List<HttpKeyBuilder.Builder>getHttpKeybuildersBuilderList()Ordered specifications for constructing keys for HTTP requests.intgetHttpKeybuildersCount()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.HttpKeyBuilderOrBuildergetHttpKeybuildersOrBuilder(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.StringgetLookupService()The name of the lookup service as a gRPC URI.com.google.protobuf.ByteStringgetLookupServiceBytes()The name of the lookup service as a gRPC URI.com.google.protobuf.DurationgetLookupServiceTimeout()Configure a timeout value for lookup service requests.com.google.protobuf.Duration.BuildergetLookupServiceTimeoutBuilder()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.DurationOrBuildergetLookupServiceTimeoutOrBuilder()Configure a timeout value for lookup service requests.com.google.protobuf.DurationgetMaxAge()How long are responses valid for (like HTTP Cache-Control).com.google.protobuf.Duration.BuildergetMaxAgeBuilder()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.DurationOrBuildergetMaxAgeOrBuilder()How long are responses valid for (like HTTP Cache-Control).com.google.protobuf.DurationgetStaleAge()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.BuildergetStaleAgeBuilder()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.DurationOrBuildergetStaleAgeOrBuilder()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.StringgetValidTargets(int index)This is a list of all the possible targets that can be returned by the lookup service.com.google.protobuf.ByteStringgetValidTargetsBytes(int index)This is a list of all the possible targets that can be returned by the lookup service.intgetValidTargetsCount()This is a list of all the possible targets that can be returned by the lookup service.com.google.protobuf.ProtocolStringListgetValidTargetsList()This is a list of all the possible targets that can be returned by the lookup service.booleanhasLookupServiceTimeout()Configure a timeout value for lookup service requests.booleanhasMaxAge()How long are responses valid for (like HTTP Cache-Control).booleanhasStaleAge()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()RouteLookupConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteLookupConfig.BuildermergeFrom(com.google.protobuf.Message other)RouteLookupConfig.BuildermergeFrom(RouteLookupConfig other)RouteLookupConfig.BuildermergeLookupServiceTimeout(com.google.protobuf.Duration value)Configure a timeout value for lookup service requests.RouteLookupConfig.BuildermergeMaxAge(com.google.protobuf.Duration value)How long are responses valid for (like HTTP Cache-Control).RouteLookupConfig.BuildermergeStaleAge(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.BuilderremoveGrpcKeybuilders(int index)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuilderremoveHttpKeybuilders(int index)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuildersetCacheSizeBytes(long value)Rough indicator of amount of memory to use for the client cache.RouteLookupConfig.BuildersetDefaultTarget(java.lang.String value)This value provides a default target to use if needed.RouteLookupConfig.BuildersetDefaultTargetBytes(com.google.protobuf.ByteString value)This value provides a default target to use if needed.RouteLookupConfig.BuildersetGrpcKeybuilders(int index, GrpcKeyBuilder value)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuildersetGrpcKeybuilders(int index, GrpcKeyBuilder.Builder builderForValue)Unordered specifications for constructing keys for gRPC requests.RouteLookupConfig.BuildersetHttpKeybuilders(int index, HttpKeyBuilder value)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuildersetHttpKeybuilders(int index, HttpKeyBuilder.Builder builderForValue)Ordered specifications for constructing keys for HTTP requests.RouteLookupConfig.BuildersetLookupService(java.lang.String value)The name of the lookup service as a gRPC URI.RouteLookupConfig.BuildersetLookupServiceBytes(com.google.protobuf.ByteString value)The name of the lookup service as a gRPC URI.RouteLookupConfig.BuildersetLookupServiceTimeout(com.google.protobuf.Duration value)Configure a timeout value for lookup service requests.RouteLookupConfig.BuildersetLookupServiceTimeout(com.google.protobuf.Duration.Builder builderForValue)Configure a timeout value for lookup service requests.RouteLookupConfig.BuildersetMaxAge(com.google.protobuf.Duration value)How long are responses valid for (like HTTP Cache-Control).RouteLookupConfig.BuildersetMaxAge(com.google.protobuf.Duration.Builder builderForValue)How long are responses valid for (like HTTP Cache-Control).RouteLookupConfig.BuildersetStaleAge(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.BuildersetStaleAge(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.BuildersetValidTargets(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public RouteLookupConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupConfig.Builder>
-
getDefaultInstanceForType
public RouteLookupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLookupConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLookupConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteLookupConfig.Builder>
-
mergeFrom
public RouteLookupConfig.Builder mergeFrom(RouteLookupConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getHttpKeybuildersListin 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:
getHttpKeybuildersCountin 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:
getHttpKeybuildersin 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:
getHttpKeybuildersOrBuilderin 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:
getHttpKeybuildersOrBuilderListin 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:
getGrpcKeybuildersListin 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:
getGrpcKeybuildersCountin 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:
getGrpcKeybuildersin 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:
getGrpcKeybuildersOrBuilderin 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:
getGrpcKeybuildersOrBuilderListin 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:
getLookupServicein 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:
getLookupServiceBytesin 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:
hasLookupServiceTimeoutin 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:
getLookupServiceTimeoutin 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:
getLookupServiceTimeoutOrBuilderin 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:
hasMaxAgein 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:
getMaxAgein 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:
getMaxAgeOrBuilderin 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:
hasStaleAgein 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:
getStaleAgein 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:
getStaleAgeOrBuilderin 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:
getCacheSizeBytesin 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:
getValidTargetsListin 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:
getValidTargetsCountin 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:
getValidTargetsin 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:
getValidTargetsBytesin 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:
getDefaultTargetin 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:
getDefaultTargetBytesin 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.
-
-