Class QueryResult.Builder (6.60.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.ValueList>
Returns
TypeDescription
QueryResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
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
NameDescription
builderForValueValueList.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueValueList
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
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
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 = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueList.Builder

build()

public QueryResult build()
Returns
TypeDescription
QueryResult

buildPartial()

public QueryResult buildPartial()
Returns
TypeDescription
QueryResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QueryResult.Builder

clone()

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

getDefaultInstanceForType()

public QueryResult getDefaultInstanceForType()
Returns
TypeDescription
QueryResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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 = 1;

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

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

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

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

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

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

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

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

Returns
TypeDescription
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
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 QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(QueryResult other)

public QueryResult.Builder mergeFrom(QueryResult other)
Parameter
NameDescription
otherQueryResult
Returns
TypeDescription
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
NameDescription
valueStructType
Returns
TypeDescription
QueryResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QueryResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueValueList
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
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
NameDescription
valueStructType
Returns
TypeDescription
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
NameDescription
builderForValueStructType.Builder
Returns
TypeDescription
QueryResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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