Class ReadResult.Builder (6.60.0)

public static final class ReadResult.Builder extends GeneratedMessageV3.Builder<ReadResult.Builder> implements ReadResultOrBuilder

ReadResult contains rows read.

Protobuf type google.spanner.executor.v1.ReadResult

Implements

ReadResultOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRow(Iterable<? extends ValueList> values)

public ReadResult.Builder addAllRow(Iterable<? extends ValueList> values)

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
valuesIterable<? extends com.google.spanner.executor.v1.ValueList>
Returns
TypeDescription
ReadResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReadResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReadResult.Builder
Overrides

addRow(ValueList value)

public ReadResult.Builder addRow(ValueList value)

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
valueValueList
Returns
TypeDescription
ReadResult.Builder

addRow(ValueList.Builder builderForValue)

public ReadResult.Builder addRow(ValueList.Builder builderForValue)

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
builderForValueValueList.Builder
Returns
TypeDescription
ReadResult.Builder

addRow(int index, ValueList value)

public ReadResult.Builder addRow(int index, ValueList value)

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;

Parameters
NameDescription
indexint
valueValueList
Returns
TypeDescription
ReadResult.Builder

addRow(int index, ValueList.Builder builderForValue)

public ReadResult.Builder addRow(int index, ValueList.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
ReadResult.Builder

addRowBuilder()

public ValueList.Builder addRowBuilder()

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
ValueList.Builder

addRowBuilder(int index)

public ValueList.Builder addRowBuilder(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.Builder

build()

public ReadResult build()
Returns
TypeDescription
ReadResult

buildPartial()

public ReadResult buildPartial()
Returns
TypeDescription
ReadResult

clear()

public ReadResult.Builder clear()
Returns
TypeDescription
ReadResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ReadResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReadResult.Builder
Overrides

clearIndex()

public ReadResult.Builder clearIndex()

Index name, if read from an index.

optional string index = 2;

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReadResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReadResult.Builder
Overrides

clearRequestIndex()

public ReadResult.Builder clearRequestIndex()

Request index (multiread only).

optional int32 request_index = 3;

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

clearRow()

public ReadResult.Builder clearRow()

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
ReadResult.Builder

clearRowType()

public ReadResult.Builder clearRowType()

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
ReadResult.Builder

clearTable()

public ReadResult.Builder clearTable()

Table name.

string table = 1;

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

clone()

public ReadResult.Builder clone()
Returns
TypeDescription
ReadResult.Builder
Overrides

getDefaultInstanceForType()

public ReadResult getDefaultInstanceForType()
Returns
TypeDescription
ReadResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

getRowBuilder(int index)

public ValueList.Builder getRowBuilder(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.Builder

getRowBuilderList()

public List<ValueList.Builder> getRowBuilderList()

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<Builder>

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.

getRowTypeBuilder()

public StructType.Builder getRowTypeBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReadResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReadResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReadResult.Builder
Overrides

mergeFrom(ReadResult other)

public ReadResult.Builder mergeFrom(ReadResult other)
Parameter
NameDescription
otherReadResult
Returns
TypeDescription
ReadResult.Builder

mergeRowType(StructType value)

public ReadResult.Builder mergeRowType(StructType value)

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

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

Parameter
NameDescription
valueStructType
Returns
TypeDescription
ReadResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReadResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReadResult.Builder
Overrides

removeRow(int index)

public ReadResult.Builder removeRow(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
ReadResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReadResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReadResult.Builder
Overrides

setIndex(String value)

public ReadResult.Builder setIndex(String value)

Index name, if read from an index.

optional string index = 2;

Parameter
NameDescription
valueString

The index to set.

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

setIndexBytes(ByteString value)

public ReadResult.Builder setIndexBytes(ByteString value)

Index name, if read from an index.

optional string index = 2;

Parameter
NameDescription
valueByteString

The bytes for index to set.

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReadResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReadResult.Builder
Overrides

setRequestIndex(int value)

public ReadResult.Builder setRequestIndex(int value)

Request index (multiread only).

optional int32 request_index = 3;

Parameter
NameDescription
valueint

The requestIndex to set.

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

setRow(int index, ValueList value)

public ReadResult.Builder setRow(int index, ValueList value)

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;

Parameters
NameDescription
indexint
valueValueList
Returns
TypeDescription
ReadResult.Builder

setRow(int index, ValueList.Builder builderForValue)

public ReadResult.Builder setRow(int index, ValueList.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
ReadResult.Builder

setRowType(StructType value)

public ReadResult.Builder setRowType(StructType value)

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

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

Parameter
NameDescription
valueStructType
Returns
TypeDescription
ReadResult.Builder

setRowType(StructType.Builder builderForValue)

public ReadResult.Builder setRowType(StructType.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueStructType.Builder
Returns
TypeDescription
ReadResult.Builder

setTable(String value)

public ReadResult.Builder setTable(String value)

Table name.

string table = 1;

Parameter
NameDescription
valueString

The table to set.

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

setTableBytes(ByteString value)

public ReadResult.Builder setTableBytes(ByteString value)

Table name.

string table = 1;

Parameter
NameDescription
valueByteString

The bytes for table to set.

Returns
TypeDescription
ReadResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReadResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReadResult.Builder
Overrides