Package com.google.spanner.executor.v1
Class ReadAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
com.google.spanner.executor.v1.ReadAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ReadActionOrBuilder,Cloneable
- Enclosing class:
- ReadAction
public static final class ReadAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
implements ReadActionOrBuilder
A single read request.Protobuf type
google.spanner.executor.v1.ReadAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllColumn(Iterable<String> values) List of columns must begin with the key columns used for the read.List of columns must begin with the key columns used for the read.addColumnBytes(com.google.protobuf.ByteString value) List of columns must begin with the key columns used for the read.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()List of columns must begin with the key columns used for the read.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The index to read at if it's an index read.Keys for performing this read.Limit on number of rows to read.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The table to read at.clone()getColumn(int index) List of columns must begin with the key columns used for the read.com.google.protobuf.ByteStringgetColumnBytes(int index) List of columns must begin with the key columns used for the read.intList of columns must begin with the key columns used for the read.com.google.protobuf.ProtocolStringListList of columns must begin with the key columns used for the read.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIndex()The index to read at if it's an index read.com.google.protobuf.ByteStringThe index to read at if it's an index read.getKeys()Keys for performing this read.Keys for performing this read.Keys for performing this read.intgetLimit()Limit on number of rows to read.getTable()The table to read at.com.google.protobuf.ByteStringThe table to read at.booleanhasIndex()The index to read at if it's an index read.booleanhasKeys()Keys for performing this read.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ReadAction other) Keys for performing this read.final ReadAction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) List of columns must begin with the key columns used for the read.The index to read at if it's an index read.setIndexBytes(com.google.protobuf.ByteString value) The index to read at if it's an index read.Keys for performing this read.setKeys(KeySet.Builder builderForValue) Keys for performing this read.setLimit(int value) Limit on number of rows to read.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The table to read at.setTableBytes(com.google.protobuf.ByteString value) The table to read at.final ReadAction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<ReadAction.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<ReadAction.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<ReadAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<ReadAction.Builder>
-
setField
public ReadAction.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<ReadAction.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
-
setRepeatedField
public ReadAction.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<ReadAction.Builder>
-
addRepeatedField
public ReadAction.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<ReadAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
-
mergeFrom
public ReadAction.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<ReadAction.Builder>- Throws:
IOException
-
getTable
The table to read at.
string table = 1;- Specified by:
getTablein interfaceReadActionOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()The table to read at.
string table = 1;- Specified by:
getTableBytesin interfaceReadActionOrBuilder- Returns:
- The bytes for table.
-
setTable
The table to read at.
string table = 1;- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
The table to read at.
string table = 1;- Returns:
- This builder for chaining.
-
setTableBytes
The table to read at.
string table = 1;- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-
hasIndex
public boolean hasIndex()The index to read at if it's an index read.
optional string index = 2;- Specified by:
hasIndexin interfaceReadActionOrBuilder- Returns:
- Whether the index field is set.
-
getIndex
The index to read at if it's an index read.
optional string index = 2;- Specified by:
getIndexin interfaceReadActionOrBuilder- Returns:
- The index.
-
getIndexBytes
public com.google.protobuf.ByteString getIndexBytes()The index to read at if it's an index read.
optional string index = 2;- Specified by:
getIndexBytesin interfaceReadActionOrBuilder- Returns:
- The bytes for index.
-
setIndex
The index to read at if it's an index read.
optional string index = 2;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
The index to read at if it's an index read.
optional string index = 2;- Returns:
- This builder for chaining.
-
setIndexBytes
The index to read at if it's an index read.
optional string index = 2;- Parameters:
value- The bytes for index to set.- Returns:
- This builder for chaining.
-
getColumnList
public com.google.protobuf.ProtocolStringList getColumnList()List of columns must begin with the key columns used for the read.
repeated string column = 3;- Specified by:
getColumnListin interfaceReadActionOrBuilder- Returns:
- A list containing the column.
-
getColumnCount
public int getColumnCount()List of columns must begin with the key columns used for the read.
repeated string column = 3;- Specified by:
getColumnCountin interfaceReadActionOrBuilder- Returns:
- The count of column.
-
getColumn
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Specified by:
getColumnin interfaceReadActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The column at the given index.
-
getColumnBytes
public com.google.protobuf.ByteString getColumnBytes(int index) List of columns must begin with the key columns used for the read.
repeated string column = 3;- Specified by:
getColumnBytesin interfaceReadActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the column at the given index.
-
setColumn
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Parameters:
index- The index to set the value at.value- The column to set.- Returns:
- This builder for chaining.
-
addColumn
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Parameters:
value- The column to add.- Returns:
- This builder for chaining.
-
addAllColumn
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Parameters:
values- The column to add.- Returns:
- This builder for chaining.
-
clearColumn
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Returns:
- This builder for chaining.
-
addColumnBytes
List of columns must begin with the key columns used for the read.
repeated string column = 3;- Parameters:
value- The bytes of the column to add.- Returns:
- This builder for chaining.
-
hasKeys
public boolean hasKeys()Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4;- Specified by:
hasKeysin interfaceReadActionOrBuilder- Returns:
- Whether the keys field is set.
-
getKeys
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4;- Specified by:
getKeysin interfaceReadActionOrBuilder- Returns:
- The keys.
-
setKeys
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4; -
setKeys
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4; -
mergeKeys
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4; -
clearKeys
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4; -
getKeysBuilder
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4; -
getKeysOrBuilder
Keys for performing this read.
.google.spanner.executor.v1.KeySet keys = 4;- Specified by:
getKeysOrBuilderin interfaceReadActionOrBuilder
-
getLimit
public int getLimit()Limit on number of rows to read. If set, must be positive.
int32 limit = 5;- Specified by:
getLimitin interfaceReadActionOrBuilder- Returns:
- The limit.
-
setLimit
Limit on number of rows to read. If set, must be positive.
int32 limit = 5;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
Limit on number of rows to read. If set, must be positive.
int32 limit = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
-
mergeUnknownFields
public final ReadAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadAction.Builder>
-