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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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
|
build()
public QueryResult build()
buildPartial()
public QueryResult buildPartial()
clear()
public QueryResult.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public QueryResult.Builder clone()
Overrides
getDefaultInstanceForType()
public QueryResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public QueryResult.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(QueryResult other)
public QueryResult.Builder mergeFrom(QueryResult other)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public QueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides