Show / Hide Table of Contents

Class QueryResponse

Inheritance
System.Object
QueryResponse
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Bigquery.v2.Data
Assembly: Google.Apis.Bigquery.v2.dll
Syntax
public class QueryResponse : IDirectResponseSchema

Properties

CacheHit

Whether the query result was fetched from the query cache.

Declaration
[JsonProperty("cacheHit")]
public virtual bool? CacheHit { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

DmlStats

[Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE.

Declaration
[JsonProperty("dmlStats")]
public virtual DmlStatistics DmlStats { get; set; }
Property Value
Type Description
DmlStatistics

Errors

[Output-only] The first errors or warnings encountered during the running of the job. The final message includes the number of errors that caused the process to stop. Errors here do not necessarily mean that the job has completed or was unsuccessful.

Declaration
[JsonProperty("errors")]
public virtual IList<ErrorProto> Errors { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<ErrorProto>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

JobComplete

Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.

Declaration
[JsonProperty("jobComplete")]
public virtual bool? JobComplete { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

JobReference

Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).

Declaration
[JsonProperty("jobReference")]
public virtual JobReference JobReference { get; set; }
Property Value
Type Description
JobReference

Kind

The resource type.

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
System.String

NumDmlAffectedRows

[Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.

Declaration
[JsonProperty("numDmlAffectedRows")]
public virtual long? NumDmlAffectedRows { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

PageToken

A token used for paging results.

Declaration
[JsonProperty("pageToken")]
public virtual string PageToken { get; set; }
Property Value
Type Description
System.String

Rows

An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above.

Declaration
[JsonProperty("rows")]
public virtual IList<TableRow> Rows { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<TableRow>

Schema

The schema of the results. Present only when the query completes successfully.

Declaration
[JsonProperty("schema")]
public virtual TableSchema Schema { get; set; }
Property Value
Type Description
TableSchema

SessionInfoTemplate

[Output-only] [Preview] Information of the session if this job is part of one.

Declaration
[JsonProperty("sessionInfoTemplate")]
public virtual SessionInfo SessionInfoTemplate { get; set; }
Property Value
Type Description
SessionInfo

TotalBytesProcessed

The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.

Declaration
[JsonProperty("totalBytesProcessed")]
public virtual long? TotalBytesProcessed { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

TotalRows

The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.

Declaration
[JsonProperty("totalRows")]
public virtual ulong? TotalRows { get; set; }
Property Value
Type Description
System.Nullable<System.UInt64>

Implements

IDirectResponseSchema
In This Article
Back to top