public static final class KeySet.Builder extends com.google.protobuf.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(Iterable<? extends com.google.protobuf.ListValue> values)
A list of specific keys.
|
KeySet.Builder |
addAllRanges(Iterable<? extends KeyRange> values)
A list of key ranges.
|
KeySet.Builder |
addKeys(int index,
com.google.protobuf.ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
addKeys(int index,
com.google.protobuf.ListValue value)
A list of specific keys.
|
KeySet.Builder |
addKeys(com.google.protobuf.ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
addKeys(com.google.protobuf.ListValue value)
A list of specific keys.
|
com.google.protobuf.ListValue.Builder |
addKeysBuilder()
A list of specific keys.
|
com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.Descriptors.FieldDescriptor field) |
KeySet.Builder |
clearKeys()
A list of specific keys.
|
KeySet.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ListValue |
getKeys(int index)
A list of specific keys.
|
com.google.protobuf.ListValue.Builder |
getKeysBuilder(int index)
A list of specific keys.
|
List<com.google.protobuf.ListValue.Builder> |
getKeysBuilderList()
A list of specific keys.
|
int |
getKeysCount()
A list of specific keys.
|
List<com.google.protobuf.ListValue> |
getKeysList()
A list of specific keys.
|
com.google.protobuf.ListValueOrBuilder |
getKeysOrBuilder(int index)
A list of specific keys.
|
List<? extends com.google.protobuf.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.
|
List<KeyRange.Builder> |
getRangesBuilderList()
A list of key ranges.
|
int |
getRangesCount()
A list of key ranges.
|
List<KeyRange> |
getRangesList()
A list of key ranges.
|
KeyRangeOrBuilder |
getRangesOrBuilder(int index)
A list of key ranges.
|
List<? extends KeyRangeOrBuilder> |
getRangesOrBuilderList()
A list of key ranges.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KeySet.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeySet.Builder |
mergeFrom(KeySet other) |
KeySet.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeySet.Builder |
mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeySet.Builder |
setKeys(int index,
com.google.protobuf.ListValue.Builder builderForValue)
A list of specific keys.
|
KeySet.Builder |
setKeys(int index,
com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
KeySet.Builder |
setUnknownFields(com.google.protobuf.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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic KeySet build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic KeySet buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic KeySet.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(KeySet other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public KeySet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeySet.Builder>IOExceptionpublic List<com.google.protobuf.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 com.google.protobuf.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, com.google.protobuf.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, com.google.protobuf.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(com.google.protobuf.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, com.google.protobuf.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(com.google.protobuf.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, com.google.protobuf.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(Iterable<? extends com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 List<? extends com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 List<com.google.protobuf.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 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(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 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 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;value - The all to set.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>public final KeySet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>Copyright © 2020 Google LLC. All rights reserved.