Package com.google.cloud.asset.v1
Class QueryResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
com.google.cloud.asset.v1.QueryResult.Builder
- All Implemented Interfaces:
QueryResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryResult
public static final class QueryResult.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllRows(Iterable<? extends com.google.protobuf.Struct> values) Each row hold a query result in the format of `Struct`.addRows(int index, com.google.protobuf.Struct value) Each row hold a query result in the format of `Struct`.addRows(int index, com.google.protobuf.Struct.Builder builderForValue) Each row hold a query result in the format of `Struct`.addRows(com.google.protobuf.Struct value) Each row hold a query result in the format of `Struct`.addRows(com.google.protobuf.Struct.Builder builderForValue) Each row hold a query result in the format of `Struct`.com.google.protobuf.Struct.BuilderEach row hold a query result in the format of `Struct`.com.google.protobuf.Struct.BuilderaddRowsBuilder(int index) Each row hold a query result in the format of `Struct`.build()clear()Token to retrieve the next page of the results.Each row hold a query result in the format of `Struct`.Describes the format of the [rows].Total rows of the whole query results.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorToken to retrieve the next page of the results.com.google.protobuf.ByteStringToken to retrieve the next page of the results.com.google.protobuf.StructgetRows(int index) Each row hold a query result in the format of `Struct`.com.google.protobuf.Struct.BuildergetRowsBuilder(int index) Each row hold a query result in the format of `Struct`.List<com.google.protobuf.Struct.Builder>Each row hold a query result in the format of `Struct`.intEach row hold a query result in the format of `Struct`.List<com.google.protobuf.Struct>Each row hold a query result in the format of `Struct`.com.google.protobuf.StructOrBuildergetRowsOrBuilder(int index) Each row hold a query result in the format of `Struct`.List<? extends com.google.protobuf.StructOrBuilder>Each row hold a query result in the format of `Struct`.Describes the format of the [rows].Describes the format of the [rows].Describes the format of the [rows].longTotal rows of the whole query results.booleanDescribes the format of the [rows].protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QueryResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSchema(TableSchema value) Describes the format of the [rows].removeRows(int index) Each row hold a query result in the format of `Struct`.setNextPageToken(String value) Token to retrieve the next page of the results.setNextPageTokenBytes(com.google.protobuf.ByteString value) Token to retrieve the next page of the results.setRows(int index, com.google.protobuf.Struct value) Each row hold a query result in the format of `Struct`.setRows(int index, com.google.protobuf.Struct.Builder builderForValue) Each row hold a query result in the format of `Struct`.setSchema(TableSchema value) Describes the format of the [rows].setSchema(TableSchema.Builder builderForValue) Describes the format of the [rows].setTotalRows(long value) Total rows of the whole query results.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>- Throws:
IOException
-
getRowsList
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;- Specified by:
getRowsListin interfaceQueryResultOrBuilder
-
getRowsCount
public int getRowsCount()Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;- Specified by:
getRowsCountin interfaceQueryResultOrBuilder
-
getRows
public com.google.protobuf.Struct getRows(int index) Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;- Specified by:
getRowsin interfaceQueryResultOrBuilder
-
setRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
setRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addAllRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
clearRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
removeRows
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
getRowsBuilder
public com.google.protobuf.Struct.Builder getRowsBuilder(int index) Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
getRowsOrBuilder
public com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index) Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;- Specified by:
getRowsOrBuilderin interfaceQueryResultOrBuilder
-
getRowsOrBuilderList
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1;- Specified by:
getRowsOrBuilderListin interfaceQueryResultOrBuilder
-
addRowsBuilder
public com.google.protobuf.Struct.Builder addRowsBuilder()Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
addRowsBuilder
public com.google.protobuf.Struct.Builder addRowsBuilder(int index) Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
getRowsBuilderList
Each row hold a query result in the format of `Struct`.
repeated .google.protobuf.Struct rows = 1; -
hasSchema
public boolean hasSchema()Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;- Specified by:
hasSchemain interfaceQueryResultOrBuilder- Returns:
- Whether the schema field is set.
-
getSchema
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;- Specified by:
getSchemain interfaceQueryResultOrBuilder- Returns:
- The schema.
-
setSchema
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2; -
setSchema
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2; -
mergeSchema
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2; -
clearSchema
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2; -
getSchemaBuilder
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2; -
getSchemaOrBuilder
Describes the format of the [rows].
.google.cloud.asset.v1.TableSchema schema = 2;- Specified by:
getSchemaOrBuilderin interfaceQueryResultOrBuilder
-
getNextPageToken
Token to retrieve the next page of the results.
string next_page_token = 3;- Specified by:
getNextPageTokenin interfaceQueryResultOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()Token to retrieve the next page of the results.
string next_page_token = 3;- Specified by:
getNextPageTokenBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
Token to retrieve the next page of the results.
string next_page_token = 3;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
Token to retrieve the next page of the results.
string next_page_token = 3;- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
Token to retrieve the next page of the results.
string next_page_token = 3;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getTotalRows
public long getTotalRows()Total rows of the whole query results.
int64 total_rows = 4;- Specified by:
getTotalRowsin interfaceQueryResultOrBuilder- Returns:
- The totalRows.
-
setTotalRows
Total rows of the whole query results.
int64 total_rows = 4;- Parameters:
value- The totalRows to set.- Returns:
- This builder for chaining.
-
clearTotalRows
Total rows of the whole query results.
int64 total_rows = 4;- Returns:
- This builder for chaining.
-