public static final class QueryResult.Builder extends GeneratedMessageV3.Builder<QueryResult.Builder> 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
Modifier and Type | Method and Description |
---|---|
QueryResult.Builder |
addAllRows(Iterable<? extends Struct> values)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
QueryResult.Builder |
addRows(int index,
Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
addRows(int index,
Struct value)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
addRows(Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
addRows(Struct value)
Each row hold a query result in the format of `Struct`.
|
Struct.Builder |
addRowsBuilder()
Each row hold a query result in the format of `Struct`.
|
Struct.Builder |
addRowsBuilder(int index)
Each row hold a query result in the format of `Struct`.
|
QueryResult |
build() |
QueryResult |
buildPartial() |
QueryResult.Builder |
clear() |
QueryResult.Builder |
clearField(Descriptors.FieldDescriptor field) |
QueryResult.Builder |
clearNextPageToken()
Token to retrieve the next page of the results.
|
QueryResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
QueryResult.Builder |
clearRows()
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
clearSchema()
Describes the format of the [rows].
|
QueryResult.Builder |
clearTotalRows()
Total rows of the whole query results.
|
QueryResult.Builder |
clone() |
QueryResult |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getNextPageToken()
Token to retrieve the next page of the results.
|
ByteString |
getNextPageTokenBytes()
Token to retrieve the next page of the results.
|
Struct |
getRows(int index)
Each row hold a query result in the format of `Struct`.
|
Struct.Builder |
getRowsBuilder(int index)
Each row hold a query result in the format of `Struct`.
|
List<Struct.Builder> |
getRowsBuilderList()
Each row hold a query result in the format of `Struct`.
|
int |
getRowsCount()
Each row hold a query result in the format of `Struct`.
|
List<Struct> |
getRowsList()
Each row hold a query result in the format of `Struct`.
|
StructOrBuilder |
getRowsOrBuilder(int index)
Each row hold a query result in the format of `Struct`.
|
List<? extends StructOrBuilder> |
getRowsOrBuilderList()
Each row hold a query result in the format of `Struct`.
|
TableSchema |
getSchema()
Describes the format of the [rows].
|
TableSchema.Builder |
getSchemaBuilder()
Describes the format of the [rows].
|
TableSchemaOrBuilder |
getSchemaOrBuilder()
Describes the format of the [rows].
|
long |
getTotalRows()
Total rows of the whole query results.
|
boolean |
hasSchema()
Describes the format of the [rows].
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryResult.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
QueryResult.Builder |
mergeFrom(Message other) |
QueryResult.Builder |
mergeFrom(QueryResult other) |
QueryResult.Builder |
mergeSchema(TableSchema value)
Describes the format of the [rows].
|
QueryResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
QueryResult.Builder |
removeRows(int index)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
QueryResult.Builder |
setNextPageToken(String value)
Token to retrieve the next page of the results.
|
QueryResult.Builder |
setNextPageTokenBytes(ByteString value)
Token to retrieve the next page of the results.
|
QueryResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
QueryResult.Builder |
setRows(int index,
Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
setRows(int index,
Struct value)
Each row hold a query result in the format of `Struct`.
|
QueryResult.Builder |
setSchema(TableSchema.Builder builderForValue)
Describes the format of the [rows].
|
QueryResult.Builder |
setSchema(TableSchema value)
Describes the format of the [rows].
|
QueryResult.Builder |
setTotalRows(long value)
Total rows of the whole query results.
|
QueryResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public QueryResult build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public QueryResult buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public QueryResult.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(QueryResult other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResult.Builder>
IOException
public List<Struct> getRowsList()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
getRowsList
in interface QueryResultOrBuilder
public int getRowsCount()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
getRowsCount
in interface QueryResultOrBuilder
public Struct getRows(int index)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
getRows
in interface QueryResultOrBuilder
public QueryResult.Builder setRows(int index, Struct value)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder setRows(int index, Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder addRows(Struct value)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder addRows(int index, Struct value)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder addRows(Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder addRows(int index, Struct.Builder builderForValue)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder addAllRows(Iterable<? extends Struct> values)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder clearRows()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public QueryResult.Builder removeRows(int index)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public Struct.Builder getRowsBuilder(int index)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public StructOrBuilder getRowsOrBuilder(int index)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
getRowsOrBuilder
in interface QueryResultOrBuilder
public List<? extends StructOrBuilder> getRowsOrBuilderList()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
getRowsOrBuilderList
in interface QueryResultOrBuilder
public Struct.Builder addRowsBuilder()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public Struct.Builder addRowsBuilder(int index)
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public List<Struct.Builder> getRowsBuilderList()
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;
public boolean hasSchema()
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
hasSchema
in interface QueryResultOrBuilder
public TableSchema getSchema()
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
getSchema
in interface QueryResultOrBuilder
public QueryResult.Builder setSchema(TableSchema value)
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
public QueryResult.Builder setSchema(TableSchema.Builder builderForValue)
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
public QueryResult.Builder mergeSchema(TableSchema value)
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
public QueryResult.Builder clearSchema()
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
public TableSchema.Builder getSchemaBuilder()
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
public TableSchemaOrBuilder getSchemaOrBuilder()
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;
getSchemaOrBuilder
in interface QueryResultOrBuilder
public String getNextPageToken()
Token to retrieve the next page of the results.
string next_page_token = 3;
getNextPageToken
in interface QueryResultOrBuilder
public ByteString getNextPageTokenBytes()
Token to retrieve the next page of the results.
string next_page_token = 3;
getNextPageTokenBytes
in interface QueryResultOrBuilder
public QueryResult.Builder setNextPageToken(String value)
Token to retrieve the next page of the results.
string next_page_token = 3;
value
- The nextPageToken to set.public QueryResult.Builder clearNextPageToken()
Token to retrieve the next page of the results.
string next_page_token = 3;
public QueryResult.Builder setNextPageTokenBytes(ByteString value)
Token to retrieve the next page of the results.
string next_page_token = 3;
value
- The bytes for nextPageToken to set.public long getTotalRows()
Total rows of the whole query results.
int64 total_rows = 4;
getTotalRows
in interface QueryResultOrBuilder
public QueryResult.Builder setTotalRows(long value)
Total rows of the whole query results.
int64 total_rows = 4;
value
- The totalRows to set.public QueryResult.Builder clearTotalRows()
Total rows of the whole query results.
int64 total_rows = 4;
public final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<QueryResult.Builder>
Copyright © 2022 Google LLC. All rights reserved.