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 classRouteLookupConfig.BuilderProtobuf 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 intbitField0_static intCACHE_SIZE_BYTES_FIELD_NUMBERprivate longcacheSizeBytes_private static RouteLookupConfigDEFAULT_INSTANCEstatic intDEFAULT_TARGET_FIELD_NUMBERprivate java.lang.ObjectdefaultTarget_static intGRPC_KEYBUILDERS_FIELD_NUMBERprivate java.util.List<GrpcKeyBuilder>grpcKeybuilders_static intHTTP_KEYBUILDERS_FIELD_NUMBERprivate java.util.List<HttpKeyBuilder>httpKeybuilders_static intLOOKUP_SERVICE_FIELD_NUMBERstatic intLOOKUP_SERVICE_TIMEOUT_FIELD_NUMBERprivate java.lang.ObjectlookupService_private com.google.protobuf.DurationlookupServiceTimeout_static intMAX_AGE_FIELD_NUMBERprivate com.google.protobuf.DurationmaxAge_private bytememoizedIsInitializedprivate static com.google.protobuf.Parser<RouteLookupConfig>PARSERprivate static longserialVersionUIDstatic intSTALE_AGE_FIELD_NUMBERprivate com.google.protobuf.DurationstaleAge_static intVALID_TARGETS_FIELD_NUMBERprivate com.google.protobuf.LazyStringArrayListvalidTargets_
-
Constructor Summary
Constructors Modifier Constructor Description privateRouteLookupConfig()privateRouteLookupConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetCacheSizeBytes()Rough indicator of amount of memory to use for the client cache.static RouteLookupConfiggetDefaultInstance()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()GrpcKeyBuildergetGrpcKeybuilders(int index)Unordered specifications for constructing keys for gRPC requests.intgetGrpcKeybuildersCount()Unordered specifications for constructing keys for gRPC requests.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.intgetHttpKeybuildersCount()Ordered specifications for constructing keys for HTTP requests.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.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.DurationOrBuildergetMaxAgeOrBuilder()How long are responses valid for (like HTTP Cache-Control).com.google.protobuf.Parser<RouteLookupConfig>getParserForType()intgetSerializedSize()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.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.inthashCode()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()static RouteLookupConfig.BuildernewBuilder()static RouteLookupConfig.BuildernewBuilder(RouteLookupConfig prototype)RouteLookupConfig.BuildernewBuilderForType()protected RouteLookupConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static RouteLookupConfigparseDelimitedFrom(java.io.InputStream input)static RouteLookupConfigparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteLookupConfigparseFrom(byte[] data)static RouteLookupConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteLookupConfigparseFrom(com.google.protobuf.ByteString data)static RouteLookupConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteLookupConfigparseFrom(com.google.protobuf.CodedInputStream input)static RouteLookupConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteLookupConfigparseFrom(java.io.InputStream input)static RouteLookupConfigparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteLookupConfigparseFrom(java.nio.ByteBuffer data)static RouteLookupConfigparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RouteLookupConfig>parser()RouteLookupConfig.BuildertoBuilder()voidwriteTo(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:
internalGetFieldAccessorTablein 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:
getHttpKeybuildersListin 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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
-
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.
-
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
-
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.
-
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
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteLookupConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public RouteLookupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-