public final class KeySet extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
KeySet.Builder
`KeySet` defines a collection of Cloud Spanner keys and/or key ranges.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ALL_FIELD_NUMBER |
static int |
KEYS_FIELD_NUMBER |
static int |
RANGES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int KEYS_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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<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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static KeySet parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KeySet parseFrom(InputStream input) throws IOException
IOException
public static KeySet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KeySet parseDelimitedFrom(InputStream input) throws IOException
IOException
public static KeySet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KeySet parseFrom(CodedInputStream input) throws IOException
IOException
public static KeySet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public KeySet.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static KeySet.Builder newBuilder()
public static KeySet.Builder newBuilder(KeySet prototype)
public KeySet.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected KeySet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static KeySet getDefaultInstance()
public Parser<KeySet> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public KeySet getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.