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(Iterable<? extends ListValue> values)
A list of specific keys.
|
KeySet.Builder |
addAllRanges(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,
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.
|
List<ListValue.Builder> |
getKeysBuilderList()
A list of specific keys.
|
int |
getKeysCount()
A list of specific keys.
|
List<ListValue> |
getKeysList()
A list of specific keys.
|
ListValueOrBuilder |
getKeysOrBuilder(int index)
A list of specific keys.
|
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.
|
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 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,
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,
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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<KeySet.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public KeySet build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public KeySet buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public KeySet.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<KeySet.Builder>
public KeySet.Builder mergeFrom(KeySet other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<KeySet.Builder>
public KeySet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<KeySet.Builder>
IOException
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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(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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 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 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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 KeySetOrBuilder
public 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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<KeySet.Builder>
public final KeySet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<KeySet.Builder>
Copyright © 2022 Google LLC. All rights reserved.