public sealed class KeySet : IMessage<KeySet>, IEquatable<KeySet>, IDeepCloneable<KeySet>, IBufferMessage, IMessage
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.
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.
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].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[[["This webpage details the `KeySet` class within the `Google.Cloud.Spanner.V1` namespace, version 3.7.0 of the .NET library, with links to older and newer version references available."],["The `KeySet` class is designed to represent a collection of Cloud Spanner keys or key ranges, where all keys are expected to belong to the same table or index."],["`KeySet` offers an `All` property to quickly indicate that all keys in a table or index should be matched, a `Keys` property to specify a list of specific keys, and a `Ranges` property to define key ranges."],["`KeySet` implements several interfaces like IMessage, IEquatable, IDeepCloneable, IBufferMessage, allowing it to be used within Google's Protobuf framework."],["Constructors for `KeySet` include a default constructor, `KeySet()`, and a copy constructor, `KeySet(KeySet other)`, which allows for the creation of a new `KeySet` instance based on an existing one."]]],[]]