Class SqlResult.Builder (0.44.0)

public static final class SqlResult.Builder extends GeneratedMessageV3.Builder<SqlResult.Builder> implements SqlResultOrBuilder

SqlResult represents the result for the execution of a sql statement.

Protobuf type google.cloud.alloydb.v1alpha.SqlResult

Implements

SqlResultOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllColumns(Iterable<? extends SqlResultColumn> values)

public SqlResult.Builder addAllColumns(Iterable<? extends SqlResultColumn> values)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.SqlResultColumn>
Returns
Type Description
SqlResult.Builder

addAllRows(Iterable<? extends SqlResultRow> values)

public SqlResult.Builder addAllRows(Iterable<? extends SqlResultRow> values)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.SqlResultRow>
Returns
Type Description
SqlResult.Builder

addColumns(SqlResultColumn value)

public SqlResult.Builder addColumns(SqlResultColumn value)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
value SqlResultColumn
Returns
Type Description
SqlResult.Builder

addColumns(SqlResultColumn.Builder builderForValue)

public SqlResult.Builder addColumns(SqlResultColumn.Builder builderForValue)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
builderForValue SqlResultColumn.Builder
Returns
Type Description
SqlResult.Builder

addColumns(int index, SqlResultColumn value)

public SqlResult.Builder addColumns(int index, SqlResultColumn value)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameters
Name Description
index int
value SqlResultColumn
Returns
Type Description
SqlResult.Builder

addColumns(int index, SqlResultColumn.Builder builderForValue)

public SqlResult.Builder addColumns(int index, SqlResultColumn.Builder builderForValue)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameters
Name Description
index int
builderForValue SqlResultColumn.Builder
Returns
Type Description
SqlResult.Builder

addColumnsBuilder()

public SqlResultColumn.Builder addColumnsBuilder()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
SqlResultColumn.Builder

addColumnsBuilder(int index)

public SqlResultColumn.Builder addColumnsBuilder(int index)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultColumn.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRows(SqlResultRow value)

public SqlResult.Builder addRows(SqlResultRow value)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
value SqlResultRow
Returns
Type Description
SqlResult.Builder

addRows(SqlResultRow.Builder builderForValue)

public SqlResult.Builder addRows(SqlResultRow.Builder builderForValue)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
builderForValue SqlResultRow.Builder
Returns
Type Description
SqlResult.Builder

addRows(int index, SqlResultRow value)

public SqlResult.Builder addRows(int index, SqlResultRow value)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameters
Name Description
index int
value SqlResultRow
Returns
Type Description
SqlResult.Builder

addRows(int index, SqlResultRow.Builder builderForValue)

public SqlResult.Builder addRows(int index, SqlResultRow.Builder builderForValue)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameters
Name Description
index int
builderForValue SqlResultRow.Builder
Returns
Type Description
SqlResult.Builder

addRowsBuilder()

public SqlResultRow.Builder addRowsBuilder()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
SqlResultRow.Builder

addRowsBuilder(int index)

public SqlResultRow.Builder addRowsBuilder(int index)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlResultRow.Builder

build()

public SqlResult build()
Returns
Type Description
SqlResult

buildPartial()

public SqlResult buildPartial()
Returns
Type Description
SqlResult

clear()

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

clearColumns()

public SqlResult.Builder clearColumns()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
SqlResult.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRows()

public SqlResult.Builder clearRows()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
SqlResult.Builder

clone()

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

getColumns(int index)

public SqlResultColumn getColumns(int index)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultColumn

getColumnsBuilder(int index)

public SqlResultColumn.Builder getColumnsBuilder(int index)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultColumn.Builder

getColumnsBuilderList()

public List<SqlResultColumn.Builder> getColumnsBuilderList()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
List<Builder>

getColumnsCount()

public int getColumnsCount()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
int

getColumnsList()

public List<SqlResultColumn> getColumnsList()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
List<SqlResultColumn>

getColumnsOrBuilder(int index)

public SqlResultColumnOrBuilder getColumnsOrBuilder(int index)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultColumnOrBuilder

getColumnsOrBuilderList()

public List<? extends SqlResultColumnOrBuilder> getColumnsOrBuilderList()

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1alpha.SqlResultColumnOrBuilder>

getDefaultInstanceForType()

public SqlResult getDefaultInstanceForType()
Returns
Type Description
SqlResult

getDescriptorForType()

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

getRows(int index)

public SqlResultRow getRows(int index)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlResultRow

getRowsBuilder(int index)

public SqlResultRow.Builder getRowsBuilder(int index)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlResultRow.Builder

getRowsBuilderList()

public List<SqlResultRow.Builder> getRowsBuilderList()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
List<Builder>

getRowsCount()

public int getRowsCount()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
int

getRowsList()

public List<SqlResultRow> getRowsList()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
List<SqlResultRow>

getRowsOrBuilder(int index)

public SqlResultRowOrBuilder getRowsOrBuilder(int index)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlResultRowOrBuilder

getRowsOrBuilderList()

public List<? extends SqlResultRowOrBuilder> getRowsOrBuilderList()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1alpha.SqlResultRowOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SqlResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeColumns(int index)

public SqlResult.Builder removeColumns(int index)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResult.Builder

removeRows(int index)

public SqlResult.Builder removeRows(int index)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameter
Name Description
index int
Returns
Type Description
SqlResult.Builder

setColumns(int index, SqlResultColumn value)

public SqlResult.Builder setColumns(int index, SqlResultColumn value)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameters
Name Description
index int
value SqlResultColumn
Returns
Type Description
SqlResult.Builder

setColumns(int index, SqlResultColumn.Builder builderForValue)

public SqlResult.Builder setColumns(int index, SqlResultColumn.Builder builderForValue)

List of columns included in the result. This also includes the data type of the column.

repeated .google.cloud.alloydb.v1alpha.SqlResultColumn columns = 1;

Parameters
Name Description
index int
builderForValue SqlResultColumn.Builder
Returns
Type Description
SqlResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRows(int index, SqlResultRow value)

public SqlResult.Builder setRows(int index, SqlResultRow value)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameters
Name Description
index int
value SqlResultRow
Returns
Type Description
SqlResult.Builder

setRows(int index, SqlResultRow.Builder builderForValue)

public SqlResult.Builder setRows(int index, SqlResultRow.Builder builderForValue)

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1alpha.SqlResultRow rows = 2;

Parameters
Name Description
index int
builderForValue SqlResultRow.Builder
Returns
Type Description
SqlResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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