Package com.google.spanner.v1
Class KeySet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
- com.google.spanner.v1.KeySet.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,KeySetOrBuilder,Cloneable
- Enclosing class:
- KeySet
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 typegoogle.spanner.v1.KeySet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeySet.BuilderaddAllKeys(Iterable<? extends com.google.protobuf.ListValue> values)A list of specific keys.KeySet.BuilderaddAllRanges(Iterable<? extends KeyRange> values)A list of key ranges.KeySet.BuilderaddKeys(int index, com.google.protobuf.ListValue value)A list of specific keys.KeySet.BuilderaddKeys(int index, com.google.protobuf.ListValue.Builder builderForValue)A list of specific keys.KeySet.BuilderaddKeys(com.google.protobuf.ListValue value)A list of specific keys.KeySet.BuilderaddKeys(com.google.protobuf.ListValue.Builder builderForValue)A list of specific keys.com.google.protobuf.ListValue.BuilderaddKeysBuilder()A list of specific keys.com.google.protobuf.ListValue.BuilderaddKeysBuilder(int index)A list of specific keys.KeySet.BuilderaddRanges(int index, KeyRange value)A list of key ranges.KeySet.BuilderaddRanges(int index, KeyRange.Builder builderForValue)A list of key ranges.KeySet.BuilderaddRanges(KeyRange value)A list of key ranges.KeySet.BuilderaddRanges(KeyRange.Builder builderForValue)A list of key ranges.KeyRange.BuilderaddRangesBuilder()A list of key ranges.KeyRange.BuilderaddRangesBuilder(int index)A list of key ranges.KeySet.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)KeySetbuild()KeySetbuildPartial()KeySet.Builderclear()KeySet.BuilderclearAll()For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index.KeySet.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)KeySet.BuilderclearKeys()A list of specific keys.KeySet.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)KeySet.BuilderclearRanges()A list of key ranges.KeySet.Builderclone()booleangetAll()For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index.KeySetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ListValuegetKeys(int index)A list of specific keys.com.google.protobuf.ListValue.BuildergetKeysBuilder(int index)A list of specific keys.List<com.google.protobuf.ListValue.Builder>getKeysBuilderList()A list of specific keys.intgetKeysCount()A list of specific keys.List<com.google.protobuf.ListValue>getKeysList()A list of specific keys.com.google.protobuf.ListValueOrBuildergetKeysOrBuilder(int index)A list of specific keys.List<? extends com.google.protobuf.ListValueOrBuilder>getKeysOrBuilderList()A list of specific keys.KeyRangegetRanges(int index)A list of key ranges.KeyRange.BuildergetRangesBuilder(int index)A list of key ranges.List<KeyRange.Builder>getRangesBuilderList()A list of key ranges.intgetRangesCount()A list of key ranges.List<KeyRange>getRangesList()A list of key ranges.KeyRangeOrBuildergetRangesOrBuilder(int index)A list of key ranges.List<? extends KeyRangeOrBuilder>getRangesOrBuilderList()A list of key ranges.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()KeySet.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)KeySet.BuildermergeFrom(com.google.protobuf.Message other)KeySet.BuildermergeFrom(KeySet other)KeySet.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)KeySet.BuilderremoveKeys(int index)A list of specific keys.KeySet.BuilderremoveRanges(int index)A list of key ranges.KeySet.BuildersetAll(boolean value)For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index.KeySet.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)KeySet.BuildersetKeys(int index, com.google.protobuf.ListValue value)A list of specific keys.KeySet.BuildersetKeys(int index, com.google.protobuf.ListValue.Builder builderForValue)A list of specific keys.KeySet.BuildersetRanges(int index, KeyRange value)A list of key ranges.KeySet.BuildersetRanges(int index, KeyRange.Builder builderForValue)A list of key ranges.KeySet.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)KeySet.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
clear
public KeySet.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
getDefaultInstanceForType
public KeySet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public KeySet build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public KeySet buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public KeySet.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
setField
public KeySet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
clearField
public KeySet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
clearOneof
public KeySet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
setRepeatedField
public KeySet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
addRepeatedField
public KeySet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
mergeFrom
public KeySet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeySet.Builder>
-
mergeFrom
public KeySet.Builder mergeFrom(KeySet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
mergeFrom
public KeySet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeySet.Builder>- Throws:
IOException
-
getKeysList
public 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;- Specified by:
getKeysListin interfaceKeySetOrBuilder
-
getKeysCount
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;- Specified by:
getKeysCountin interfaceKeySetOrBuilder
-
getKeys
public 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;- Specified by:
getKeysin interfaceKeySetOrBuilder
-
setKeys
public 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;
-
setKeys
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;
-
addKeys
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;
-
addKeys
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;
-
addKeys
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;
-
addKeys
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;
-
addAllKeys
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;
-
clearKeys
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;
-
removeKeys
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;
-
getKeysBuilder
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;
-
getKeysOrBuilder
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;- Specified by:
getKeysOrBuilderin interfaceKeySetOrBuilder
-
getKeysOrBuilderList
public 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;- Specified by:
getKeysOrBuilderListin interfaceKeySetOrBuilder
-
addKeysBuilder
public 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;
-
addKeysBuilder
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;
-
getKeysBuilderList
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;
-
getRangesList
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;- Specified by:
getRangesListin interfaceKeySetOrBuilder
-
getRangesCount
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;- Specified by:
getRangesCountin interfaceKeySetOrBuilder
-
getRanges
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;- Specified by:
getRangesin interfaceKeySetOrBuilder
-
setRanges
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;
-
setRanges
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;
-
addRanges
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;
-
addRanges
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;
-
addRanges
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;
-
addRanges
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;
-
addAllRanges
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;
-
clearRanges
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;
-
removeRanges
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;
-
getRangesBuilder
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;
-
getRangesOrBuilder
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;- Specified by:
getRangesOrBuilderin interfaceKeySetOrBuilder
-
getRangesOrBuilderList
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;- Specified by:
getRangesOrBuilderListin interfaceKeySetOrBuilder
-
addRangesBuilder
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;
-
addRangesBuilder
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;
-
getRangesBuilderList
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;
-
getAll
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;- Specified by:
getAllin interfaceKeySetOrBuilder- Returns:
- The all.
-
setAll
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;- Parameters:
value- The all to set.- Returns:
- This builder for chaining.
-
clearAll
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final KeySet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
mergeUnknownFields
public final KeySet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeySet.Builder>
-
-