public final class QueryResult extends GeneratedMessage implements QueryResultOrBuilder
QueryResult contains the result of executing a single SQL statement.
Protobuf type google.cloud.sql.v1beta4.QueryResult
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
COLUMNS_FIELD_NUMBER
public static final int COLUMNS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTIAL_RESULT_FIELD_NUMBER
public static final int PARTIAL_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ROWS_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static QueryResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static QueryResult.Builder newBuilder()
newBuilder(QueryResult prototype)
public static QueryResult.Builder newBuilder(QueryResult prototype)
public static QueryResult parseDelimitedFrom(InputStream input)
public static QueryResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static QueryResult parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueryResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static QueryResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryResult parseFrom(CodedInputStream input)
public static QueryResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryResult parseFrom(InputStream input)
public static QueryResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static QueryResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QueryResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<QueryResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getColumns(int index)
public Column getColumns(int index)
List of columns included in the result. This also includes the data type
of the column.
repeated .google.cloud.sql.v1beta4.Column columns = 1;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Column |
|
getColumnsCount()
public int getColumnsCount()
List of columns included in the result. This also includes the data type
of the column.
repeated .google.cloud.sql.v1beta4.Column columns = 1;
| Returns |
| Type |
Description |
int |
|
getColumnsList()
public List<Column> getColumnsList()
List of columns included in the result. This also includes the data type
of the column.
repeated .google.cloud.sql.v1beta4.Column columns = 1;
getColumnsOrBuilder(int index)
public ColumnOrBuilder getColumnsOrBuilder(int index)
List of columns included in the result. This also includes the data type
of the column.
repeated .google.cloud.sql.v1beta4.Column columns = 1;
| Parameter |
| Name |
Description |
index |
int
|
getColumnsOrBuilderList()
public List<? extends ColumnOrBuilder> getColumnsOrBuilderList()
List of columns included in the result. This also includes the data type
of the column.
repeated .google.cloud.sql.v1beta4.Column columns = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.sql.v1beta4.ColumnOrBuilder> |
|
getDefaultInstanceForType()
public QueryResult getDefaultInstanceForType()
getMessage()
public String getMessage()
Message related to the SQL execution result.
string message = 3;
| Returns |
| Type |
Description |
String |
The message.
|
getMessageBytes()
public ByteString getMessageBytes()
Message related to the SQL execution result.
string message = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for message.
|
getParserForType()
public Parser<QueryResult> getParserForType()
Overrides
getPartialResult()
public boolean getPartialResult()
Set to true if the SQL execution's result is truncated due to size limits
or an error retrieving results.
bool partial_result = 4;
| Returns |
| Type |
Description |
boolean |
The partialResult.
|
getRows(int index)
public Row getRows(int index)
Rows returned by the SQL statement.
repeated .google.cloud.sql.v1beta4.Row rows = 2;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Row |
|
getRowsCount()
public int getRowsCount()
Rows returned by the SQL statement.
repeated .google.cloud.sql.v1beta4.Row rows = 2;
| Returns |
| Type |
Description |
int |
|
getRowsList()
public List<Row> getRowsList()
Rows returned by the SQL statement.
repeated .google.cloud.sql.v1beta4.Row rows = 2;
getRowsOrBuilder(int index)
public RowOrBuilder getRowsOrBuilder(int index)
Rows returned by the SQL statement.
repeated .google.cloud.sql.v1beta4.Row rows = 2;
| Parameter |
| Name |
Description |
index |
int
|
getRowsOrBuilderList()
public List<? extends RowOrBuilder> getRowsOrBuilderList()
Rows returned by the SQL statement.
repeated .google.cloud.sql.v1beta4.Row rows = 2;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.sql.v1beta4.RowOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStatus()
public Status getStatus()
If results were truncated due to an error, details of that error.
.google.rpc.Status status = 8;
| Returns |
| Type |
Description |
com.google.rpc.Status |
The status.
|
getStatusOrBuilder()
public StatusOrBuilder getStatusOrBuilder()
If results were truncated due to an error, details of that error.
.google.rpc.Status status = 8;
| Returns |
| Type |
Description |
com.google.rpc.StatusOrBuilder |
|
hasStatus()
public boolean hasStatus()
If results were truncated due to an error, details of that error.
.google.rpc.Status status = 8;
| Returns |
| Type |
Description |
boolean |
Whether the status field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public QueryResult.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected QueryResult.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public QueryResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides