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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
    • clear

      public QueryResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QueryResult.Builder>
    • getDefaultInstanceForType

      public QueryResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public QueryResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public QueryResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public QueryResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
    • mergeFrom

      public QueryResult.Builder mergeFrom(QueryResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
      Throws:
      IOException
    • getRowsList

      public List<com.google.protobuf.Struct> getRowsList()
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
      Specified by:
      getRowsList in interface QueryResultOrBuilder
    • getRowsCount

      public int getRowsCount()
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
      Specified by:
      getRowsCount in interface QueryResultOrBuilder
    • 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:
      getRows in interface QueryResultOrBuilder
    • setRows

      public QueryResult.Builder setRows(int index, com.google.protobuf.Struct value)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • setRows

      public QueryResult.Builder setRows(int index, com.google.protobuf.Struct.Builder builderForValue)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • addRows

      public QueryResult.Builder addRows(com.google.protobuf.Struct value)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • addRows

      public QueryResult.Builder addRows(int index, com.google.protobuf.Struct value)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • addRows

      public QueryResult.Builder addRows(com.google.protobuf.Struct.Builder builderForValue)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • addRows

      public QueryResult.Builder addRows(int index, com.google.protobuf.Struct.Builder builderForValue)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • addAllRows

      public QueryResult.Builder addAllRows(Iterable<? extends com.google.protobuf.Struct> values)
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • clearRows

      public QueryResult.Builder clearRows()
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
    • removeRows

      public QueryResult.Builder removeRows(int index)
       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:
      getRowsOrBuilder in interface QueryResultOrBuilder
    • getRowsOrBuilderList

      public List<? extends com.google.protobuf.StructOrBuilder> getRowsOrBuilderList()
       Each row hold a query result in the format of `Struct`.
       
      repeated .google.protobuf.Struct rows = 1;
      Specified by:
      getRowsOrBuilderList in interface QueryResultOrBuilder
    • 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

      public List<com.google.protobuf.Struct.Builder> 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:
      hasSchema in interface QueryResultOrBuilder
      Returns:
      Whether the schema field is set.
    • getSchema

      public TableSchema getSchema()
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
      Specified by:
      getSchema in interface QueryResultOrBuilder
      Returns:
      The schema.
    • setSchema

      public QueryResult.Builder setSchema(TableSchema value)
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
    • setSchema

      public QueryResult.Builder setSchema(TableSchema.Builder builderForValue)
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
    • mergeSchema

      public QueryResult.Builder mergeSchema(TableSchema value)
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
    • clearSchema

      public QueryResult.Builder clearSchema()
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
    • getSchemaBuilder

      public TableSchema.Builder getSchemaBuilder()
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
    • getSchemaOrBuilder

      public TableSchemaOrBuilder getSchemaOrBuilder()
       Describes the format of the [rows].
       
      .google.cloud.asset.v1.TableSchema schema = 2;
      Specified by:
      getSchemaOrBuilder in interface QueryResultOrBuilder
    • getNextPageToken

      public String getNextPageToken()
       Token to retrieve the next page of the results.
       
      string next_page_token = 3;
      Specified by:
      getNextPageToken in interface QueryResultOrBuilder
      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:
      getNextPageTokenBytes in interface QueryResultOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public QueryResult.Builder setNextPageToken(String value)
       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

      public QueryResult.Builder clearNextPageToken()
       Token to retrieve the next page of the results.
       
      string next_page_token = 3;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public QueryResult.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       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:
      getTotalRows in interface QueryResultOrBuilder
      Returns:
      The totalRows.
    • setTotalRows

      public QueryResult.Builder setTotalRows(long value)
       Total rows of the whole query results.
       
      int64 total_rows = 4;
      Parameters:
      value - The totalRows to set.
      Returns:
      This builder for chaining.
    • clearTotalRows

      public QueryResult.Builder clearTotalRows()
       Total rows of the whole query results.
       
      int64 total_rows = 4;
      Returns:
      This builder for chaining.