Class QueryResult.Builder (6.71.0)

public static final class QueryResult.Builder extends GeneratedMessageV3.Builder<QueryResult.Builder> implements QueryResultOrBuilder

QueryResult contains result of a Query.

Protobuf type google.spanner.executor.v1.QueryResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRow(Iterable<? extends ValueList> values)

public QueryResult.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 = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.executor.v1.ValueList>
Returns
Type Description
QueryResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryResult.Builder
Overrides

addRow(ValueList value)

public QueryResult.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 = 1;

Parameter
Name Description
value ValueList
Returns
Type Description
QueryResult.Builder

addRow(ValueList.Builder builderForValue)

public QueryResult.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 = 1;

Parameter
Name Description
builderForValue ValueList.Builder
Returns
Type Description
QueryResult.Builder

addRow(int index, ValueList value)

public QueryResult.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 = 1;

Parameters
Name Description
index int
value ValueList
Returns
Type Description
QueryResult.Builder

addRow(int index, ValueList.Builder builderForValue)

public QueryResult.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 = 1;

Parameters
Name Description
index int
builderForValue ValueList.Builder
Returns
Type Description
QueryResult.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 = 1;

Returns
Type Description
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 = 1;

Parameter
Name Description
index int
Returns
Type Description
ValueList.Builder

build()

public QueryResult build()
Returns
Type Description
QueryResult

buildPartial()

public QueryResult buildPartial()
Returns
Type Description
QueryResult

clear()

public QueryResult.Builder clear()
Returns
Type Description
QueryResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueryResult.Builder
Overrides

clearRow()

public QueryResult.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 = 1;

Returns
Type Description
QueryResult.Builder

clearRowType()

public QueryResult.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 = 2;

Returns
Type Description
QueryResult.Builder

clone()

public QueryResult.Builder clone()
Returns
Type Description
QueryResult.Builder
Overrides

getDefaultInstanceForType()

public QueryResult getDefaultInstanceForType()
Returns
Type Description
QueryResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 = 1;

Parameter
Name Description
index int
Returns
Type Description
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 = 1;

Parameter
Name Description
index int
Returns
Type Description
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 = 1;

Returns
Type Description
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 = 1;

Returns
Type Description
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 = 1;

Returns
Type Description
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 = 1;

Parameter
Name Description
index int
Returns
Type Description
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 = 1;

Returns
Type Description
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 = 2;

Returns
Type Description
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 = 2;

Returns
Type Description
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 = 2;

Returns
Type Description
StructTypeOrBuilder

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 = 2;

Returns
Type Description
boolean

Whether the rowType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryResult.Builder
Overrides

mergeFrom(QueryResult other)

public QueryResult.Builder mergeFrom(QueryResult other)
Parameter
Name Description
other QueryResult
Returns
Type Description
QueryResult.Builder

mergeRowType(StructType value)

public QueryResult.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 = 2;

Parameter
Name Description
value StructType
Returns
Type Description
QueryResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryResult.Builder
Overrides

removeRow(int index)

public QueryResult.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 = 1;

Parameter
Name Description
index int
Returns
Type Description
QueryResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryResult.Builder
Overrides

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

public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueryResult.Builder
Overrides

setRow(int index, ValueList value)

public QueryResult.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 = 1;

Parameters
Name Description
index int
value ValueList
Returns
Type Description
QueryResult.Builder

setRow(int index, ValueList.Builder builderForValue)

public QueryResult.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 = 1;

Parameters
Name Description
index int
builderForValue ValueList.Builder
Returns
Type Description
QueryResult.Builder

setRowType(StructType value)

public QueryResult.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 = 2;

Parameter
Name Description
value StructType
Returns
Type Description
QueryResult.Builder

setRowType(StructType.Builder builderForValue)

public QueryResult.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 = 2;

Parameter
Name Description
builderForValue StructType.Builder
Returns
Type Description
QueryResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryResult.Builder
Overrides