public static final class KeySet.Builder extends GeneratedMessageV3.Builder<KeySet.Builder> implements KeySetOrBuilder
KeySet defines a collection of Spanner keys and/or key ranges. All
the keys are expected to be in the same table. The keys need not be
sorted in any particular way.
Protobuf type google.spanner.executor.v1.KeySet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addAllPoint(Iterable<? extends ValueList> values)
public KeySet.Builder addAllPoint(Iterable<? extends ValueList> 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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.spanner.executor.v1.ValueList>
|
addAllRange(Iterable<? extends KeyRange> values)
public KeySet.Builder addAllRange(Iterable<? extends KeyRange> values)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.spanner.executor.v1.KeyRange>
|
addPoint(ValueList value)
public KeySet.Builder addPoint(ValueList 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.
repeated .google.spanner.executor.v1.ValueList point = 1;
addPoint(ValueList.Builder builderForValue)
public KeySet.Builder addPoint(ValueList.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.
repeated .google.spanner.executor.v1.ValueList point = 1;
addPoint(int index, ValueList value)
public KeySet.Builder addPoint(int index, ValueList 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.
repeated .google.spanner.executor.v1.ValueList point = 1;
addPoint(int index, ValueList.Builder builderForValue)
public KeySet.Builder addPoint(int index, ValueList.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.
repeated .google.spanner.executor.v1.ValueList point = 1;
addPointBuilder()
public ValueList.Builder addPointBuilder()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
addPointBuilder(int index)
public ValueList.Builder addPointBuilder(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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
index |
int
|
addRange(KeyRange value)
public KeySet.Builder addRange(KeyRange value)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
value |
KeyRange
|
addRange(KeyRange.Builder builderForValue)
public KeySet.Builder addRange(KeyRange.Builder builderForValue)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
addRange(int index, KeyRange value)
public KeySet.Builder addRange(int index, KeyRange value)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
addRange(int index, KeyRange.Builder builderForValue)
public KeySet.Builder addRange(int index, KeyRange.Builder builderForValue)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
addRangeBuilder()
public KeyRange.Builder addRangeBuilder()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
addRangeBuilder(int index)
public KeyRange.Builder addRangeBuilder(int index)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeySet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
KeySet |
|
buildPartial()
public KeySet buildPartial()
Returns |
Type |
Description |
KeySet |
|
clear()
public KeySet.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public KeySet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KeySet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPoint()
public KeySet.Builder clearPoint()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
clearRange()
public KeySet.Builder clearRange()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
clone()
public KeySet.Builder clone()
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 |
Type |
Description |
boolean |
The all.
|
getDefaultInstanceForType()
public KeySet getDefaultInstanceForType()
Returns |
Type |
Description |
KeySet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPoint(int index)
public ValueList getPoint(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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
index |
int
|
getPointBuilder(int index)
public ValueList.Builder getPointBuilder(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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
index |
int
|
getPointBuilderList()
public List<ValueList.Builder> getPointBuilderList()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
getPointCount()
public int getPointCount()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Returns |
Type |
Description |
int |
|
getPointList()
public List<ValueList> getPointList()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
getPointOrBuilder(int index)
public ValueListOrBuilder getPointOrBuilder(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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
index |
int
|
getPointOrBuilderList()
public List<? extends ValueListOrBuilder> getPointOrBuilderList()
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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Returns |
Type |
Description |
List<? extends com.google.spanner.executor.v1.ValueListOrBuilder> |
|
getRange(int index)
public KeyRange getRange(int index)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
index |
int
|
getRangeBuilder(int index)
public KeyRange.Builder getRangeBuilder(int index)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
index |
int
|
getRangeBuilderList()
public List<KeyRange.Builder> getRangeBuilderList()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
getRangeCount()
public int getRangeCount()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Returns |
Type |
Description |
int |
|
getRangeList()
public List<KeyRange> getRangeList()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
getRangeOrBuilder(int index)
public KeyRangeOrBuilder getRangeOrBuilder(int index)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
index |
int
|
getRangeOrBuilderList()
public List<? extends KeyRangeOrBuilder> getRangeOrBuilderList()
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Returns |
Type |
Description |
List<? extends com.google.spanner.executor.v1.KeyRangeOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public KeySet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KeySet.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(KeySet other)
public KeySet.Builder mergeFrom(KeySet other)
Parameter |
Name |
Description |
other |
KeySet
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeySet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removePoint(int index)
public KeySet.Builder removePoint(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.
repeated .google.spanner.executor.v1.ValueList point = 1;
Parameter |
Name |
Description |
index |
int
|
removeRange(int index)
public KeySet.Builder removeRange(int index)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
Parameter |
Name |
Description |
index |
int
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public KeySet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPoint(int index, ValueList value)
public KeySet.Builder setPoint(int index, ValueList 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.
repeated .google.spanner.executor.v1.ValueList point = 1;
setPoint(int index, ValueList.Builder builderForValue)
public KeySet.Builder setPoint(int index, ValueList.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.
repeated .google.spanner.executor.v1.ValueList point = 1;
setRange(int index, KeyRange value)
public KeySet.Builder setRange(int index, KeyRange value)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
setRange(int index, KeyRange.Builder builderForValue)
public KeySet.Builder setRange(int index, KeyRange.Builder builderForValue)
A list of key ranges.
repeated .google.spanner.executor.v1.KeyRange range = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeySet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KeySet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides