Package com.google.spanner.executor.v1
Class KeyRange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
com.google.spanner.executor.v1.KeyRange.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,KeyRangeOrBuilder,Cloneable
- Enclosing class:
- KeyRange
public static final class KeyRange.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
implements KeyRangeOrBuilder
KeyRange represents a range of rows in a table or index. A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key. Keys are represented by "ValueList", where the ith value in the list corresponds to the ith component of the table or index primary key.Protobuf type
google.spanner.executor.v1.KeyRange-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The end key of this KeyRange.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) "start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key."start" and "limit" type for this KeyRange.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLimit()The end key of this KeyRange.The end key of this KeyRange.The end key of this KeyRange.getStart()"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key."start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key."start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key.getType()"start" and "limit" type for this KeyRange.int"start" and "limit" type for this KeyRange.booleanhasLimit()The end key of this KeyRange.booleanhasStart()"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key.booleanhasType()"start" and "limit" type for this KeyRange.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLimit(ValueList value) The end key of this KeyRange.mergeStart(ValueList value) "start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key.final KeyRange.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The end key of this KeyRange.setLimit(ValueList.Builder builderForValue) The end key of this KeyRange.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) "start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key.setStart(ValueList.Builder builderForValue) "start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key.setType(KeyRange.Type value) "start" and "limit" type for this KeyRange.setTypeValue(int value) "start" and "limit" type for this KeyRange.final KeyRange.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<KeyRange.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<KeyRange.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<KeyRange.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<KeyRange.Builder>
-
setField
public KeyRange.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<KeyRange.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
-
setRepeatedField
public KeyRange.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<KeyRange.Builder>
-
addRepeatedField
public KeyRange.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<KeyRange.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeyRange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
-
mergeFrom
public KeyRange.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<KeyRange.Builder>- Throws:
IOException
-
hasStart
public boolean hasStart()"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1;- Specified by:
hasStartin interfaceKeyRangeOrBuilder- Returns:
- Whether the start field is set.
-
getStart
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1;- Specified by:
getStartin interfaceKeyRangeOrBuilder- Returns:
- The start.
-
setStart
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1; -
setStart
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1; -
mergeStart
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1; -
clearStart
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1; -
getStartBuilder
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1; -
getStartOrBuilder
"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
.google.spanner.executor.v1.ValueList start = 1;- Specified by:
getStartOrBuilderin interfaceKeyRangeOrBuilder
-
hasLimit
public boolean hasLimit()The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2;- Specified by:
hasLimitin interfaceKeyRangeOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2;- Specified by:
getLimitin interfaceKeyRangeOrBuilder- Returns:
- The limit.
-
setLimit
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2; -
setLimit
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2; -
mergeLimit
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2; -
clearLimit
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2; -
getLimitBuilder
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2; -
getLimitOrBuilder
The end key of this KeyRange.
.google.spanner.executor.v1.ValueList limit = 2;- Specified by:
getLimitOrBuilderin interfaceKeyRangeOrBuilder
-
hasType
public boolean hasType()"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Specified by:
hasTypein interfaceKeyRangeOrBuilder- Returns:
- Whether the type field is set.
-
getTypeValue
public int getTypeValue()"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Specified by:
getTypeValuein interfaceKeyRangeOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Specified by:
getTypein interfaceKeyRangeOrBuilder- Returns:
- The type.
-
setType
"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
"start" and "limit" type for this KeyRange.
optional .google.spanner.executor.v1.KeyRange.Type type = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyRange.Builder>
-