public static final class QueryResult.Builder extends GeneratedMessage.Builder<QueryResult.Builder> implements QueryResultOrBuilderQueryResult contains result of a Query.
Protobuf type google.spanner.executor.v1.QueryResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > QueryResult.BuilderImplements
QueryResultOrBuilderStatic 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 |
|
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 |
|
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 |
|
getDefaultInstanceForType()
public QueryResult getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryResult |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryResult.Builder |
|
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 |
|
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 |
|
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 |
|