Package com.google.spanner.v1
Class Range.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
com.google.spanner.v1.Range.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RangeOrBuilder,Cloneable
- Enclosing class:
- Range
public static final class Range.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
implements RangeOrBuilder
A `Range` represents a range of keys in a database. The keys themselves are encoded in "sortable string format", also known as ssformat. Consult Spanner's open source client libraries for details on the encoding. Each range represents a contiguous range of rows, possibly from multiple tables/indexes. Each range is associated with a single paxos group (known as a "group" throughout this API), a split (which names the exact range within the group), and a generation that can be used to determine whether a given `Range` represents a newer or older location for the key range.Protobuf type
google.spanner.v1.Range-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) `generation` indicates the freshness of the range information contained in this proto.The UID of the paxos group where this range is stored.The limit key of the range, exclusive.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A group can store multiple ranges of keys.The start key of the range, inclusive.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteString`generation` indicates the freshness of the range information contained in this proto.longThe UID of the paxos group where this range is stored.com.google.protobuf.ByteStringThe limit key of the range, exclusive.longA group can store multiple ranges of keys.com.google.protobuf.ByteStringThe start key of the range, inclusive.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Range.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setGeneration(com.google.protobuf.ByteString value) `generation` indicates the freshness of the range information contained in this proto.setGroupUid(long value) The UID of the paxos group where this range is stored.setLimitKey(com.google.protobuf.ByteString value) The limit key of the range, exclusive.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSplitId(long value) A group can store multiple ranges of keys.setStartKey(com.google.protobuf.ByteString value) The start key of the range, inclusive.final Range.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<Range.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<Range.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<Range.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<Range.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-
setRepeatedField
public Range.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<Range.Builder>
-
addRepeatedField
public Range.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<Range.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Range.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-
mergeFrom
public Range.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<Range.Builder>- Throws:
IOException
-
getStartKey
public com.google.protobuf.ByteString getStartKey()The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;- Specified by:
getStartKeyin interfaceRangeOrBuilder- Returns:
- The startKey.
-
setStartKey
The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;- Parameters:
value- The startKey to set.- Returns:
- This builder for chaining.
-
clearStartKey
The start key of the range, inclusive. Encoded in "sortable string format" (ssformat).
bytes start_key = 1;- Returns:
- This builder for chaining.
-
getLimitKey
public com.google.protobuf.ByteString getLimitKey()The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;- Specified by:
getLimitKeyin interfaceRangeOrBuilder- Returns:
- The limitKey.
-
setLimitKey
The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;- Parameters:
value- The limitKey to set.- Returns:
- This builder for chaining.
-
clearLimitKey
The limit key of the range, exclusive. Encoded in "sortable string format" (ssformat).
bytes limit_key = 2;- Returns:
- This builder for chaining.
-
getGroupUid
public long getGroupUid()The UID of the paxos group where this range is stored. UIDs are unique within the database. References `Group.group_uid`.
uint64 group_uid = 3;- Specified by:
getGroupUidin interfaceRangeOrBuilder- Returns:
- The groupUid.
-
setGroupUid
The UID of the paxos group where this range is stored. UIDs are unique within the database. References `Group.group_uid`.
uint64 group_uid = 3;- Parameters:
value- The groupUid to set.- Returns:
- This builder for chaining.
-
clearGroupUid
The UID of the paxos group where this range is stored. UIDs are unique within the database. References `Group.group_uid`.
uint64 group_uid = 3;- Returns:
- This builder for chaining.
-
getSplitId
public long getSplitId()A group can store multiple ranges of keys. Each key range is named by an ID (the split ID). Within a group, split IDs are unique. The `split_id` names the exact split in `group_uid` where this range is stored.
uint64 split_id = 4;- Specified by:
getSplitIdin interfaceRangeOrBuilder- Returns:
- The splitId.
-
setSplitId
A group can store multiple ranges of keys. Each key range is named by an ID (the split ID). Within a group, split IDs are unique. The `split_id` names the exact split in `group_uid` where this range is stored.
uint64 split_id = 4;- Parameters:
value- The splitId to set.- Returns:
- This builder for chaining.
-
clearSplitId
A group can store multiple ranges of keys. Each key range is named by an ID (the split ID). Within a group, split IDs are unique. The `split_id` names the exact split in `group_uid` where this range is stored.
uint64 split_id = 4;- Returns:
- This builder for chaining.
-
getGeneration
public com.google.protobuf.ByteString getGeneration()`generation` indicates the freshness of the range information contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Range` corresponding to A is newer than the `Range` corresponding to B, and should be used preferentially.
bytes generation = 5;- Specified by:
getGenerationin interfaceRangeOrBuilder- Returns:
- The generation.
-
setGeneration
`generation` indicates the freshness of the range information contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Range` corresponding to A is newer than the `Range` corresponding to B, and should be used preferentially.
bytes generation = 5;- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
clearGeneration
`generation` indicates the freshness of the range information contained in this proto. Generations can be compared lexicographically; if generation A is greater than generation B, then the `Range` corresponding to A is newer than the `Range` corresponding to B, and should be used preferentially.
bytes generation = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Range.Builder>
-