Class SqlResult (0.42.0)

public final class SqlResult extends GeneratedMessageV3 implements SqlResultOrBuilder

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

Protobuf type google.cloud.alloydb.v1.SqlResult

Implements

SqlResultOrBuilder

Static Fields

COLUMNS_FIELD_NUMBER

public static final int COLUMNS_FIELD_NUMBER
Field Value
Type Description
int

ROWS_FIELD_NUMBER

public static final int ROWS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SqlResult getDefaultInstance()
Returns
Type Description
SqlResult

getDescriptor()

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

newBuilder()

public static SqlResult.Builder newBuilder()
Returns
Type Description
SqlResult.Builder

newBuilder(SqlResult prototype)

public static SqlResult.Builder newBuilder(SqlResult prototype)
Parameter
Name Description
prototype SqlResult
Returns
Type Description
SqlResult.Builder

parseDelimitedFrom(InputStream input)

public static SqlResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SqlResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SqlResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SqlResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SqlResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SqlResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SqlResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SqlResult> parser()
Returns
Type Description
Parser<SqlResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.v1.SqlResultColumn columns = 1;

Parameter
Name Description
index int
Returns
Type Description
SqlResultColumn

getColumnsCount()

public int getColumnsCount()

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

repeated .google.cloud.alloydb.v1.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.v1.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.v1.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.v1.SqlResultColumn columns = 1;

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

getDefaultInstanceForType()

public SqlResult getDefaultInstanceForType()
Returns
Type Description
SqlResult

getParserForType()

public Parser<SqlResult> getParserForType()
Returns
Type Description
Parser<SqlResult>
Overrides

getRows(int index)

public SqlResultRow getRows(int index)

Rows returned by the SQL statement.

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

Parameter
Name Description
index int
Returns
Type Description
SqlResultRow

getRowsCount()

public int getRowsCount()

Rows returned by the SQL statement.

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

Returns
Type Description
int

getRowsList()

public List<SqlResultRow> getRowsList()

Rows returned by the SQL statement.

repeated .google.cloud.alloydb.v1.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.v1.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.v1.SqlResultRow rows = 2;

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SqlResult.Builder newBuilderForType()
Returns
Type Description
SqlResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SqlResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SqlResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SqlResult.Builder toBuilder()
Returns
Type Description
SqlResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException