Class ReadResult (6.60.0)

public final class ReadResult extends GeneratedMessageV3 implements ReadResultOrBuilder

ReadResult contains rows read.

Protobuf type google.spanner.executor.v1.ReadResult

Implements

ReadResultOrBuilder

Static Fields

INDEX_FIELD_NUMBER

public static final int INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_INDEX_FIELD_NUMBER

public static final int REQUEST_INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
TypeDescription
int

ROW_TYPE_FIELD_NUMBER

public static final int ROW_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReadResult getDefaultInstance()
Returns
TypeDescription
ReadResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ReadResult.Builder newBuilder()
Returns
TypeDescription
ReadResult.Builder

newBuilder(ReadResult prototype)

public static ReadResult.Builder newBuilder(ReadResult prototype)
Parameter
NameDescription
prototypeReadResult
Returns
TypeDescription
ReadResult.Builder

parseDelimitedFrom(InputStream input)

public static ReadResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ReadResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReadResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReadResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ReadResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ReadResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReadResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ReadResult> parser()
Returns
TypeDescription
Parser<ReadResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ReadResult getDefaultInstanceForType()
Returns
TypeDescription
ReadResult

getIndex()

public String getIndex()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
ByteString

The bytes for index.

getParserForType()

public Parser<ReadResult> getParserForType()
Returns
TypeDescription
Parser<ReadResult>
Overrides

getRequestIndex()

public int getRequestIndex()

Request index (multiread only).

optional int32 request_index = 3;

Returns
TypeDescription
int

The requestIndex.

getRow(int index)

public ValueList getRow(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueList

getRowCount()

public int getRowCount()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
int

getRowList()

public List<ValueList> getRowList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
List<ValueList>

getRowOrBuilder(int index)

public ValueListOrBuilder getRowOrBuilder(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueListOrBuilder

getRowOrBuilderList()

public List<? extends ValueListOrBuilder> getRowOrBuilderList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 4;

Returns
TypeDescription
List<? extends com.google.spanner.executor.v1.ValueListOrBuilder>

getRowType()

public StructType getRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
StructType

The rowType.

getRowTypeOrBuilder()

public StructTypeOrBuilder getRowTypeOrBuilder()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
StructTypeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTable()

public String getTable()

Table name.

string table = 1;

Returns
TypeDescription
String

The table.

getTableBytes()

public ByteString getTableBytes()

Table name.

string table = 1;

Returns
TypeDescription
ByteString

The bytes for table.

hasIndex()

public boolean hasIndex()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
boolean

Whether the index field is set.

hasRequestIndex()

public boolean hasRequestIndex()

Request index (multiread only).

optional int32 request_index = 3;

Returns
TypeDescription
boolean

Whether the requestIndex field is set.

hasRowType()

public boolean hasRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 5;

Returns
TypeDescription
boolean

Whether the rowType field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ReadResult.Builder newBuilderForType()
Returns
TypeDescription
ReadResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReadResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ReadResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ReadResult.Builder toBuilder()
Returns
TypeDescription
ReadResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException