public static final class KeySet.Builder extends GeneratedMessageV3.Builder<KeySet.Builder> implements KeySetOrBuilder
`KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All the keys are expected to be in the same table or index. The keys need not be sorted in any particular way. If the same key is specified multiple times in the set (for example if two ranges, two keys, or a key and a range overlap), Cloud Spanner behaves as if the key were only specified once.Protobuf type
google.spanner.v1.KeySet| Modifier and Type | Method and Description |
|---|---|
KeySet.Builder |
addAllKeys(java.lang.Iterable<? extends ListValue> values)
A list of specific keys.
|
KeySet.Builder |
addAllRanges(java.lang.Iterable<? extends KeyRange> values)
A list of key ranges.
|
KeySet.Builder |
addKeys(int index,
ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
addKeys(int index,
ListValue value)
A list of specific keys.
|
KeySet.Builder |
addKeys(ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
addKeys(ListValue value)
A list of specific keys.
|
ListValue.Builder |
addKeysBuilder()
A list of specific keys.
|
ListValue.Builder |
addKeysBuilder(int index)
A list of specific keys.
|
KeySet.Builder |
addRanges(int index,
KeyRange.Builder builderForValue)
A list of key ranges.
|
KeySet.Builder |
addRanges(int index,
KeyRange value)
A list of key ranges.
|
KeySet.Builder |
addRanges(KeyRange.Builder builderForValue)
A list of key ranges.
|
KeySet.Builder |
addRanges(KeyRange value)
A list of key ranges.
|
KeyRange.Builder |
addRangesBuilder()
A list of key ranges.
|
KeyRange.Builder |
addRangesBuilder(int index)
A list of key ranges.
|
KeySet.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
KeySet |
build() |
KeySet |
buildPartial() |
KeySet.Builder |
clear() |
KeySet.Builder |
clearAll()
For convenience `all` can be set to `true` to indicate that this
`KeySet` matches all keys in the table or index.
|
KeySet.Builder |
clearField(Descriptors.FieldDescriptor field) |
KeySet.Builder |
clearKeys()
A list of specific keys.
|
KeySet.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
KeySet.Builder |
clearRanges()
A list of key ranges.
|
KeySet.Builder |
clone() |
boolean |
getAll()
For convenience `all` can be set to `true` to indicate that this
`KeySet` matches all keys in the table or index.
|
KeySet |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
ListValue |
getKeys(int index)
A list of specific keys.
|
ListValue.Builder |
getKeysBuilder(int index)
A list of specific keys.
|
java.util.List<ListValue.Builder> |
getKeysBuilderList()
A list of specific keys.
|
int |
getKeysCount()
A list of specific keys.
|
java.util.List<ListValue> |
getKeysList()
A list of specific keys.
|
ListValueOrBuilder |
getKeysOrBuilder(int index)
A list of specific keys.
|
java.util.List<? extends ListValueOrBuilder> |
getKeysOrBuilderList()
A list of specific keys.
|
KeyRange |
getRanges(int index)
A list of key ranges.
|
KeyRange.Builder |
getRangesBuilder(int index)
A list of key ranges.
|
java.util.List<KeyRange.Builder> |
getRangesBuilderList()
A list of key ranges.
|
int |
getRangesCount()
A list of key ranges.
|
java.util.List<KeyRange> |
getRangesList()
A list of key ranges.
|
KeyRangeOrBuilder |
getRangesOrBuilder(int index)
A list of key ranges.
|
java.util.List<? extends KeyRangeOrBuilder> |
getRangesOrBuilderList()
A list of key ranges.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeySet.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
KeySet.Builder |
mergeFrom(KeySet other) |
KeySet.Builder |
mergeFrom(Message other) |
KeySet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
KeySet.Builder |
removeKeys(int index)
A list of specific keys.
|
KeySet.Builder |
removeRanges(int index)
A list of key ranges.
|
KeySet.Builder |
setAll(boolean value)
For convenience `all` can be set to `true` to indicate that this
`KeySet` matches all keys in the table or index.
|
KeySet.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
KeySet.Builder |
setKeys(int index,
ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
setKeys(int index,
ListValue value)
A list of specific keys.
|
KeySet.Builder |
setRanges(int index,
KeyRange.Builder builderForValue)
A list of key ranges.
|
KeySet.Builder |
setRanges(int index,
KeyRange value)
A list of key ranges.
|
KeySet.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
KeySet.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<KeySet.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic KeySet build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic KeySet buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic KeySet.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(KeySet other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<KeySet.Builder>java.io.IOExceptionpublic java.util.List<ListValue> getKeysList()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;getKeysList in interface KeySetOrBuilderpublic int getKeysCount()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;getKeysCount in interface KeySetOrBuilderpublic ListValue getKeys(int index)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;getKeys in interface KeySetOrBuilderpublic KeySet.Builder setKeys(int index, ListValue value)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder setKeys(int index, ListValue.Builder builderForValue)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder addKeys(ListValue value)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder addKeys(int index, ListValue value)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder addKeys(ListValue.Builder builderForValue)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder addKeys(int index, ListValue.Builder builderForValue)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder addAllKeys(java.lang.Iterable<? extends ListValue> values)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder clearKeys()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public KeySet.Builder removeKeys(int index)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public ListValue.Builder getKeysBuilder(int index)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public ListValueOrBuilder getKeysOrBuilder(int index)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;getKeysOrBuilder in interface KeySetOrBuilderpublic java.util.List<? extends ListValueOrBuilder> getKeysOrBuilderList()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;getKeysOrBuilderList in interface KeySetOrBuilderpublic ListValue.Builder addKeysBuilder()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public ListValue.Builder addKeysBuilder(int index)
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public java.util.List<ListValue.Builder> getKeysBuilderList()
A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue keys = 1;public java.util.List<KeyRange> getRangesList()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;getRangesList in interface KeySetOrBuilderpublic int getRangesCount()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;getRangesCount in interface KeySetOrBuilderpublic KeyRange getRanges(int index)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;getRanges in interface KeySetOrBuilderpublic KeySet.Builder setRanges(int index, KeyRange value)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder setRanges(int index, KeyRange.Builder builderForValue)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder addRanges(KeyRange value)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder addRanges(int index, KeyRange value)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder addRanges(KeyRange.Builder builderForValue)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder addRanges(int index, KeyRange.Builder builderForValue)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder addAllRanges(java.lang.Iterable<? extends KeyRange> values)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder clearRanges()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeySet.Builder removeRanges(int index)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeyRange.Builder getRangesBuilder(int index)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeyRangeOrBuilder getRangesOrBuilder(int index)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;getRangesOrBuilder in interface KeySetOrBuilderpublic java.util.List<? extends KeyRangeOrBuilder> getRangesOrBuilderList()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;getRangesOrBuilderList in interface KeySetOrBuilderpublic KeyRange.Builder addRangesBuilder()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public KeyRange.Builder addRangesBuilder(int index)
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public java.util.List<KeyRange.Builder> getRangesBuilderList()
A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;public boolean getAll()
For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index. Note that any keys specified in `keys` or `ranges` are only yielded once.
bool all = 3;getAll in interface KeySetOrBuilderpublic KeySet.Builder setAll(boolean value)
For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index. Note that any keys specified in `keys` or `ranges` are only yielded once.
bool all = 3;public KeySet.Builder clearAll()
For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index. Note that any keys specified in `keys` or `ranges` are only yielded once.
bool all = 3;public final KeySet.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<KeySet.Builder>public final KeySet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<KeySet.Builder>