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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllKeys(Iterable<? extends ListValue> values)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.protobuf.ListValue>
|
Returns
addAllRanges(Iterable<? extends KeyRange> values)
public KeySet.Builder addAllRanges(Iterable<? extends KeyRange> values)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.spanner.v1.KeyRange>
|
Returns
addKeys(ListValue value)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
addKeys(ListValue.Builder builderForValue)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
addKeys(int index, ListValue value)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameters
Returns
addKeys(int index, ListValue.Builder builderForValue)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameters
Returns
addKeysBuilder()
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
addKeysBuilder(int index)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
addRanges(KeyRange value)
public KeySet.Builder addRanges(KeyRange value)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
addRanges(KeyRange.Builder builderForValue)
public KeySet.Builder addRanges(KeyRange.Builder builderForValue)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
addRanges(int index, KeyRange value)
public KeySet.Builder addRanges(int index, KeyRange value)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameters
Returns
addRanges(int index, KeyRange.Builder builderForValue)
public KeySet.Builder addRanges(int index, KeyRange.Builder builderForValue)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameters
Returns
addRangesBuilder()
public KeyRange.Builder addRangesBuilder()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
addRangesBuilder(int index)
public KeyRange.Builder addRangesBuilder(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeySet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public KeySet buildPartial()
Returns
clear()
public KeySet.Builder clear()
Returns
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public KeySet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public KeySet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRanges()
public KeySet.Builder clearRanges()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
clone()
public KeySet.Builder clone()
Returns
Overrides
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;
Returns
getDefaultInstanceForType()
public KeySet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKeys(int index)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
getKeysBuilder(int index)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
getKeysBuilderList()
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
getKeysList()
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
getKeysOrBuilder(int index)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
getKeysOrBuilderList()
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.
repeated .google.protobuf.ListValue keys = 1;
Returns
Type | Description |
List<? extends com.google.protobuf.ListValueOrBuilder> | |
getRanges(int index)
public KeyRange getRanges(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
getRangesBuilder(int index)
public KeyRange.Builder getRangesBuilder(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
getRangesBuilderList()
public List<KeyRange.Builder> getRangesBuilderList()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
getRangesCount()
public int getRangesCount()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
getRangesList()
public List<KeyRange> getRangesList()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
getRangesOrBuilder(int index)
public KeyRangeOrBuilder getRangesOrBuilder(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
getRangesOrBuilderList()
public List<? extends KeyRangeOrBuilder> getRangesOrBuilderList()
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Returns
Type | Description |
List<? extends com.google.spanner.v1.KeyRangeOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public KeySet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public KeySet.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(KeySet other)
public KeySet.Builder mergeFrom(KeySet other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeySet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeKeys(int index)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameter
Returns
removeRanges(int index)
public KeySet.Builder removeRanges(int index)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameter
Returns
setAll(boolean value)
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;
Parameter
Name | Description |
value | boolean
The all to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public KeySet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKeys(int index, ListValue value)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameters
Returns
setKeys(int index, ListValue.Builder builderForValue)
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.
repeated .google.protobuf.ListValue keys = 1;
Parameters
Returns
setRanges(int index, KeyRange value)
public KeySet.Builder setRanges(int index, KeyRange value)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameters
Returns
setRanges(int index, KeyRange.Builder builderForValue)
public KeySet.Builder setRanges(int index, KeyRange.Builder builderForValue)
A list of key ranges. See KeyRange for more information about
key range specifications.
repeated .google.spanner.v1.KeyRange ranges = 2;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeySet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KeySet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides