Class QueryResult (3.7.1)

public final class QueryResult extends GeneratedMessageV3 implements QueryResultOrBuilder

Execution results of the query. The result is formatted as rows represented by BigQuery compatible [schema]. When pagination is necessary, it will contains the page token to retrieve the results of following pages.

Protobuf type google.cloud.asset.v1.QueryResult

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

ROWS_FIELD_NUMBER

public static final int ROWS_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_ROWS_FIELD_NUMBER

public static final int TOTAL_ROWS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QueryResult getDefaultInstance()
Returns
TypeDescription
QueryResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static QueryResult.Builder newBuilder()
Returns
TypeDescription
QueryResult.Builder

newBuilder(QueryResult prototype)

public static QueryResult.Builder newBuilder(QueryResult prototype)
Parameter
NameDescription
prototypeQueryResult
Returns
TypeDescription
QueryResult.Builder

parseDelimitedFrom(InputStream input)

public static QueryResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QueryResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QueryResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QueryResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QueryResult> parser()
Returns
TypeDescription
Parser<QueryResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public QueryResult getDefaultInstanceForType()
Returns
TypeDescription
QueryResult

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of the results.

string next_page_token = 3;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of the results.

string next_page_token = 3;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getParserForType()

public Parser<QueryResult> getParserForType()
Returns
TypeDescription
Parser<QueryResult>
Overrides

getRows(int index)

public Struct getRows(int index)

Each row hold a query result in the format of Struct.

repeated .google.protobuf.Struct rows = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Struct

getRowsCount()

public int getRowsCount()

Each row hold a query result in the format of Struct.

repeated .google.protobuf.Struct rows = 1;

Returns
TypeDescription
int

getRowsList()

public List<Struct> getRowsList()

Each row hold a query result in the format of Struct.

repeated .google.protobuf.Struct rows = 1;

Returns
TypeDescription
List<Struct>

getRowsOrBuilder(int index)

public StructOrBuilder getRowsOrBuilder(int index)

Each row hold a query result in the format of Struct.

repeated .google.protobuf.Struct rows = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructOrBuilder

getRowsOrBuilderList()

public List<? extends StructOrBuilder> getRowsOrBuilderList()

Each row hold a query result in the format of Struct.

repeated .google.protobuf.Struct rows = 1;

Returns
TypeDescription
List<? extends com.google.protobuf.StructOrBuilder>

getSchema()

public TableSchema getSchema()

Describes the format of the [rows].

.google.cloud.asset.v1.TableSchema schema = 2;

Returns
TypeDescription
TableSchema

The schema.

getSchemaOrBuilder()

public TableSchemaOrBuilder getSchemaOrBuilder()

Describes the format of the [rows].

.google.cloud.asset.v1.TableSchema schema = 2;

Returns
TypeDescription
TableSchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTotalRows()

public long getTotalRows()

Total rows of the whole query results.

int64 total_rows = 4;

Returns
TypeDescription
long

The totalRows.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSchema()

public boolean hasSchema()

Describes the format of the [rows].

.google.cloud.asset.v1.TableSchema schema = 2;

Returns
TypeDescription
boolean

Whether the schema field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public QueryResult.Builder newBuilderForType()
Returns
TypeDescription
QueryResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QueryResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public QueryResult.Builder toBuilder()
Returns
TypeDescription
QueryResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException