/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/asset/v1/asset_service.proto

package com.google.cloud.asset.v1;

public interface QueryResultOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryResult)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Each row hold a query result in the format of `Struct`.
   * </pre>
   *
   * <code>repeated .google.protobuf.Struct rows = 1;</code>
   */
  java.util.List<com.google.protobuf.Struct> getRowsList();
  /**
   *
   *
   * <pre>
   * Each row hold a query result in the format of `Struct`.
   * </pre>
   *
   * <code>repeated .google.protobuf.Struct rows = 1;</code>
   */
  com.google.protobuf.Struct getRows(int index);
  /**
   *
   *
   * <pre>
   * Each row hold a query result in the format of `Struct`.
   * </pre>
   *
   * <code>repeated .google.protobuf.Struct rows = 1;</code>
   */
  int getRowsCount();
  /**
   *
   *
   * <pre>
   * Each row hold a query result in the format of `Struct`.
   * </pre>
   *
   * <code>repeated .google.protobuf.Struct rows = 1;</code>
   */
  java.util.List<? extends com.google.protobuf.StructOrBuilder> getRowsOrBuilderList();
  /**
   *
   *
   * <pre>
   * Each row hold a query result in the format of `Struct`.
   * </pre>
   *
   * <code>repeated .google.protobuf.Struct rows = 1;</code>
   */
  com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index);

  /**
   *
   *
   * <pre>
   * Describes the format of the [rows].
   * </pre>
   *
   * <code>.google.cloud.asset.v1.TableSchema schema = 2;</code>
   *
   * @return Whether the schema field is set.
   */
  boolean hasSchema();
  /**
   *
   *
   * <pre>
   * Describes the format of the [rows].
   * </pre>
   *
   * <code>.google.cloud.asset.v1.TableSchema schema = 2;</code>
   *
   * @return The schema.
   */
  com.google.cloud.asset.v1.TableSchema getSchema();
  /**
   *
   *
   * <pre>
   * Describes the format of the [rows].
   * </pre>
   *
   * <code>.google.cloud.asset.v1.TableSchema schema = 2;</code>
   */
  com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder();

  /**
   *
   *
   * <pre>
   * Token to retrieve the next page of the results.
   * </pre>
   *
   * <code>string next_page_token = 3;</code>
   *
   * @return The nextPageToken.
   */
  java.lang.String getNextPageToken();
  /**
   *
   *
   * <pre>
   * Token to retrieve the next page of the results.
   * </pre>
   *
   * <code>string next_page_token = 3;</code>
   *
   * @return The bytes for nextPageToken.
   */
  com.google.protobuf.ByteString getNextPageTokenBytes();

  /**
   *
   *
   * <pre>
   * Total rows of the whole query results.
   * </pre>
   *
   * <code>int64 total_rows = 4;</code>
   *
   * @return The totalRows.
   */
  long getTotalRows();
}
