public final class KeySet extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_FIELD_NUMBER |
static int |
KEYS_FIELD_NUMBER |
static int |
RANGES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAll()
For convenience `all` can be set to `true` to indicate that this
`KeySet` matches all keys in the table or index.
|
static KeySet |
getDefaultInstance() |
KeySet |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ListValue |
getKeys(int index)
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.
|
com.google.protobuf.Parser<KeySet> |
getParserForType() |
KeyRange |
getRanges(int index)
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static KeySet.Builder |
newBuilder() |
static KeySet.Builder |
newBuilder(KeySet prototype) |
KeySet.Builder |
newBuilderForType() |
protected KeySet.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static KeySet |
parseDelimitedFrom(InputStream input) |
static KeySet |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeySet |
parseFrom(byte[] data) |
static KeySet |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeySet |
parseFrom(ByteBuffer data) |
static KeySet |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeySet |
parseFrom(com.google.protobuf.ByteString data) |
static KeySet |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeySet |
parseFrom(com.google.protobuf.CodedInputStream input) |
static KeySet |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeySet |
parseFrom(InputStream input) |
static KeySet |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<KeySet> |
parser() |
KeySet.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int KEYS_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER
public static final int ALL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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<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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static KeySet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeySet parseFrom(InputStream input) throws IOException
IOExceptionpublic static KeySet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeySet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static KeySet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeySet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static KeySet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic KeySet.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static KeySet.Builder newBuilder()
public static KeySet.Builder newBuilder(KeySet prototype)
public KeySet.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected KeySet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static KeySet getDefaultInstance()
public static com.google.protobuf.Parser<KeySet> parser()
public com.google.protobuf.Parser<KeySet> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public KeySet getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.