Package com.google.spanner.v1
Class RoutingHint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
com.google.spanner.v1.RoutingHint.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RoutingHintOrBuilder,Cloneable
- Enclosing class:
- RoutingHint
public static final class RoutingHint.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
implements RoutingHintOrBuilder
`RoutingHint` can be optionally added to location-aware Spanner requests. It gives the server hints that can be used to route the request to an appropriate server, potentially significantly decreasing latency and improving throughput. To achieve improved performance, most fields must be filled in with accurate values. The presence of a valid `RoutingHint` tells the server that the client is location-aware. `RoutingHint` does not change the semantics of the request; it is purely a performance hint; the request will perform the same actions on the database's data as if `RoutingHint` were not present. However, if the `RoutingHint` is incomplete or incorrect, the response may include a `CacheUpdate` the client can use to correct its location cache.Protobuf type
google.spanner.v1.RoutingHint-
Method Summary
Modifier and TypeMethodDescriptionaddAllSkippedTabletUid(Iterable<? extends RoutingHint.SkippedTablet> values) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSkippedTabletUid(int index, RoutingHint.SkippedTablet value) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.addSkippedTabletUid(int index, RoutingHint.SkippedTablet.Builder builderForValue) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.addSkippedTabletUid(RoutingHint.SkippedTablet.Builder builderForValue) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.addSkippedTabletUidBuilder(int index) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.build()clear()If present, the client's current location.The database ID of the database being accessed, see `CacheUpdate.database_id`.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The group UID of the group that the client believes serves the range defined by `key` and `limit_key`.clearKey()The key / key range that this request accesses.If this request targets a key range, this is the exclusive end of the range.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A session-scoped unique ID for the operation, computed client-side.The schema generation of the recipe that was used to generate `key` and `limit_key`.If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.The split ID of the split that the client believes contains the range defined by `key` and `limit_key`.The tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request.clone()If present, the client's current location.com.google.protobuf.ByteStringIf present, the client's current location.longThe database ID of the database being accessed, see `CacheUpdate.database_id`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe group UID of the group that the client believes serves the range defined by `key` and `limit_key`.com.google.protobuf.ByteStringgetKey()The key / key range that this request accesses.com.google.protobuf.ByteStringIf this request targets a key range, this is the exclusive end of the range.longA session-scoped unique ID for the operation, computed client-side.com.google.protobuf.ByteStringThe schema generation of the recipe that was used to generate `key` and `limit_key`.getSkippedTabletUid(int index) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.getSkippedTabletUidBuilder(int index) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.intIf the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.getSkippedTabletUidOrBuilder(int index) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.List<? extends RoutingHint.SkippedTabletOrBuilder>If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.longThe split ID of the split that the client believes contains the range defined by `key` and `limit_key`.longThe tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RoutingHint other) final RoutingHint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSkippedTabletUid(int index) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.setClientLocation(String value) If present, the client's current location.setClientLocationBytes(com.google.protobuf.ByteString value) If present, the client's current location.setDatabaseId(long value) The database ID of the database being accessed, see `CacheUpdate.database_id`.setGroupUid(long value) The group UID of the group that the client believes serves the range defined by `key` and `limit_key`.setKey(com.google.protobuf.ByteString value) The key / key range that this request accesses.setLimitKey(com.google.protobuf.ByteString value) If this request targets a key range, this is the exclusive end of the range.setOperationUid(long value) A session-scoped unique ID for the operation, computed client-side.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSchemaGeneration(com.google.protobuf.ByteString value) The schema generation of the recipe that was used to generate `key` and `limit_key`.setSkippedTabletUid(int index, RoutingHint.SkippedTablet value) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.setSkippedTabletUid(int index, RoutingHint.SkippedTablet.Builder builderForValue) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations.setSplitId(long value) The split ID of the split that the client believes contains the range defined by `key` and `limit_key`.setTabletUid(long value) The tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request.final RoutingHint.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.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.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
setField
public RoutingHint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
setRepeatedField
public RoutingHint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
addRepeatedField
public RoutingHint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutingHint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
mergeFrom
public RoutingHint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RoutingHint.Builder>- Throws:
IOException
-
getOperationUid
public long getOperationUid()A session-scoped unique ID for the operation, computed client-side. Requests with the same `operation_uid` should have a shared 'shape', meaning that some fields are expected to be the same, such as the SQL query, the target table/columns (for reads) etc. Requests with the same `operation_uid` are meant to differ only in fields like keys/key ranges/query parameters, transaction IDs, etc. `operation_uid` must be non-zero for `RoutingHint` to be valid.
uint64 operation_uid = 1;- Specified by:
getOperationUidin interfaceRoutingHintOrBuilder- Returns:
- The operationUid.
-
setOperationUid
A session-scoped unique ID for the operation, computed client-side. Requests with the same `operation_uid` should have a shared 'shape', meaning that some fields are expected to be the same, such as the SQL query, the target table/columns (for reads) etc. Requests with the same `operation_uid` are meant to differ only in fields like keys/key ranges/query parameters, transaction IDs, etc. `operation_uid` must be non-zero for `RoutingHint` to be valid.
uint64 operation_uid = 1;- Parameters:
value- The operationUid to set.- Returns:
- This builder for chaining.
-
clearOperationUid
A session-scoped unique ID for the operation, computed client-side. Requests with the same `operation_uid` should have a shared 'shape', meaning that some fields are expected to be the same, such as the SQL query, the target table/columns (for reads) etc. Requests with the same `operation_uid` are meant to differ only in fields like keys/key ranges/query parameters, transaction IDs, etc. `operation_uid` must be non-zero for `RoutingHint` to be valid.
uint64 operation_uid = 1;- Returns:
- This builder for chaining.
-
getDatabaseId
public long getDatabaseId()The database ID of the database being accessed, see `CacheUpdate.database_id`. Should match the cache entries that were used to generate the rest of the fields in this `RoutingHint`.
uint64 database_id = 2;- Specified by:
getDatabaseIdin interfaceRoutingHintOrBuilder- Returns:
- The databaseId.
-
setDatabaseId
The database ID of the database being accessed, see `CacheUpdate.database_id`. Should match the cache entries that were used to generate the rest of the fields in this `RoutingHint`.
uint64 database_id = 2;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
The database ID of the database being accessed, see `CacheUpdate.database_id`. Should match the cache entries that were used to generate the rest of the fields in this `RoutingHint`.
uint64 database_id = 2;- Returns:
- This builder for chaining.
-
getSchemaGeneration
public com.google.protobuf.ByteString getSchemaGeneration()The schema generation of the recipe that was used to generate `key` and `limit_key`. See also `RecipeList.schema_generation`.
bytes schema_generation = 3;- Specified by:
getSchemaGenerationin interfaceRoutingHintOrBuilder- Returns:
- The schemaGeneration.
-
setSchemaGeneration
The schema generation of the recipe that was used to generate `key` and `limit_key`. See also `RecipeList.schema_generation`.
bytes schema_generation = 3;- Parameters:
value- The schemaGeneration to set.- Returns:
- This builder for chaining.
-
clearSchemaGeneration
The schema generation of the recipe that was used to generate `key` and `limit_key`. See also `RecipeList.schema_generation`.
bytes schema_generation = 3;- Returns:
- This builder for chaining.
-
getKey
public com.google.protobuf.ByteString getKey()The key / key range that this request accesses. For operations that access a single key, `key` should be set and `limit_key` should be empty. For operations that access a key range, `key` and `limit_key` should both be set, to the inclusive start and exclusive end of the range respectively. The keys are encoded in "sortable string format" (ssformat), using a `KeyRecipe` that is appropriate for the request. See `KeyRecipe` for more details.
bytes key = 4;- Specified by:
getKeyin interfaceRoutingHintOrBuilder- Returns:
- The key.
-
setKey
The key / key range that this request accesses. For operations that access a single key, `key` should be set and `limit_key` should be empty. For operations that access a key range, `key` and `limit_key` should both be set, to the inclusive start and exclusive end of the range respectively. The keys are encoded in "sortable string format" (ssformat), using a `KeyRecipe` that is appropriate for the request. See `KeyRecipe` for more details.
bytes key = 4;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key / key range that this request accesses. For operations that access a single key, `key` should be set and `limit_key` should be empty. For operations that access a key range, `key` and `limit_key` should both be set, to the inclusive start and exclusive end of the range respectively. The keys are encoded in "sortable string format" (ssformat), using a `KeyRecipe` that is appropriate for the request. See `KeyRecipe` for more details.
bytes key = 4;- Returns:
- This builder for chaining.
-
getLimitKey
public com.google.protobuf.ByteString getLimitKey()If this request targets a key range, this is the exclusive end of the range. See `key` for more details.
bytes limit_key = 5;- Specified by:
getLimitKeyin interfaceRoutingHintOrBuilder- Returns:
- The limitKey.
-
setLimitKey
If this request targets a key range, this is the exclusive end of the range. See `key` for more details.
bytes limit_key = 5;- Parameters:
value- The limitKey to set.- Returns:
- This builder for chaining.
-
clearLimitKey
If this request targets a key range, this is the exclusive end of the range. See `key` for more details.
bytes limit_key = 5;- Returns:
- This builder for chaining.
-
getGroupUid
public long getGroupUid()The group UID of the group that the client believes serves the range defined by `key` and `limit_key`. See `Range.group_uid` for more details.
uint64 group_uid = 6;- Specified by:
getGroupUidin interfaceRoutingHintOrBuilder- Returns:
- The groupUid.
-
setGroupUid
The group UID of the group that the client believes serves the range defined by `key` and `limit_key`. See `Range.group_uid` for more details.
uint64 group_uid = 6;- Parameters:
value- The groupUid to set.- Returns:
- This builder for chaining.
-
clearGroupUid
The group UID of the group that the client believes serves the range defined by `key` and `limit_key`. See `Range.group_uid` for more details.
uint64 group_uid = 6;- Returns:
- This builder for chaining.
-
getSplitId
public long getSplitId()The split ID of the split that the client believes contains the range defined by `key` and `limit_key`. See `Range.split_id` for more details.
uint64 split_id = 7;- Specified by:
getSplitIdin interfaceRoutingHintOrBuilder- Returns:
- The splitId.
-
setSplitId
The split ID of the split that the client believes contains the range defined by `key` and `limit_key`. See `Range.split_id` for more details.
uint64 split_id = 7;- Parameters:
value- The splitId to set.- Returns:
- This builder for chaining.
-
clearSplitId
The split ID of the split that the client believes contains the range defined by `key` and `limit_key`. See `Range.split_id` for more details.
uint64 split_id = 7;- Returns:
- This builder for chaining.
-
getTabletUid
public long getTabletUid()The tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request. See `Group.local_tablet_uids` and `Group.leader_tablet_uid`.
uint64 tablet_uid = 8;- Specified by:
getTabletUidin interfaceRoutingHintOrBuilder- Returns:
- The tabletUid.
-
setTabletUid
The tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request. See `Group.local_tablet_uids` and `Group.leader_tablet_uid`.
uint64 tablet_uid = 8;- Parameters:
value- The tabletUid to set.- Returns:
- This builder for chaining.
-
clearTabletUid
The tablet UID of the tablet from group `group_uid` that the client believes is best to serve this request. See `Group.local_tablet_uids` and `Group.leader_tablet_uid`.
uint64 tablet_uid = 8;- Returns:
- This builder for chaining.
-
getSkippedTabletUidList
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;- Specified by:
getSkippedTabletUidListin interfaceRoutingHintOrBuilder
-
getSkippedTabletUidCount
public int getSkippedTabletUidCount()If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;- Specified by:
getSkippedTabletUidCountin interfaceRoutingHintOrBuilder
-
getSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;- Specified by:
getSkippedTabletUidin interfaceRoutingHintOrBuilder
-
setSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
setSkippedTabletUid
public RoutingHint.Builder setSkippedTabletUid(int index, RoutingHint.SkippedTablet.Builder builderForValue) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addSkippedTabletUid
public RoutingHint.Builder addSkippedTabletUid(int index, RoutingHint.SkippedTablet.Builder builderForValue) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addAllSkippedTabletUid
public RoutingHint.Builder addAllSkippedTabletUid(Iterable<? extends RoutingHint.SkippedTablet> values) If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
clearSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
removeSkippedTabletUid
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
getSkippedTabletUidBuilder
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
getSkippedTabletUidOrBuilder
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;- Specified by:
getSkippedTabletUidOrBuilderin interfaceRoutingHintOrBuilder
-
getSkippedTabletUidOrBuilderList
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9;- Specified by:
getSkippedTabletUidOrBuilderListin interfaceRoutingHintOrBuilder
-
addSkippedTabletUidBuilder
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
addSkippedTabletUidBuilder
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
getSkippedTabletUidBuilderList
If the client had multiple options for tablet selection, and some of its first choices were unhealthy (e.g., the server is unreachable, or `Tablet.skip` is true), this field will contain the tablet UIDs of those tablets, with their incarnations. The server may include a `CacheUpdate` with new locations for those tablets.
repeated .google.spanner.v1.RoutingHint.SkippedTablet skipped_tablet_uid = 9; -
getClientLocation
If present, the client's current location. This should be the name of a Google Cloud zone or region, such as "us-central1". If absent, the client's location will be assumed to be the same as the location of the server the client ends up connected to. Locations are primarily valuable for clients that connect from regions other than the ones that contain the Spanner database.
string client_location = 10;- Specified by:
getClientLocationin interfaceRoutingHintOrBuilder- Returns:
- The clientLocation.
-
getClientLocationBytes
public com.google.protobuf.ByteString getClientLocationBytes()If present, the client's current location. This should be the name of a Google Cloud zone or region, such as "us-central1". If absent, the client's location will be assumed to be the same as the location of the server the client ends up connected to. Locations are primarily valuable for clients that connect from regions other than the ones that contain the Spanner database.
string client_location = 10;- Specified by:
getClientLocationBytesin interfaceRoutingHintOrBuilder- Returns:
- The bytes for clientLocation.
-
setClientLocation
If present, the client's current location. This should be the name of a Google Cloud zone or region, such as "us-central1". If absent, the client's location will be assumed to be the same as the location of the server the client ends up connected to. Locations are primarily valuable for clients that connect from regions other than the ones that contain the Spanner database.
string client_location = 10;- Parameters:
value- The clientLocation to set.- Returns:
- This builder for chaining.
-
clearClientLocation
If present, the client's current location. This should be the name of a Google Cloud zone or region, such as "us-central1". If absent, the client's location will be assumed to be the same as the location of the server the client ends up connected to. Locations are primarily valuable for clients that connect from regions other than the ones that contain the Spanner database.
string client_location = 10;- Returns:
- This builder for chaining.
-
setClientLocationBytes
If present, the client's current location. This should be the name of a Google Cloud zone or region, such as "us-central1". If absent, the client's location will be assumed to be the same as the location of the server the client ends up connected to. Locations are primarily valuable for clients that connect from regions other than the ones that contain the Spanner database.
string client_location = 10;- Parameters:
value- The bytes for clientLocation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RoutingHint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-
mergeUnknownFields
public final RoutingHint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RoutingHint.Builder>
-