com.google.api.services.bigquery.model.JobStatistics2 Maven / Gradle / Ivy
/*
* 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
*
* http://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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.bigquery.model;
/**
* Statistics for a query job.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JobStatistics2 extends com.google.api.client.json.GenericJson {
/**
* Output only. BI Engine specific Statistics.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BiEngineStatistics biEngineStatistics;
/**
* Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related
* to the Google Cloud notion of "free tier". The value here is a measure of the query's resource
* consumption relative to the amount of data scanned. For on-demand queries, the limit is 100,
* and all queries within this limit are billed at the standard on-demand rates. On-demand queries
* that exceed this limit will fail with a billingTierLimitExceeded error.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer billingTier;
/**
* Output only. Whether the query result was fetched from the query cache.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean cacheHit;
/**
* Output only. Referenced dataset for DCL statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DatasetReference dclTargetDataset;
/**
* Output only. Referenced table for DCL statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TableReference dclTargetTable;
/**
* Output only. Referenced view for DCL statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TableReference dclTargetView;
/**
* Output only. The number of row access policies affected by a DDL statement. Present only for
* DROP ALL ROW ACCESS POLICIES queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long ddlAffectedRowAccessPolicyCount;
/**
* Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TableReference ddlDestinationTable;
/**
* Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL
* target.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String ddlOperationPerformed;
/**
* Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset)
* queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DatasetReference ddlTargetDataset;
/**
* Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
* queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RoutineReference ddlTargetRoutine;
/**
* Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY
* queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private RowAccessPolicyReference ddlTargetRowAccessPolicy;
/**
* Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW
* ACCESS POLICIES queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TableReference ddlTargetTable;
/**
* Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DmlStatistics dmlStats;
/**
* Output only. The original estimate of bytes processed for the job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long estimatedBytesProcessed;
/**
* Output only. Stats for EXPORT DATA statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ExportDataStatistics exportDataStatistics;
/**
* Output only. Job cost breakdown as bigquery internal cost and external service costs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List externalServiceCosts;
static {
// hack to force ProGuard to consider ExternalServiceCost used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(ExternalServiceCost.class);
}
/**
* Output only. Statistics for a LOAD query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LoadQueryStatistics loadQueryStatistics;
/**
* Output only. Statistics of materialized views of a query job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MaterializedViewStatistics materializedViewStatistics;
/**
* Output only. Statistics of metadata cache usage in a query for BigLake tables.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MetadataCacheStatistics metadataCacheStatistics;
/**
* Output only. Statistics of a BigQuery ML training job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MlStatistics mlStatistics;
/**
* Deprecated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private BigQueryModelTraining modelTraining;
/**
* Deprecated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer modelTrainingCurrentIteration;
/**
* Deprecated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long modelTrainingExpectedTotalIteration;
/**
* Output only. The number of rows affected by a DML statement. Present only for DML statements
* INSERT, UPDATE or DELETE.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long numDmlAffectedRows;
/**
* Output only. Performance insights.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PerformanceInsights performanceInsights;
/**
* Output only. Query optimization information for a QUERY job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private QueryInfo queryInfo;
/**
* Output only. Describes execution plan for the query.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List queryPlan;
static {
// hack to force ProGuard to consider ExplainQueryStage used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(ExplainQueryStage.class);
}
/**
* Output only. Referenced routines for the job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List referencedRoutines;
/**
* Output only. Referenced tables for the job. Queries that reference more than 50 tables will not
* have a complete list.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List referencedTables;
/**
* Output only. Job resource usage breakdown by reservation. This field reported misleading
* information and will no longer be populated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List reservationUsage;
static {
// hack to force ProGuard to consider ReservationUsage used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(ReservationUsage.class);
}
/**
* Output only. The schema of the results. Present only for successful dry run of non-legacy SQL
* queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private TableSchema schema;
/**
* Output only. Search query specific statistics.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SearchStatistics searchStatistics;
/**
* Output only. Statistics of a Spark procedure job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SparkStatistics sparkStatistics;
/**
* Output only. The type of query statement, if valid. Possible values: * `SELECT`:
* [`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. *
* `ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert)
* statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-
* syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-
* sql/query-syntax#update_statement) statement. * `DELETE`:
* [`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. *
* `MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement.
* * `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`:
* [`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-
* language#query_statement) statement. * `CREATE_VIEW`: [`CREATE
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
* statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-
* sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`:
* [`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE
* PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
* statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
* POLICY`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
* statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-
* sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
* statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-
* syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
* statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
* statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW
* ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER
* MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#aalter_schema_set_options_statement) statement. * `SCRIPT`:
* [`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`:
* [`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
* statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT
* DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement.
* * `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
* export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-
* sql/other-statements#load_data_statement) statement. * `CALL`:
* [`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String statementType;
/**
* Output only. Describes a timeline of job execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List timeline;
/**
* Output only. If the project is configured to use on-demand pricing, then this field contains
* the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
* you are not billed for bytes and this field is informational only.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long totalBytesBilled;
/**
* Output only. Total bytes processed for the job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long totalBytesProcessed;
/**
* Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the
* accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown.
* PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would
* cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String totalBytesProcessedAccuracy;
/**
* Output only. Total number of partitions processed from all partitioned tables referenced in the
* job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long totalPartitionsProcessed;
/**
* Output only. Slot-milliseconds for the job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long totalSlotMs;
/**
* Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and
* CREATE TABLE AS SELECT (CTAS).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long transferredBytes;
/**
* Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run
* validation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List undeclaredQueryParameters;
/**
* Output only. Vector Search query specific statistics.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VectorSearchStatistics vectorSearchStatistics;
/**
* Output only. BI Engine specific Statistics.
* @return value or {@code null} for none
*/
public BiEngineStatistics getBiEngineStatistics() {
return biEngineStatistics;
}
/**
* Output only. BI Engine specific Statistics.
* @param biEngineStatistics biEngineStatistics or {@code null} for none
*/
public JobStatistics2 setBiEngineStatistics(BiEngineStatistics biEngineStatistics) {
this.biEngineStatistics = biEngineStatistics;
return this;
}
/**
* Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related
* to the Google Cloud notion of "free tier". The value here is a measure of the query's resource
* consumption relative to the amount of data scanned. For on-demand queries, the limit is 100,
* and all queries within this limit are billed at the standard on-demand rates. On-demand queries
* that exceed this limit will fail with a billingTierLimitExceeded error.
* @return value or {@code null} for none
*/
public java.lang.Integer getBillingTier() {
return billingTier;
}
/**
* Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related
* to the Google Cloud notion of "free tier". The value here is a measure of the query's resource
* consumption relative to the amount of data scanned. For on-demand queries, the limit is 100,
* and all queries within this limit are billed at the standard on-demand rates. On-demand queries
* that exceed this limit will fail with a billingTierLimitExceeded error.
* @param billingTier billingTier or {@code null} for none
*/
public JobStatistics2 setBillingTier(java.lang.Integer billingTier) {
this.billingTier = billingTier;
return this;
}
/**
* Output only. Whether the query result was fetched from the query cache.
* @return value or {@code null} for none
*/
public java.lang.Boolean getCacheHit() {
return cacheHit;
}
/**
* Output only. Whether the query result was fetched from the query cache.
* @param cacheHit cacheHit or {@code null} for none
*/
public JobStatistics2 setCacheHit(java.lang.Boolean cacheHit) {
this.cacheHit = cacheHit;
return this;
}
/**
* Output only. Referenced dataset for DCL statement.
* @return value or {@code null} for none
*/
public DatasetReference getDclTargetDataset() {
return dclTargetDataset;
}
/**
* Output only. Referenced dataset for DCL statement.
* @param dclTargetDataset dclTargetDataset or {@code null} for none
*/
public JobStatistics2 setDclTargetDataset(DatasetReference dclTargetDataset) {
this.dclTargetDataset = dclTargetDataset;
return this;
}
/**
* Output only. Referenced table for DCL statement.
* @return value or {@code null} for none
*/
public TableReference getDclTargetTable() {
return dclTargetTable;
}
/**
* Output only. Referenced table for DCL statement.
* @param dclTargetTable dclTargetTable or {@code null} for none
*/
public JobStatistics2 setDclTargetTable(TableReference dclTargetTable) {
this.dclTargetTable = dclTargetTable;
return this;
}
/**
* Output only. Referenced view for DCL statement.
* @return value or {@code null} for none
*/
public TableReference getDclTargetView() {
return dclTargetView;
}
/**
* Output only. Referenced view for DCL statement.
* @param dclTargetView dclTargetView or {@code null} for none
*/
public JobStatistics2 setDclTargetView(TableReference dclTargetView) {
this.dclTargetView = dclTargetView;
return this;
}
/**
* Output only. The number of row access policies affected by a DDL statement. Present only for
* DROP ALL ROW ACCESS POLICIES queries.
* @return value or {@code null} for none
*/
public java.lang.Long getDdlAffectedRowAccessPolicyCount() {
return ddlAffectedRowAccessPolicyCount;
}
/**
* Output only. The number of row access policies affected by a DDL statement. Present only for
* DROP ALL ROW ACCESS POLICIES queries.
* @param ddlAffectedRowAccessPolicyCount ddlAffectedRowAccessPolicyCount or {@code null} for none
*/
public JobStatistics2 setDdlAffectedRowAccessPolicyCount(java.lang.Long ddlAffectedRowAccessPolicyCount) {
this.ddlAffectedRowAccessPolicyCount = ddlAffectedRowAccessPolicyCount;
return this;
}
/**
* Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.
* @return value or {@code null} for none
*/
public TableReference getDdlDestinationTable() {
return ddlDestinationTable;
}
/**
* Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.
* @param ddlDestinationTable ddlDestinationTable or {@code null} for none
*/
public JobStatistics2 setDdlDestinationTable(TableReference ddlDestinationTable) {
this.ddlDestinationTable = ddlDestinationTable;
return this;
}
/**
* Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL
* target.
* @return value or {@code null} for none
*/
public java.lang.String getDdlOperationPerformed() {
return ddlOperationPerformed;
}
/**
* Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL
* target.
* @param ddlOperationPerformed ddlOperationPerformed or {@code null} for none
*/
public JobStatistics2 setDdlOperationPerformed(java.lang.String ddlOperationPerformed) {
this.ddlOperationPerformed = ddlOperationPerformed;
return this;
}
/**
* Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset)
* queries.
* @return value or {@code null} for none
*/
public DatasetReference getDdlTargetDataset() {
return ddlTargetDataset;
}
/**
* Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset)
* queries.
* @param ddlTargetDataset ddlTargetDataset or {@code null} for none
*/
public JobStatistics2 setDdlTargetDataset(DatasetReference ddlTargetDataset) {
this.ddlTargetDataset = ddlTargetDataset;
return this;
}
/**
* Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
* queries.
* @return value or {@code null} for none
*/
public RoutineReference getDdlTargetRoutine() {
return ddlTargetRoutine;
}
/**
* Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
* queries.
* @param ddlTargetRoutine ddlTargetRoutine or {@code null} for none
*/
public JobStatistics2 setDdlTargetRoutine(RoutineReference ddlTargetRoutine) {
this.ddlTargetRoutine = ddlTargetRoutine;
return this;
}
/**
* Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY
* queries.
* @return value or {@code null} for none
*/
public RowAccessPolicyReference getDdlTargetRowAccessPolicy() {
return ddlTargetRowAccessPolicy;
}
/**
* Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY
* queries.
* @param ddlTargetRowAccessPolicy ddlTargetRowAccessPolicy or {@code null} for none
*/
public JobStatistics2 setDdlTargetRowAccessPolicy(RowAccessPolicyReference ddlTargetRowAccessPolicy) {
this.ddlTargetRowAccessPolicy = ddlTargetRowAccessPolicy;
return this;
}
/**
* Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW
* ACCESS POLICIES queries.
* @return value or {@code null} for none
*/
public TableReference getDdlTargetTable() {
return ddlTargetTable;
}
/**
* Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW
* ACCESS POLICIES queries.
* @param ddlTargetTable ddlTargetTable or {@code null} for none
*/
public JobStatistics2 setDdlTargetTable(TableReference ddlTargetTable) {
this.ddlTargetTable = ddlTargetTable;
return this;
}
/**
* Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
* @return value or {@code null} for none
*/
public DmlStatistics getDmlStats() {
return dmlStats;
}
/**
* Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.
* @param dmlStats dmlStats or {@code null} for none
*/
public JobStatistics2 setDmlStats(DmlStatistics dmlStats) {
this.dmlStats = dmlStats;
return this;
}
/**
* Output only. The original estimate of bytes processed for the job.
* @return value or {@code null} for none
*/
public java.lang.Long getEstimatedBytesProcessed() {
return estimatedBytesProcessed;
}
/**
* Output only. The original estimate of bytes processed for the job.
* @param estimatedBytesProcessed estimatedBytesProcessed or {@code null} for none
*/
public JobStatistics2 setEstimatedBytesProcessed(java.lang.Long estimatedBytesProcessed) {
this.estimatedBytesProcessed = estimatedBytesProcessed;
return this;
}
/**
* Output only. Stats for EXPORT DATA statement.
* @return value or {@code null} for none
*/
public ExportDataStatistics getExportDataStatistics() {
return exportDataStatistics;
}
/**
* Output only. Stats for EXPORT DATA statement.
* @param exportDataStatistics exportDataStatistics or {@code null} for none
*/
public JobStatistics2 setExportDataStatistics(ExportDataStatistics exportDataStatistics) {
this.exportDataStatistics = exportDataStatistics;
return this;
}
/**
* Output only. Job cost breakdown as bigquery internal cost and external service costs.
* @return value or {@code null} for none
*/
public java.util.List getExternalServiceCosts() {
return externalServiceCosts;
}
/**
* Output only. Job cost breakdown as bigquery internal cost and external service costs.
* @param externalServiceCosts externalServiceCosts or {@code null} for none
*/
public JobStatistics2 setExternalServiceCosts(java.util.List externalServiceCosts) {
this.externalServiceCosts = externalServiceCosts;
return this;
}
/**
* Output only. Statistics for a LOAD query.
* @return value or {@code null} for none
*/
public LoadQueryStatistics getLoadQueryStatistics() {
return loadQueryStatistics;
}
/**
* Output only. Statistics for a LOAD query.
* @param loadQueryStatistics loadQueryStatistics or {@code null} for none
*/
public JobStatistics2 setLoadQueryStatistics(LoadQueryStatistics loadQueryStatistics) {
this.loadQueryStatistics = loadQueryStatistics;
return this;
}
/**
* Output only. Statistics of materialized views of a query job.
* @return value or {@code null} for none
*/
public MaterializedViewStatistics getMaterializedViewStatistics() {
return materializedViewStatistics;
}
/**
* Output only. Statistics of materialized views of a query job.
* @param materializedViewStatistics materializedViewStatistics or {@code null} for none
*/
public JobStatistics2 setMaterializedViewStatistics(MaterializedViewStatistics materializedViewStatistics) {
this.materializedViewStatistics = materializedViewStatistics;
return this;
}
/**
* Output only. Statistics of metadata cache usage in a query for BigLake tables.
* @return value or {@code null} for none
*/
public MetadataCacheStatistics getMetadataCacheStatistics() {
return metadataCacheStatistics;
}
/**
* Output only. Statistics of metadata cache usage in a query for BigLake tables.
* @param metadataCacheStatistics metadataCacheStatistics or {@code null} for none
*/
public JobStatistics2 setMetadataCacheStatistics(MetadataCacheStatistics metadataCacheStatistics) {
this.metadataCacheStatistics = metadataCacheStatistics;
return this;
}
/**
* Output only. Statistics of a BigQuery ML training job.
* @return value or {@code null} for none
*/
public MlStatistics getMlStatistics() {
return mlStatistics;
}
/**
* Output only. Statistics of a BigQuery ML training job.
* @param mlStatistics mlStatistics or {@code null} for none
*/
public JobStatistics2 setMlStatistics(MlStatistics mlStatistics) {
this.mlStatistics = mlStatistics;
return this;
}
/**
* Deprecated.
* @return value or {@code null} for none
*/
public BigQueryModelTraining getModelTraining() {
return modelTraining;
}
/**
* Deprecated.
* @param modelTraining modelTraining or {@code null} for none
*/
public JobStatistics2 setModelTraining(BigQueryModelTraining modelTraining) {
this.modelTraining = modelTraining;
return this;
}
/**
* Deprecated.
* @return value or {@code null} for none
*/
public java.lang.Integer getModelTrainingCurrentIteration() {
return modelTrainingCurrentIteration;
}
/**
* Deprecated.
* @param modelTrainingCurrentIteration modelTrainingCurrentIteration or {@code null} for none
*/
public JobStatistics2 setModelTrainingCurrentIteration(java.lang.Integer modelTrainingCurrentIteration) {
this.modelTrainingCurrentIteration = modelTrainingCurrentIteration;
return this;
}
/**
* Deprecated.
* @return value or {@code null} for none
*/
public java.lang.Long getModelTrainingExpectedTotalIteration() {
return modelTrainingExpectedTotalIteration;
}
/**
* Deprecated.
* @param modelTrainingExpectedTotalIteration modelTrainingExpectedTotalIteration or {@code null} for none
*/
public JobStatistics2 setModelTrainingExpectedTotalIteration(java.lang.Long modelTrainingExpectedTotalIteration) {
this.modelTrainingExpectedTotalIteration = modelTrainingExpectedTotalIteration;
return this;
}
/**
* Output only. The number of rows affected by a DML statement. Present only for DML statements
* INSERT, UPDATE or DELETE.
* @return value or {@code null} for none
*/
public java.lang.Long getNumDmlAffectedRows() {
return numDmlAffectedRows;
}
/**
* Output only. The number of rows affected by a DML statement. Present only for DML statements
* INSERT, UPDATE or DELETE.
* @param numDmlAffectedRows numDmlAffectedRows or {@code null} for none
*/
public JobStatistics2 setNumDmlAffectedRows(java.lang.Long numDmlAffectedRows) {
this.numDmlAffectedRows = numDmlAffectedRows;
return this;
}
/**
* Output only. Performance insights.
* @return value or {@code null} for none
*/
public PerformanceInsights getPerformanceInsights() {
return performanceInsights;
}
/**
* Output only. Performance insights.
* @param performanceInsights performanceInsights or {@code null} for none
*/
public JobStatistics2 setPerformanceInsights(PerformanceInsights performanceInsights) {
this.performanceInsights = performanceInsights;
return this;
}
/**
* Output only. Query optimization information for a QUERY job.
* @return value or {@code null} for none
*/
public QueryInfo getQueryInfo() {
return queryInfo;
}
/**
* Output only. Query optimization information for a QUERY job.
* @param queryInfo queryInfo or {@code null} for none
*/
public JobStatistics2 setQueryInfo(QueryInfo queryInfo) {
this.queryInfo = queryInfo;
return this;
}
/**
* Output only. Describes execution plan for the query.
* @return value or {@code null} for none
*/
public java.util.List getQueryPlan() {
return queryPlan;
}
/**
* Output only. Describes execution plan for the query.
* @param queryPlan queryPlan or {@code null} for none
*/
public JobStatistics2 setQueryPlan(java.util.List queryPlan) {
this.queryPlan = queryPlan;
return this;
}
/**
* Output only. Referenced routines for the job.
* @return value or {@code null} for none
*/
public java.util.List getReferencedRoutines() {
return referencedRoutines;
}
/**
* Output only. Referenced routines for the job.
* @param referencedRoutines referencedRoutines or {@code null} for none
*/
public JobStatistics2 setReferencedRoutines(java.util.List referencedRoutines) {
this.referencedRoutines = referencedRoutines;
return this;
}
/**
* Output only. Referenced tables for the job. Queries that reference more than 50 tables will not
* have a complete list.
* @return value or {@code null} for none
*/
public java.util.List getReferencedTables() {
return referencedTables;
}
/**
* Output only. Referenced tables for the job. Queries that reference more than 50 tables will not
* have a complete list.
* @param referencedTables referencedTables or {@code null} for none
*/
public JobStatistics2 setReferencedTables(java.util.List referencedTables) {
this.referencedTables = referencedTables;
return this;
}
/**
* Output only. Job resource usage breakdown by reservation. This field reported misleading
* information and will no longer be populated.
* @return value or {@code null} for none
*/
public java.util.List getReservationUsage() {
return reservationUsage;
}
/**
* Output only. Job resource usage breakdown by reservation. This field reported misleading
* information and will no longer be populated.
* @param reservationUsage reservationUsage or {@code null} for none
*/
public JobStatistics2 setReservationUsage(java.util.List reservationUsage) {
this.reservationUsage = reservationUsage;
return this;
}
/**
* Output only. The schema of the results. Present only for successful dry run of non-legacy SQL
* queries.
* @return value or {@code null} for none
*/
public TableSchema getSchema() {
return schema;
}
/**
* Output only. The schema of the results. Present only for successful dry run of non-legacy SQL
* queries.
* @param schema schema or {@code null} for none
*/
public JobStatistics2 setSchema(TableSchema schema) {
this.schema = schema;
return this;
}
/**
* Output only. Search query specific statistics.
* @return value or {@code null} for none
*/
public SearchStatistics getSearchStatistics() {
return searchStatistics;
}
/**
* Output only. Search query specific statistics.
* @param searchStatistics searchStatistics or {@code null} for none
*/
public JobStatistics2 setSearchStatistics(SearchStatistics searchStatistics) {
this.searchStatistics = searchStatistics;
return this;
}
/**
* Output only. Statistics of a Spark procedure job.
* @return value or {@code null} for none
*/
public SparkStatistics getSparkStatistics() {
return sparkStatistics;
}
/**
* Output only. Statistics of a Spark procedure job.
* @param sparkStatistics sparkStatistics or {@code null} for none
*/
public JobStatistics2 setSparkStatistics(SparkStatistics sparkStatistics) {
this.sparkStatistics = sparkStatistics;
return this;
}
/**
* Output only. The type of query statement, if valid. Possible values: * `SELECT`:
* [`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. *
* `ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert)
* statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-
* syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-
* sql/query-syntax#update_statement) statement. * `DELETE`:
* [`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. *
* `MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement.
* * `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`:
* [`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-
* language#query_statement) statement. * `CREATE_VIEW`: [`CREATE
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
* statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-
* sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`:
* [`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE
* PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
* statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
* POLICY`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
* statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-
* sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
* statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-
* syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
* statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
* statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW
* ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER
* MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#aalter_schema_set_options_statement) statement. * `SCRIPT`:
* [`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`:
* [`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
* statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT
* DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement.
* * `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
* export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-
* sql/other-statements#load_data_statement) statement. * `CALL`:
* [`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement.
* @return value or {@code null} for none
*/
public java.lang.String getStatementType() {
return statementType;
}
/**
* Output only. The type of query statement, if valid. Possible values: * `SELECT`:
* [`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. *
* `ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert)
* statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-
* syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-
* sql/query-syntax#update_statement) statement. * `DELETE`:
* [`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. *
* `MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement.
* * `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`:
* [`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-
* language#query_statement) statement. * `CREATE_VIEW`: [`CREATE
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement)
* statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-
* sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`:
* [`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE
* PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure)
* statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS
* POLICY`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement)
* statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-
* sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement)
* statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-
* syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE
* FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function)
* statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH
* INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index)
* statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-
* definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW
* ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-
* language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER
* VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER
* MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-
* language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER
* SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-
* language#aalter_schema_set_options_statement) statement. * `SCRIPT`:
* [`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`:
* [`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement)
* statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL
* TABLE`](/bigquery/docs/reference/standard-sql/data-definition-
* language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT
* DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement.
* * `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
* export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-
* sql/other-statements#load_data_statement) statement. * `CALL`:
* [`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement.
* @param statementType statementType or {@code null} for none
*/
public JobStatistics2 setStatementType(java.lang.String statementType) {
this.statementType = statementType;
return this;
}
/**
* Output only. Describes a timeline of job execution.
* @return value or {@code null} for none
*/
public java.util.List getTimeline() {
return timeline;
}
/**
* Output only. Describes a timeline of job execution.
* @param timeline timeline or {@code null} for none
*/
public JobStatistics2 setTimeline(java.util.List timeline) {
this.timeline = timeline;
return this;
}
/**
* Output only. If the project is configured to use on-demand pricing, then this field contains
* the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
* you are not billed for bytes and this field is informational only.
* @return value or {@code null} for none
*/
public java.lang.Long getTotalBytesBilled() {
return totalBytesBilled;
}
/**
* Output only. If the project is configured to use on-demand pricing, then this field contains
* the total bytes billed for the job. If the project is configured to use flat-rate pricing, then
* you are not billed for bytes and this field is informational only.
* @param totalBytesBilled totalBytesBilled or {@code null} for none
*/
public JobStatistics2 setTotalBytesBilled(java.lang.Long totalBytesBilled) {
this.totalBytesBilled = totalBytesBilled;
return this;
}
/**
* Output only. Total bytes processed for the job.
* @return value or {@code null} for none
*/
public java.lang.Long getTotalBytesProcessed() {
return totalBytesProcessed;
}
/**
* Output only. Total bytes processed for the job.
* @param totalBytesProcessed totalBytesProcessed or {@code null} for none
*/
public JobStatistics2 setTotalBytesProcessed(java.lang.Long totalBytesProcessed) {
this.totalBytesProcessed = totalBytesProcessed;
return this;
}
/**
* Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the
* accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown.
* PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would
* cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
* @return value or {@code null} for none
*/
public java.lang.String getTotalBytesProcessedAccuracy() {
return totalBytesProcessedAccuracy;
}
/**
* Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the
* accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown.
* PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would
* cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
* @param totalBytesProcessedAccuracy totalBytesProcessedAccuracy or {@code null} for none
*/
public JobStatistics2 setTotalBytesProcessedAccuracy(java.lang.String totalBytesProcessedAccuracy) {
this.totalBytesProcessedAccuracy = totalBytesProcessedAccuracy;
return this;
}
/**
* Output only. Total number of partitions processed from all partitioned tables referenced in the
* job.
* @return value or {@code null} for none
*/
public java.lang.Long getTotalPartitionsProcessed() {
return totalPartitionsProcessed;
}
/**
* Output only. Total number of partitions processed from all partitioned tables referenced in the
* job.
* @param totalPartitionsProcessed totalPartitionsProcessed or {@code null} for none
*/
public JobStatistics2 setTotalPartitionsProcessed(java.lang.Long totalPartitionsProcessed) {
this.totalPartitionsProcessed = totalPartitionsProcessed;
return this;
}
/**
* Output only. Slot-milliseconds for the job.
* @return value or {@code null} for none
*/
public java.lang.Long getTotalSlotMs() {
return totalSlotMs;
}
/**
* Output only. Slot-milliseconds for the job.
* @param totalSlotMs totalSlotMs or {@code null} for none
*/
public JobStatistics2 setTotalSlotMs(java.lang.Long totalSlotMs) {
this.totalSlotMs = totalSlotMs;
return this;
}
/**
* Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and
* CREATE TABLE AS SELECT (CTAS).
* @return value or {@code null} for none
*/
public java.lang.Long getTransferredBytes() {
return transferredBytes;
}
/**
* Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and
* CREATE TABLE AS SELECT (CTAS).
* @param transferredBytes transferredBytes or {@code null} for none
*/
public JobStatistics2 setTransferredBytes(java.lang.Long transferredBytes) {
this.transferredBytes = transferredBytes;
return this;
}
/**
* Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run
* validation.
* @return value or {@code null} for none
*/
public java.util.List getUndeclaredQueryParameters() {
return undeclaredQueryParameters;
}
/**
* Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run
* validation.
* @param undeclaredQueryParameters undeclaredQueryParameters or {@code null} for none
*/
public JobStatistics2 setUndeclaredQueryParameters(java.util.List undeclaredQueryParameters) {
this.undeclaredQueryParameters = undeclaredQueryParameters;
return this;
}
/**
* Output only. Vector Search query specific statistics.
* @return value or {@code null} for none
*/
public VectorSearchStatistics getVectorSearchStatistics() {
return vectorSearchStatistics;
}
/**
* Output only. Vector Search query specific statistics.
* @param vectorSearchStatistics vectorSearchStatistics or {@code null} for none
*/
public JobStatistics2 setVectorSearchStatistics(VectorSearchStatistics vectorSearchStatistics) {
this.vectorSearchStatistics = vectorSearchStatistics;
return this;
}
@Override
public JobStatistics2 set(String fieldName, Object value) {
return (JobStatistics2) super.set(fieldName, value);
}
@Override
public JobStatistics2 clone() {
return (JobStatistics2) super.clone();
}
/**
* Job resource usage breakdown by reservation.
*/
public static final class ReservationUsage extends com.google.api.client.json.GenericJson {
/**
* Reservation name or "unreserved" for on-demand resource usage and multi-statement queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Total slot milliseconds used by the reservation for a particular job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long slotMs;
/**
* Reservation name or "unreserved" for on-demand resource usage and multi-statement queries.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Reservation name or "unreserved" for on-demand resource usage and multi-statement queries.
* @param name name or {@code null} for none
*/
public ReservationUsage setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Total slot milliseconds used by the reservation for a particular job.
* @return value or {@code null} for none
*/
public java.lang.Long getSlotMs() {
return slotMs;
}
/**
* Total slot milliseconds used by the reservation for a particular job.
* @param slotMs slotMs or {@code null} for none
*/
public ReservationUsage setSlotMs(java.lang.Long slotMs) {
this.slotMs = slotMs;
return this;
}
@Override
public ReservationUsage set(String fieldName, Object value) {
return (ReservationUsage) super.set(fieldName, value);
}
@Override
public ReservationUsage clone() {
return (ReservationUsage) super.clone();
}
}
}