Package io.grpc.lookup.v1
Class RouteLookupConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.grpc.lookup.v1.RouteLookupConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RouteLookupConfigOrBuilder
,java.io.Serializable
public final class RouteLookupConfig extends com.google.protobuf.GeneratedMessage implements RouteLookupConfigOrBuilder
Protobuf typegrpc.lookup.v1.RouteLookupConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RouteLookupConfig.Builder
Protobuf typegrpc.lookup.v1.RouteLookupConfig
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
static int
CACHE_SIZE_BYTES_FIELD_NUMBER
private long
cacheSizeBytes_
private static RouteLookupConfig
DEFAULT_INSTANCE
static int
DEFAULT_TARGET_FIELD_NUMBER
private java.lang.Object
defaultTarget_
static int
GRPC_KEYBUILDERS_FIELD_NUMBER
private java.util.List<GrpcKeyBuilder>
grpcKeybuilders_
static int
HTTP_KEYBUILDERS_FIELD_NUMBER
private java.util.List<HttpKeyBuilder>
httpKeybuilders_
static int
LOOKUP_SERVICE_FIELD_NUMBER
static int
LOOKUP_SERVICE_TIMEOUT_FIELD_NUMBER
private java.lang.Object
lookupService_
private com.google.protobuf.Duration
lookupServiceTimeout_
static int
MAX_AGE_FIELD_NUMBER
private com.google.protobuf.Duration
maxAge_
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<RouteLookupConfig>
PARSER
private static long
serialVersionUID
static int
STALE_AGE_FIELD_NUMBER
private com.google.protobuf.Duration
staleAge_
static int
VALID_TARGETS_FIELD_NUMBER
private com.google.protobuf.LazyStringArrayList
validTargets_
-
Constructor Summary
Constructors Modifier Constructor Description private
RouteLookupConfig()
private
RouteLookupConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
long
getCacheSizeBytes()
Rough indicator of amount of memory to use for the client cache.static RouteLookupConfig
getDefaultInstance()
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()
GrpcKeyBuilder
getGrpcKeybuilders(int index)
Unordered specifications for constructing keys for gRPC requests.int
getGrpcKeybuildersCount()
Unordered specifications for constructing keys for gRPC requests.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.int
getHttpKeybuildersCount()
Ordered specifications for constructing keys for HTTP requests.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.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.DurationOrBuilder
getMaxAgeOrBuilder()
How long are responses valid for (like HTTP Cache-Control).com.google.protobuf.Parser<RouteLookupConfig>
getParserForType()
int
getSerializedSize()
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.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.int
hashCode()
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()
static RouteLookupConfig.Builder
newBuilder()
static RouteLookupConfig.Builder
newBuilder(RouteLookupConfig prototype)
RouteLookupConfig.Builder
newBuilderForType()
protected RouteLookupConfig.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static RouteLookupConfig
parseDelimitedFrom(java.io.InputStream input)
static RouteLookupConfig
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RouteLookupConfig
parseFrom(byte[] data)
static RouteLookupConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RouteLookupConfig
parseFrom(com.google.protobuf.ByteString data)
static RouteLookupConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RouteLookupConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static RouteLookupConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RouteLookupConfig
parseFrom(java.io.InputStream input)
static RouteLookupConfig
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static RouteLookupConfig
parseFrom(java.nio.ByteBuffer data)
static RouteLookupConfig
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<RouteLookupConfig>
parser()
RouteLookupConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
HTTP_KEYBUILDERS_FIELD_NUMBER
public static final int HTTP_KEYBUILDERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
httpKeybuilders_
private java.util.List<HttpKeyBuilder> httpKeybuilders_
-
GRPC_KEYBUILDERS_FIELD_NUMBER
public static final int GRPC_KEYBUILDERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
grpcKeybuilders_
private java.util.List<GrpcKeyBuilder> grpcKeybuilders_
-
LOOKUP_SERVICE_FIELD_NUMBER
public static final int LOOKUP_SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
lookupService_
private volatile java.lang.Object lookupService_
-
LOOKUP_SERVICE_TIMEOUT_FIELD_NUMBER
public static final int LOOKUP_SERVICE_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
lookupServiceTimeout_
private com.google.protobuf.Duration lookupServiceTimeout_
-
MAX_AGE_FIELD_NUMBER
public static final int MAX_AGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxAge_
private com.google.protobuf.Duration maxAge_
-
STALE_AGE_FIELD_NUMBER
public static final int STALE_AGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
staleAge_
private com.google.protobuf.Duration staleAge_
-
CACHE_SIZE_BYTES_FIELD_NUMBER
public static final int CACHE_SIZE_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
cacheSizeBytes_
private long cacheSizeBytes_
-
VALID_TARGETS_FIELD_NUMBER
public static final int VALID_TARGETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
validTargets_
private com.google.protobuf.LazyStringArrayList validTargets_
-
DEFAULT_TARGET_FIELD_NUMBER
public static final int DEFAULT_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
defaultTarget_
private volatile java.lang.Object defaultTarget_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final RouteLookupConfig DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<RouteLookupConfig> PARSER
-
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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
-
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.
-
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
-
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.
-
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
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RouteLookupConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLookupConfig parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RouteLookupConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RouteLookupConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RouteLookupConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RouteLookupConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RouteLookupConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RouteLookupConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RouteLookupConfig.Builder newBuilder()
-
newBuilder
public static RouteLookupConfig.Builder newBuilder(RouteLookupConfig prototype)
-
toBuilder
public RouteLookupConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteLookupConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static RouteLookupConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RouteLookupConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<RouteLookupConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public RouteLookupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-