API Reference google_api_big_query v0.70.1

Modules

API client metadata for GoogleApi.BigQuery.V2.

API calls for all endpoints tagged Datasets.

API calls for all endpoints tagged Jobs.

API calls for all endpoints tagged Models.

API calls for all endpoints tagged Projects.

API calls for all endpoints tagged Routines.

API calls for all endpoints tagged RowAccessPolicies.

API calls for all endpoints tagged Tabledata.

API calls for all endpoints tagged Tables.

Handle Tesla connections for GoogleApi.BigQuery.V2.

Aggregate metrics for classification/classifier models. For multi-class models, the metrics are either macro-averaged or micro-averaged. When macro-averaged, the metrics are calculated for each label and then an unweighted average is taken of those values. When micro-averaged, the metric is calculated globally by counting the total number of correctly predicted rows.

Input/output argument of a function or a stored procedure.

Model evaluation metrics for ARIMA forecasting models.

Arima order, can be used for both non-seasonal and seasonal parts.

(Auto-)arima fitting result. Wrap everything in ArimaResult for easier refactoring if we want to use model-specific iteration results.

Model evaluation metrics for a single ARIMA forecasting model.

Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.

Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

Attributes

  • useAvroLogicalTypes (type: boolean(), default: nil) - [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).

Attributes

  • code (type: String.t, default: $(reason.code)) - [Output-only] High-level BI Engine reason for partial or disabled acceleration.
  • message (type: String.t, default: $(reason.message)) - [Output-only] Free form human-readable reason for partial or disabled acceleration.

Attributes

  • biEngineMode (type: String.t, default: $(stats.bi_engine_mode)) - [Output-only] Specifies which mode of BI Engine acceleration was performed (if any).
  • biEngineReasons (type: list(GoogleApi.BigQuery.V2.Model.BiEngineReason.t), default: nil) - In case of DISABLED or PARTIAL bi_engine_mode, these contain the explanatory reasons as to why BI Engine could not accelerate. In case the full query was accelerated, this field is not populated.

Attributes

  • currentIteration (type: integer(), default: nil) - [Output-only, Beta] Index of current ML training iteration. Updated during create model query job to show job progress.
  • expectedTotalIterations (type: String.t, default: nil) - [Output-only, Beta] Expected number of iterations for the create model query job specified as num_iterations in the input query. The actual total number of iterations may be less than this number due to early stop.

Attributes

  • encoding (type: String.t, default: nil) - [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels.
  • fieldName (type: String.t, default: nil) - [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
  • onlyReadLatest (type: boolean(), default: nil) - [Optional] If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels.
  • qualifierEncoded (type: String.t, default: nil) - [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifierstring field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9]*, a valid identifier must be provided as field_name.
  • qualifierString (type: String.t, default: nil) -
  • type (type: String.t, default: nil) - [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels.

Attributes

  • columns (type: list(GoogleApi.BigQuery.V2.Model.BigtableColumn.t), default: nil) - [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
  • encoding (type: String.t, default: nil) - [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it.
  • familyId (type: String.t, default: nil) - Identifier of the column family.
  • onlyReadLatest (type: boolean(), default: nil) - [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column.
  • type (type: String.t, default: nil) - [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it.

Attributes

  • columnFamilies (type: list(GoogleApi.BigQuery.V2.Model.BigtableColumnFamily.t), default: nil) - [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
  • ignoreUnspecifiedColumnFamilies (type: boolean(), default: nil) - [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
  • readRowkeyAsString (type: boolean(), default: nil) - [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.

Evaluation metrics for binary classification/classifier models.

Confusion matrix for binary classification models.

Associates members, or principals, with a role.

Attributes

  • durationMs (type: String.t, default: nil) - [Output-only, Beta] Time taken to run the training iteration in milliseconds.
  • evalLoss (type: float(), default: nil) - [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
  • index (type: integer(), default: nil) - [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
  • learnRate (type: float(), default: nil) - [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
  • trainingLoss (type: float(), default: nil) - [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.

Attributes

  • iterationResults (type: list(GoogleApi.BigQuery.V2.Model.BqmlIterationResult.t), default: nil) - [Output-only, Beta] List of each iteration results.
  • startTime (type: DateTime.t, default: nil) - [Output-only, Beta] Training run start time in milliseconds since the epoch.
  • state (type: String.t, default: nil) - [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
  • trainingOptions (type: GoogleApi.BigQuery.V2.Model.BqmlTrainingRunTrainingOptions.t, default: nil) - [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.

[Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.

Representative value of a categorical feature.

Represents the count of a single category within the cluster.

Message containing the information about one cluster.

Information about a single cluster for clustering model.

Attributes

  • fields (type: list(String.t), default: nil) - [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.

Evaluation metrics for clustering models.

Confusion matrix for multi-class classification models.

Attributes

  • key (type: String.t, default: nil) - [Required] Name of the connection property to set.
  • value (type: String.t, default: nil) - [Required] Value of the connection property.

Attributes

  • allowJaggedRows (type: boolean(), default: nil) - [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
  • allowQuotedNewlines (type: boolean(), default: nil) - [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
  • encoding (type: String.t, default: nil) - [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
  • fieldDelimiter (type: String.t, default: nil) - [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
  • null_marker (type: String.t, default: nil) - [Optional] An custom string that will represent a NULL value in CSV import data.
  • quote (type: String.t, default: ") - [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
  • skipLeadingRows (type: String.t, default: nil) - [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.

Data split result. This contains references to the training and evaluation data tables that were used to train the model.

Attributes

  • access (type: list(GoogleApi.BigQuery.V2.Model.DatasetAccess.t), default: nil) - [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
  • creationTime (type: String.t, default: nil) - [Output-only] The time when this dataset was created, in milliseconds since the epoch.
  • datasetReference (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - [Required] A reference that identifies the dataset.
  • defaultCollation (type: String.t, default: nil) - [Output-only] The default collation of the dataset.
  • defaultEncryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) -
  • defaultPartitionExpirationMs (type: String.t, default: nil) - [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
  • defaultTableExpirationMs (type: String.t, default: nil) - [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
  • description (type: String.t, default: nil) - [Optional] A user-friendly description of the dataset.
  • etag (type: String.t, default: nil) - [Output-only] A hash of the resource.
  • friendlyName (type: String.t, default: nil) - [Optional] A descriptive name for the dataset.
  • id (type: String.t, default: nil) - [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
  • isCaseInsensitive (type: boolean(), default: nil) - [Optional] Indicates if table names are case insensitive in the dataset.
  • kind (type: String.t, default: bigquery#dataset) - [Output-only] The resource type.
  • labels (type: map(), default: nil) - The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
  • lastModifiedTime (type: String.t, default: nil) - [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
  • location (type: String.t, default: nil) - The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
  • satisfiesPZS (type: boolean(), default: nil) - [Output-only] Reserved for future use.
  • selfLink (type: String.t, default: nil) - [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.

Attributes

  • dataset (type: GoogleApi.BigQuery.V2.Model.DatasetAccessEntry.t, default: nil) - [Pick one] A grant authorizing all resources of a particular type in a particular dataset access to this dataset. Only views are supported for now. The role field is not required when this field is set. If that dataset is deleted and re-created, its access needs to be granted again via an update operation.
  • domain (type: String.t, default: nil) - [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com". Maps to IAM policy member "domain:DOMAIN".
  • groupByEmail (type: String.t, default: nil) - [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member "group:GROUP".
  • iamMember (type: String.t, default: nil) - [Pick one] Some other type of member that appears in the IAM Policy but isn't a user, group, domain, or special group.
  • role (type: String.t, default: nil) - [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to "roles/bigquery.dataOwner", it will be returned back as "OWNER".
  • routine (type: GoogleApi.BigQuery.V2.Model.RoutineReference.t, default: nil) - [Pick one] A routine from a different dataset to grant access to. Queries executed against that routine will have read access to views/tables/routines in this dataset. Only UDF is supported for now. The role field is not required when this field is set. If that routine is updated by any user, access to the routine needs to be granted again via an update operation.
  • specialGroup (type: String.t, default: nil) - [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
  • userByEmail (type: String.t, default: nil) - [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member "user:EMAIL" or "serviceAccount:EMAIL".
  • view (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.

Attributes

  • dataset (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - [Required] The dataset this entry applies to.
  • target_types (type: list(GoogleApi.BigQuery.V2.Model.DatasetAccessEntryTargetTypes.t), default: nil) -

Attributes

  • targetType (type: String.t, default: nil) - [Required] Which resources in the dataset this entry applies to. Currently, only views are supported, but additional target types may be added in the future. Possible values: VIEWS: This entry applies to all views in the dataset.

Attributes

  • datasets (type: list(GoogleApi.BigQuery.V2.Model.DatasetListDatasets.t), default: nil) - An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.
  • etag (type: String.t, default: nil) - A hash value of the results page. You can use this property to determine if the page has changed since the last request.
  • kind (type: String.t, default: bigquery#datasetList) - The list type. This property always returns the value "bigquery#datasetList".
  • nextPageToken (type: String.t, default: nil) - A token that can be used to request the next results page. This property is omitted on the final results page.

Attributes

  • datasetReference (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID.
  • friendlyName (type: String.t, default: nil) - A descriptive name for the dataset, if one exists.
  • id (type: String.t, default: nil) - The fully-qualified, unique, opaque ID of the dataset.
  • kind (type: String.t, default: bigquery#dataset) - The resource type. This property always returns the value "bigquery#dataset".
  • labels (type: map(), default: nil) - The labels associated with this dataset. You can use these to organize and group your datasets.
  • location (type: String.t, default: nil) - The geographic location where the data resides.

Attributes

  • datasetId (type: String.t, default: nil) - [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
  • projectId (type: String.t, default: nil) - [Optional] The ID of the project containing this dataset.

Attributes

  • description (type: String.t, default: nil) - [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail.
  • expirationTime (type: DateTime.t, default: nil) - [Optional] The destination table expiration time. If this field is set: For a new table, it will set the table's expiration time (even if there is a dataset level default table expiration time). For an existing table, it will update the table's expiration time. If this field is not set: For a new table, if dataset level default table expiration time is present, that will be applied. For an existing table, no change is made to the table's expiration time. Additionally this field is only applied when data is written to an empty table (WRITE_EMPTY) or data is overwritten to a table (WRITE_TRUNCATE).
  • friendlyName (type: String.t, default: nil) - [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail.
  • labels (type: map(), default: nil) - [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail.

Attributes

  • deletedRowCount (type: String.t, default: nil) - Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.
  • insertedRowCount (type: String.t, default: nil) - Number of inserted Rows. Populated by DML INSERT and MERGE statements.
  • updatedRowCount (type: String.t, default: nil) - Number of updated Rows. Populated by DML UPDATE and MERGE statements.

Attributes

  • kmsKeyName (type: String.t, default: nil) - [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.

A single entry in the confusion matrix.

Attributes

  • debugInfo (type: String.t, default: nil) - Debugging information. This property is internal to Google and should not be used.
  • location (type: String.t, default: nil) - Specifies where the error occurred, if present.
  • message (type: String.t, default: nil) - A human-readable description of the error.
  • reason (type: String.t, default: nil) - A short error code that summarizes the error.

Evaluation metrics of a model. These are either computed on all training data or just the eval data based on whether eval data was used during training. These are not present for imported models.

Attributes

  • completedParallelInputs (type: String.t, default: nil) - Number of parallel input segments completed.
  • computeMsAvg (type: String.t, default: nil) - Milliseconds the average shard spent on CPU-bound tasks.
  • computeMsMax (type: String.t, default: nil) - Milliseconds the slowest shard spent on CPU-bound tasks.
  • computeRatioAvg (type: float(), default: nil) - Relative amount of time the average shard spent on CPU-bound tasks.
  • computeRatioMax (type: float(), default: nil) - Relative amount of time the slowest shard spent on CPU-bound tasks.
  • endMs (type: String.t, default: nil) - Stage end time represented as milliseconds since epoch.
  • id (type: String.t, default: nil) - Unique ID for stage within plan.
  • inputStages (type: list(String.t), default: nil) - IDs for stages that are inputs to this stage.
  • name (type: String.t, default: nil) - Human-readable name for stage.
  • parallelInputs (type: String.t, default: nil) - Number of parallel input segments to be processed.
  • readMsAvg (type: String.t, default: nil) - Milliseconds the average shard spent reading input.
  • readMsMax (type: String.t, default: nil) - Milliseconds the slowest shard spent reading input.
  • readRatioAvg (type: float(), default: nil) - Relative amount of time the average shard spent reading input.
  • readRatioMax (type: float(), default: nil) - Relative amount of time the slowest shard spent reading input.
  • recordsRead (type: String.t, default: nil) - Number of records read into the stage.
  • recordsWritten (type: String.t, default: nil) - Number of records written by the stage.
  • shuffleOutputBytes (type: String.t, default: nil) - Total number of bytes written to shuffle.
  • shuffleOutputBytesSpilled (type: String.t, default: nil) - Total number of bytes written to shuffle and spilled to disk.
  • slotMs (type: String.t, default: nil) - Slot-milliseconds used by the stage.
  • startMs (type: String.t, default: nil) - Stage start time represented as milliseconds since epoch.
  • status (type: String.t, default: nil) - Current status for the stage.
  • steps (type: list(GoogleApi.BigQuery.V2.Model.ExplainQueryStep.t), default: nil) - List of operations within the stage in dependency order (approximately chronological).
  • waitMsAvg (type: String.t, default: nil) - Milliseconds the average shard spent waiting to be scheduled.
  • waitMsMax (type: String.t, default: nil) - Milliseconds the slowest shard spent waiting to be scheduled.
  • waitRatioAvg (type: float(), default: nil) - Relative amount of time the average shard spent waiting to be scheduled.
  • waitRatioMax (type: float(), default: nil) - Relative amount of time the slowest shard spent waiting to be scheduled.
  • writeMsAvg (type: String.t, default: nil) - Milliseconds the average shard spent on writing output.
  • writeMsMax (type: String.t, default: nil) - Milliseconds the slowest shard spent on writing output.
  • writeRatioAvg (type: float(), default: nil) - Relative amount of time the average shard spent on writing output.
  • writeRatioMax (type: float(), default: nil) - Relative amount of time the slowest shard spent on writing output.

Attributes

  • kind (type: String.t, default: nil) - Machine-readable operation type.
  • substeps (type: list(String.t), default: nil) - Human-readable stage descriptions.

Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

Attributes

  • autodetect (type: boolean(), default: nil) - Try to detect schema and format options automatically. Any option specified explicitly will be honored.
  • avroOptions (type: GoogleApi.BigQuery.V2.Model.AvroOptions.t, default: nil) - Additional properties to set if sourceFormat is set to Avro.
  • bigtableOptions (type: GoogleApi.BigQuery.V2.Model.BigtableOptions.t, default: nil) - [Optional] Additional options if sourceFormat is set to BIGTABLE.
  • compression (type: String.t, default: nil) - [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
  • connectionId (type: String.t, default: nil) - [Optional, Trusted Tester] Connection for external data source.
  • csvOptions (type: GoogleApi.BigQuery.V2.Model.CsvOptions.t, default: nil) - Additional properties to set if sourceFormat is set to CSV.
  • decimalTargetTypes (type: list(String.t), default: nil) - [Optional] Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats.
  • googleSheetsOptions (type: GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t, default: nil) - [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
  • hivePartitioningOptions (type: GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t, default: nil) - [Optional] Options to configure hive partitioning support.
  • ignoreUnknownValues (type: boolean(), default: nil) - [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
  • maxBadRecords (type: integer(), default: nil) - [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
  • parquetOptions (type: GoogleApi.BigQuery.V2.Model.ParquetOptions.t, default: nil) - Additional properties to set if sourceFormat is set to Parquet.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
  • sourceFormat (type: String.t, default: nil) - [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
  • sourceUris (type: list(String.t), default: nil) - [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '' wildcard character is not allowed.

Representative value of a single feature within the cluster.

Request message for GetIamPolicy method.

Encapsulates settings provided to GetIamPolicy.

Attributes

  • cacheHit (type: boolean(), default: nil) - Whether the query result was fetched from the query cache.
  • errors (type: list(GoogleApi.BigQuery.V2.Model.ErrorProto.t), default: nil) - [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.
  • etag (type: String.t, default: nil) - A hash of this response.
  • jobComplete (type: boolean(), default: nil) - 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.
  • jobReference (type: GoogleApi.BigQuery.V2.Model.JobReference.t, default: nil) - Reference to the BigQuery 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).
  • kind (type: String.t, default: bigquery#getQueryResultsResponse) - The resource type of the response.
  • numDmlAffectedRows (type: String.t, default: nil) - [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
  • pageToken (type: String.t, default: nil) - A token used for paging results.
  • rows (type: list(GoogleApi.BigQuery.V2.Model.TableRow.t), default: nil) - 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. Present only when the query completes successfully.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - The schema of the results. Present only when the query completes successfully.
  • totalBytesProcessed (type: String.t, default: nil) - The total number of bytes processed for this query.
  • totalRows (type: String.t, default: nil) - 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. Present only when the query completes successfully.

Attributes

  • email (type: String.t, default: nil) - The service account email address.
  • kind (type: String.t, default: bigquery#getServiceAccountResponse) - The resource type of the response.

Attributes

  • range (type: String.t, default: nil) - [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
  • skipLeadingRows (type: String.t, default: nil) - [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.

Attributes

  • mode (type: String.t, default: nil) - [Optional] When set, what mode of hive partitioning to use when reading data. The following modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. (3) CUSTOM: partition key schema is encoded in the source URI prefix. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
  • requirePartitionFilter (type: boolean(), default: nil) - [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with requirePartitionFilter explicitly set to true will fail.
  • sourceUriPrefix (type: String.t, default: nil) - [Optional] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).

Attributes

  • durationMs (type: String.t, default: nil) - Time taken to run the iteration in milliseconds.
  • evalLoss (type: float(), default: nil) - Loss computed on the eval data at the end of iteration.
  • index (type: integer(), default: nil) - Index of the iteration, 0 based.
  • learnRate (type: float(), default: nil) - Learn rate used for this iteration.
  • trainingLoss (type: float(), default: nil) - Loss computed on the training data at the end of iteration.

Attributes

  • configuration (type: GoogleApi.BigQuery.V2.Model.JobConfiguration.t, default: nil) - [Required] Describes the job configuration.
  • etag (type: String.t, default: nil) - [Output-only] A hash of this resource.
  • id (type: String.t, default: nil) - [Output-only] Opaque ID field of the job
  • jobReference (type: GoogleApi.BigQuery.V2.Model.JobReference.t, default: nil) - [Optional] Reference describing the unique-per-user name of the job.
  • kind (type: String.t, default: bigquery#job) - [Output-only] The type of the resource.
  • selfLink (type: String.t, default: nil) - [Output-only] A URL that can be used to access this resource again.
  • statistics (type: GoogleApi.BigQuery.V2.Model.JobStatistics.t, default: nil) - [Output-only] Information about the job, including starting time and ending time of the job.
  • status (type: GoogleApi.BigQuery.V2.Model.JobStatus.t, default: nil) - [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
  • user_email (type: String.t, default: nil) - [Output-only] Email address of the user who ran the job.

Attributes

  • job (type: GoogleApi.BigQuery.V2.Model.Job.t, default: nil) - The final state of the job.
  • kind (type: String.t, default: bigquery#jobCancelResponse) - The resource type of the response.

Attributes

  • copy (type: GoogleApi.BigQuery.V2.Model.JobConfigurationTableCopy.t, default: nil) - [Pick one] Copies a table.
  • dryRun (type: boolean(), default: nil) - [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.
  • extract (type: GoogleApi.BigQuery.V2.Model.JobConfigurationExtract.t, default: nil) - [Pick one] Configures an extract job.
  • jobTimeoutMs (type: String.t, default: nil) - [Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt to terminate the job.
  • jobType (type: String.t, default: nil) - [Output-only] The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN.
  • labels (type: map(), default: nil) - The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
  • load (type: GoogleApi.BigQuery.V2.Model.JobConfigurationLoad.t, default: nil) - [Pick one] Configures a load job.
  • query (type: GoogleApi.BigQuery.V2.Model.JobConfigurationQuery.t, default: nil) - [Pick one] Configures a query job.

Attributes

  • compression (type: String.t, default: nil) - [Optional] The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE and SNAPPY are only supported for Avro. Not applicable when extracting models.
  • destinationFormat (type: String.t, default: nil) - [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON, PARQUET or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL.
  • destinationUri (type: String.t, default: nil) - [Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary. The fully-qualified Google Cloud Storage URI where the extracted table should be written.
  • destinationUris (type: list(String.t), default: nil) - [Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written.
  • fieldDelimiter (type: String.t, default: nil) - [Optional] Delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models.
  • printHeader (type: boolean(), default: true) - [Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models.
  • sourceModel (type: GoogleApi.BigQuery.V2.Model.ModelReference.t, default: nil) - A reference to the model being exported.
  • sourceTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - A reference to the table being exported.
  • useAvroLogicalTypes (type: boolean(), default: nil) - [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models.

Attributes

  • allowJaggedRows (type: boolean(), default: nil) - [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats.
  • allowQuotedNewlines (type: boolean(), default: nil) - Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
  • autodetect (type: boolean(), default: nil) - [Optional] Indicates if we should automatically infer the options and schema for CSV and JSON sources.
  • clustering (type: GoogleApi.BigQuery.V2.Model.Clustering.t, default: nil) - [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.
  • createDisposition (type: String.t, default: nil) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
  • decimalTargetTypes (type: list(String.t), default: nil) - [Optional] Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING supports all precision and scale values. If none of the listed types supports the precision and the scale, the type supporting the widest range in the specified list is picked, and if a value exceeds the supported range when reading the data, an error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (error if value exeeds supported range). This field cannot contain duplicate types. The order of the types in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file formats.
  • destinationEncryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) - Custom encryption configuration (e.g., Cloud KMS keys).
  • destinationTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Required] The destination table to load the data into.
  • destinationTableProperties (type: GoogleApi.BigQuery.V2.Model.DestinationTableProperties.t, default: nil) - [Beta] [Optional] Properties with which to create the destination table if it is new.
  • encoding (type: String.t, default: nil) - [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
  • fieldDelimiter (type: String.t, default: nil) - [Optional] The separator for fields in a CSV file. The separator can be any ISO-8859-1 single-byte character. To use a character in the range 128-255, you must encode the character as UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
  • hivePartitioningOptions (type: GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t, default: nil) - [Optional] Options to configure hive partitioning support.
  • ignoreUnknownValues (type: boolean(), default: nil) - [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names
  • jsonExtension (type: String.t, default: nil) - [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether it should be processed as a JSON variant such as GeoJSON. For a sourceFormat other than JSON, omit this field. If the sourceFormat is newline-delimited JSON: - for newline-delimited GeoJSON: set to GEOJSON.
  • maxBadRecords (type: integer(), default: nil) - [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV and JSON. The default value is 0, which requires that all records are valid.
  • nullMarker (type: String.t, default: nil) - [Optional] Specifies a string that represents a null value in a CSV file. For example, if you specify "\N", BigQuery interprets "\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value.
  • parquetOptions (type: GoogleApi.BigQuery.V2.Model.ParquetOptions.t, default: nil) - [Optional] Options to configure parquet support.
  • projectionFields (type: list(String.t), default: nil) - If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity properties to load into BigQuery from a Cloud Datastore backup. Property names are case sensitive and must be top-level properties. If no properties are specified, BigQuery loads all properties. If any named property isn't found in the Cloud Datastore backup, an invalid error is returned in the job result.
  • quote (type: String.t, default: ") - [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
  • rangePartitioning (type: GoogleApi.BigQuery.V2.Model.RangePartitioning.t, default: nil) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists, or if you're loading data from Google Cloud Datastore.
  • schemaInline (type: String.t, default: nil) - [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT".
  • schemaInlineFormat (type: String.t, default: nil) - [Deprecated] The format of the schemaInline property.
  • schemaUpdateOptions (type: list(String.t), default: nil) - Allows the schema of the destination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.
  • skipLeadingRows (type: integer(), default: nil) - [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.
  • sourceFormat (type: String.t, default: nil) - [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV.
  • sourceUris (type: list(String.t), default: nil) - [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one URI can be specified. Also, the '' wildcard character is not allowed.
  • timePartitioning (type: GoogleApi.BigQuery.V2.Model.TimePartitioning.t, default: nil) - Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.
  • useAvroLogicalTypes (type: boolean(), default: nil) - [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
  • writeDisposition (type: String.t, default: nil) - [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

Attributes

  • allowLargeResults (type: boolean(), default: false) - [Optional] If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size.
  • clustering (type: GoogleApi.BigQuery.V2.Model.Clustering.t, default: nil) - [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.
  • connectionProperties (type: list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t), default: nil) - Connection properties.
  • createDisposition (type: String.t, default: nil) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
  • createSession (type: boolean(), default: nil) - If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode.
  • defaultDataset (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - [Optional] Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names.
  • destinationEncryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) - Custom encryption configuration (e.g., Cloud KMS keys).
  • destinationTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results. This property must be set for large results that exceed the maximum response size.
  • flattenResults (type: boolean(), default: true) - [Optional] If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For standard SQL queries, this flag is ignored and results are never flattened.
  • maximumBillingTier (type: integer(), default: 1) - [Optional] Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default.
  • maximumBytesBilled (type: String.t, default: nil) - [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.
  • parameterMode (type: String.t, default: nil) - Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.
  • preserveNulls (type: boolean(), default: nil) - [Deprecated] This property is deprecated.
  • priority (type: String.t, default: nil) - [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE.
  • query (type: String.t, default: nil) - [Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL.
  • queryParameters (type: list(GoogleApi.BigQuery.V2.Model.QueryParameter.t), default: nil) - Query parameters for standard SQL queries.
  • rangePartitioning (type: GoogleApi.BigQuery.V2.Model.RangePartitioning.t, default: nil) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
  • schemaUpdateOptions (type: list(String.t), default: nil) - Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.
  • tableDefinitions (type: %{optional(String.t) => GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t}, default: nil) - [Optional] If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
  • timePartitioning (type: GoogleApi.BigQuery.V2.Model.TimePartitioning.t, default: nil) - Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified.
  • useLegacySql (type: boolean(), default: true) - Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false.
  • useQueryCache (type: boolean(), default: true) - [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified. The default value is true.
  • userDefinedFunctionResources (type: list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t), default: nil) - Describes user-defined function resources used in the query.
  • writeDisposition (type: String.t, default: nil) - [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema from the query result. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

Attributes

  • createDisposition (type: String.t, default: nil) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
  • destinationEncryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) - Custom encryption configuration (e.g., Cloud KMS keys).
  • destinationExpirationTime (type: any(), default: nil) - [Optional] The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.
  • destinationTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Required] The destination table
  • operationType (type: String.t, default: nil) - [Optional] Supported operation types in table copy job.
  • sourceTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Pick one] Source table to copy.
  • sourceTables (type: list(GoogleApi.BigQuery.V2.Model.TableReference.t), default: nil) - [Pick one] Source tables to copy.
  • writeDisposition (type: String.t, default: nil) - [Optional] Specifies the action that occurs if the destination table already exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

Attributes

  • etag (type: String.t, default: nil) - A hash of this page of results.
  • jobs (type: list(GoogleApi.BigQuery.V2.Model.JobListJobs.t), default: nil) - List of jobs that were requested.
  • kind (type: String.t, default: bigquery#jobList) - The resource type of the response.
  • nextPageToken (type: String.t, default: nil) - A token to request the next page of results.

Attributes

  • configuration (type: GoogleApi.BigQuery.V2.Model.JobConfiguration.t, default: nil) - [Full-projection-only] Specifies the job configuration.
  • errorResult (type: GoogleApi.BigQuery.V2.Model.ErrorProto.t, default: nil) - A result object that will be present only if the job has failed.
  • id (type: String.t, default: nil) - Unique opaque ID of the job.
  • jobReference (type: GoogleApi.BigQuery.V2.Model.JobReference.t, default: nil) - Job reference uniquely identifying the job.
  • kind (type: String.t, default: bigquery#job) - The resource type.
  • state (type: String.t, default: nil) - Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed.
  • statistics (type: GoogleApi.BigQuery.V2.Model.JobStatistics.t, default: nil) - [Output-only] Information about the job, including starting time and ending time of the job.
  • status (type: GoogleApi.BigQuery.V2.Model.JobStatus.t, default: nil) - [Full-projection-only] Describes the state of the job.
  • user_email (type: String.t, default: nil) - [Full-projection-only] Email address of the user who ran the job.

Attributes

  • jobId (type: String.t, default: nil) - [Required] The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters.
  • location (type: String.t, default: nil) - The geographic location of the job. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
  • projectId (type: String.t, default: nil) - [Required] The ID of the project containing this job.

Attributes

  • completionRatio (type: float(), default: nil) - [TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs.
  • creationTime (type: String.t, default: nil) - [Output-only] Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs.
  • endTime (type: String.t, default: nil) - [Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state.
  • extract (type: GoogleApi.BigQuery.V2.Model.JobStatistics4.t, default: nil) - [Output-only] Statistics for an extract job.
  • load (type: GoogleApi.BigQuery.V2.Model.JobStatistics3.t, default: nil) - [Output-only] Statistics for a load job.
  • numChildJobs (type: String.t, default: nil) - [Output-only] Number of child jobs executed.
  • parentJobId (type: String.t, default: nil) - [Output-only] If this is a child job, the id of the parent.
  • query (type: GoogleApi.BigQuery.V2.Model.JobStatistics2.t, default: nil) - [Output-only] Statistics for a query job.
  • quotaDeferments (type: list(String.t), default: nil) - [Output-only] Quotas which delayed this job's start time.
  • reservationUsage (type: list(GoogleApi.BigQuery.V2.Model.JobStatisticsReservationUsage.t), default: nil) - [Output-only] Job resource usage breakdown by reservation.
  • reservation_id (type: String.t, default: nil) - [Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job.
  • rowLevelSecurityStatistics (type: GoogleApi.BigQuery.V2.Model.RowLevelSecurityStatistics.t, default: nil) - [Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs.
  • scriptStatistics (type: GoogleApi.BigQuery.V2.Model.ScriptStatistics.t, default: nil) - [Output-only] Statistics for a child job of a script.
  • sessionInfo (type: GoogleApi.BigQuery.V2.Model.SessionInfo.t, default: nil) - [Output-only] [Preview] Information of the session if this job is part of one.
  • startTime (type: String.t, default: nil) - [Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE.
  • totalBytesProcessed (type: String.t, default: nil) - [Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
  • totalSlotMs (type: String.t, default: nil) - [Output-only] Slot-milliseconds for the job.
  • transactionInfo (type: GoogleApi.BigQuery.V2.Model.TransactionInfo.t, default: nil) - [Output-only] [Alpha] Information of the multi-statement transaction if this job is part of one.

Attributes

  • biEngineStatistics (type: GoogleApi.BigQuery.V2.Model.BiEngineStatistics.t, default: nil) - BI Engine specific Statistics. [Output-only] BI Engine specific Statistics.
  • billingTier (type: integer(), default: nil) - [Output-only] Billing tier for the job.
  • cacheHit (type: boolean(), default: nil) - [Output-only] Whether the query result was fetched from the query cache.
  • ddlAffectedRowAccessPolicyCount (type: String.t, default: nil) - [Output-only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries.
  • ddlDestinationTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Output-only] The DDL destination table. Present only for ALTER TABLE RENAME TO queries. Note that ddl_target_table is used just for its type information.
  • ddlOperationPerformed (type: String.t, default: nil) - The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the DDL target. "SKIP": No-op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target.
  • ddlTargetDataset (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - [Output-only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries.
  • ddlTargetRoutine (type: GoogleApi.BigQuery.V2.Model.RoutineReference.t, default: nil) - The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries.
  • ddlTargetRowAccessPolicy (type: GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference.t, default: nil) - [Output-only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries.
  • ddlTargetTable (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries.
  • dmlStats (type: GoogleApi.BigQuery.V2.Model.DmlStatistics.t, default: nil) - [Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE.
  • estimatedBytesProcessed (type: String.t, default: nil) - [Output-only] The original estimate of bytes processed for the job.
  • mlStatistics (type: GoogleApi.BigQuery.V2.Model.MlStatistics.t, default: nil) - [Output-only] Statistics of a BigQuery ML training job.
  • modelTraining (type: GoogleApi.BigQuery.V2.Model.BigQueryModelTraining.t, default: nil) - [Output-only, Beta] Information about create model query job progress.
  • modelTrainingCurrentIteration (type: integer(), default: nil) - [Output-only, Beta] Deprecated; do not use.
  • modelTrainingExpectedTotalIteration (type: String.t, default: nil) - [Output-only, Beta] Deprecated; do not use.
  • numDmlAffectedRows (type: String.t, default: nil) - [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
  • queryPlan (type: list(GoogleApi.BigQuery.V2.Model.ExplainQueryStage.t), default: nil) - [Output-only] Describes execution plan for the query.
  • referencedRoutines (type: list(GoogleApi.BigQuery.V2.Model.RoutineReference.t), default: nil) - [Output-only] Referenced routines (persistent user-defined functions and stored procedures) for the job.
  • referencedTables (type: list(GoogleApi.BigQuery.V2.Model.TableReference.t), default: nil) - [Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.
  • reservationUsage (type: list(GoogleApi.BigQuery.V2.Model.JobStatistics2ReservationUsage.t), default: nil) - [Output-only] Job resource usage breakdown by reservation.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - [Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries.
  • statementType (type: String.t, default: nil) - The type of query statement, if valid. Possible values (new values might be added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "ASSERT": ASSERT condition AS 'description'. "CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE] MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query.
  • timeline (type: list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t), default: nil) - [Output-only] [Beta] Describes a timeline of job execution.
  • totalBytesBilled (type: String.t, default: nil) - [Output-only] Total bytes billed for the job.
  • totalBytesProcessed (type: String.t, default: nil) - [Output-only] Total bytes processed for the job.
  • totalBytesProcessedAccuracy (type: String.t, default: nil) - [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.
  • totalPartitionsProcessed (type: String.t, default: nil) - [Output-only] Total number of partitions processed from all partitioned tables referenced in the job.
  • totalSlotMs (type: String.t, default: nil) - [Output-only] Slot-milliseconds for the job.
  • undeclaredQueryParameters (type: list(GoogleApi.BigQuery.V2.Model.QueryParameter.t), default: nil) - Standard SQL only: list of undeclared query parameters detected during a dry run validation.

Attributes

  • name (type: String.t, default: nil) - [Output-only] Reservation name or "unreserved" for on-demand resources usage.
  • slotMs (type: String.t, default: nil) - [Output-only] Slot-milliseconds the job spent in the given reservation.

Attributes

  • badRecords (type: String.t, default: nil) - [Output-only] The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data.
  • inputFileBytes (type: String.t, default: nil) - [Output-only] Number of bytes of source data in a load job.
  • inputFiles (type: String.t, default: nil) - [Output-only] Number of source files in a load job.
  • outputBytes (type: String.t, default: nil) - [Output-only] Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change.
  • outputRows (type: String.t, default: nil) - [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change.

Attributes

  • destinationUriFileCounts (type: list(String.t), default: nil) - [Output-only] Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field.
  • inputBytes (type: String.t, default: nil) - [Output-only] Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes.

Attributes

  • name (type: String.t, default: nil) - [Output-only] Reservation name or "unreserved" for on-demand resources usage.
  • slotMs (type: String.t, default: nil) - [Output-only] Slot-milliseconds the job spent in the given reservation.

Attributes

  • errorResult (type: GoogleApi.BigQuery.V2.Model.ErrorProto.t, default: nil) - [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
  • errors (type: list(GoogleApi.BigQuery.V2.Model.ErrorProto.t), default: nil) - [Output-only] The first errors 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.
  • state (type: String.t, default: nil) - [Output-only] Running state of the job.

Represents a single JSON object.

Attributes

  • models (type: list(GoogleApi.BigQuery.V2.Model.Model.t), default: nil) - Models in the requested dataset. Only the following fields are populated: model_reference, model_type, creation_time, last_modified_time and labels.
  • nextPageToken (type: String.t, default: nil) - A token to request the next page of results.

Attributes

  • nextPageToken (type: String.t, default: nil) - A token to request the next page of results.
  • routines (type: list(GoogleApi.BigQuery.V2.Model.Routine.t), default: nil) - Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language.

Response message for the ListRowAccessPolicies method.

BigQuery-specific metadata about a location. This will be set on google.cloud.location.Location.metadata in Cloud Location API responses.

Attributes

  • enableRefresh (type: boolean(), default: nil) - [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is "true".
  • lastRefreshTime (type: String.t, default: nil) - [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
  • query (type: String.t, default: nil) - [Required] A query whose result is persisted.
  • refreshIntervalMs (type: String.t, default: nil) - [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes).

Attributes

  • iterationResults (type: list(GoogleApi.BigQuery.V2.Model.IterationResult.t), default: nil) - Results for all completed iterations.
  • maxIterations (type: String.t, default: nil) - Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop.

Attributes

  • bestTrialId (type: String.t, default: nil) - The best trial_id across all training runs.
  • creationTime (type: String.t, default: nil) - Output only. The time when this model was created, in millisecs since the epoch.
  • description (type: String.t, default: nil) - Optional. A user-friendly description of this model.
  • encryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) - Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage. This field can be used with PatchModel to update encryption key for an already encrypted model.
  • etag (type: String.t, default: nil) - Output only. A hash of this resource.
  • expirationTime (type: String.t, default: nil) - Optional. The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created models.
  • featureColumns (type: list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t), default: nil) - Output only. Input feature columns that were used to train this model.
  • friendlyName (type: String.t, default: nil) - Optional. A descriptive name for this model.
  • labelColumns (type: list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t), default: nil) - Output only. Label columns that were used to train this model. The output of the model will have a "predicted_" prefix to these columns.
  • labels (type: map(), default: nil) - The labels associated with this model. You can use these to organize and group your models. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
  • lastModifiedTime (type: String.t, default: nil) - Output only. The time when this model was last modified, in millisecs since the epoch.
  • location (type: String.t, default: nil) - Output only. The geographic location where the model resides. This value is inherited from the dataset.
  • modelReference (type: GoogleApi.BigQuery.V2.Model.ModelReference.t, default: nil) - Required. Unique identifier for this model.
  • modelType (type: String.t, default: nil) - Output only. Type of the model resource.
  • trainingRuns (type: list(GoogleApi.BigQuery.V2.Model.TrainingRun.t), default: nil) - Output only. Information for all training runs in increasing order of start_time.

Attributes

  • modelOptions (type: GoogleApi.BigQuery.V2.Model.ModelDefinitionModelOptions.t, default: nil) - [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
  • trainingRuns (type: list(GoogleApi.BigQuery.V2.Model.BqmlTrainingRun.t), default: nil) - [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.

[Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.

Attributes

  • datasetId (type: String.t, default: nil) - [Required] The ID of the dataset containing this model.
  • modelId (type: String.t, default: nil) - [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
  • projectId (type: String.t, default: nil) - [Required] The ID of the project containing this model.

Evaluation metrics for multi-class classification/classifier models.

Attributes

  • enableListInference (type: boolean(), default: nil) - [Optional] Indicates whether to use schema inference specifically for Parquet LIST logical type.
  • enumAsString (type: boolean(), default: nil) - [Optional] Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.

An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation. JSON example: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation.

Attributes

  • etag (type: String.t, default: nil) - A hash of the page of results
  • kind (type: String.t, default: bigquery#projectList) - The type of list.
  • nextPageToken (type: String.t, default: nil) - A token to request the next page of results.
  • projects (type: list(GoogleApi.BigQuery.V2.Model.ProjectListProjects.t), default: nil) - Projects to which you have at least READ access.
  • totalItems (type: integer(), default: nil) - The total number of projects in the list.

Attributes

  • friendlyName (type: String.t, default: nil) - A descriptive name for this project.
  • id (type: String.t, default: nil) - An opaque ID of this project.
  • kind (type: String.t, default: bigquery#project) - The resource type.
  • numericId (type: String.t, default: nil) - The numeric ID of this project.
  • projectReference (type: GoogleApi.BigQuery.V2.Model.ProjectReference.t, default: nil) - A unique reference to this project.

Attributes

  • projectId (type: String.t, default: nil) - [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project.

Attributes

  • name (type: String.t, default: nil) - [Optional] If unset, this is a positional parameter. Otherwise, should be unique within a query.
  • parameterType (type: GoogleApi.BigQuery.V2.Model.QueryParameterType.t, default: nil) - [Required] The type of this parameter.
  • parameterValue (type: GoogleApi.BigQuery.V2.Model.QueryParameterValue.t, default: nil) - [Required] The value of this parameter.

Attributes

  • arrayType (type: GoogleApi.BigQuery.V2.Model.QueryParameterType.t, default: nil) - [Optional] The type of the array's elements, if this is an array.
  • structTypes (type: list(GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes.t), default: nil) - [Optional] The types of the fields of this struct, in order, if this is a struct.
  • type (type: String.t, default: nil) - [Required] The top level type of this field.

Attributes

  • description (type: String.t, default: nil) - [Optional] Human-oriented description of the field.
  • name (type: String.t, default: nil) - [Optional] The name of this field.
  • type (type: GoogleApi.BigQuery.V2.Model.QueryParameterType.t, default: nil) - [Required] The type of this field.

Attributes

  • arrayValues (type: list(GoogleApi.BigQuery.V2.Model.QueryParameterValue.t), default: nil) - [Optional] The array values, if this is an array type.
  • structValues (type: %{optional(String.t) => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t}, default: nil) - [Optional] The struct field values, in order of the struct type's declaration.
  • value (type: String.t, default: nil) - [Optional] The value of this value, if a simple scalar type.

Attributes

  • connectionProperties (type: list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t), default: nil) - Connection properties.
  • createSession (type: boolean(), default: nil) - If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode.
  • defaultDataset (type: GoogleApi.BigQuery.V2.Model.DatasetReference.t, default: nil) - [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'.
  • dryRun (type: boolean(), default: nil) - [Optional] If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false.
  • kind (type: String.t, default: bigquery#queryRequest) - The resource type of the request.
  • labels (type: map(), default: nil) - The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
  • location (type: String.t, default: nil) - The geographic location where the job should run. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
  • maxResults (type: integer(), default: nil) - [Optional] The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies.
  • maximumBytesBilled (type: String.t, default: nil) - [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.
  • parameterMode (type: String.t, default: nil) - Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.
  • preserveNulls (type: boolean(), default: nil) - [Deprecated] This property is deprecated.
  • query (type: String.t, default: nil) - [Required] A query string, following the BigQuery query syntax, of the query to execute. Example: "SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]".
  • queryParameters (type: list(GoogleApi.BigQuery.V2.Model.QueryParameter.t), default: nil) - Query parameters for Standard SQL queries.
  • requestId (type: String.t, default: nil) - A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of the previous request, all parameters in the request that may affect the behavior are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed.
  • timeoutMs (type: integer(), default: nil) - [Optional] How long to wait for the query to complete, in milliseconds, before the request times out and returns. Note that this is only a timeout for the request, not the query. If the query takes longer to run than the timeout value, the call returns without any results and with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the query to complete and read the results. The default value is 10000 milliseconds (10 seconds).
  • useLegacySql (type: boolean(), default: true) - Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the value of flattenResults is ignored; query will be run as if flattenResults is false.
  • useQueryCache (type: boolean(), default: true) - [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true.

Attributes

  • cacheHit (type: boolean(), default: nil) - Whether the query result was fetched from the query cache.
  • dmlStats (type: GoogleApi.BigQuery.V2.Model.DmlStatistics.t, default: nil) - [Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE.
  • errors (type: list(GoogleApi.BigQuery.V2.Model.ErrorProto.t), default: nil) - [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.
  • jobComplete (type: boolean(), default: nil) - 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.
  • jobReference (type: GoogleApi.BigQuery.V2.Model.JobReference.t, default: nil) - 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).
  • kind (type: String.t, default: bigquery#queryResponse) - The resource type.
  • numDmlAffectedRows (type: String.t, default: nil) - [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.
  • pageToken (type: String.t, default: nil) - A token used for paging results.
  • rows (type: list(GoogleApi.BigQuery.V2.Model.TableRow.t), default: nil) - 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.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - The schema of the results. Present only when the query completes successfully.
  • sessionInfo (type: GoogleApi.BigQuery.V2.Model.SessionInfo.t, default: nil) - [Output-only] [Preview] Information of the session if this job is part of one.
  • totalBytesProcessed (type: String.t, default: nil) - 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.
  • totalRows (type: String.t, default: nil) - 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.

Attributes

  • activeUnits (type: String.t, default: nil) - Total number of units currently being processed by workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample.
  • completedUnits (type: String.t, default: nil) - Total parallel units of work completed by this query.
  • elapsedMs (type: String.t, default: nil) - Milliseconds elapsed since the start of query execution.
  • pendingUnits (type: String.t, default: nil) - Total parallel units of work remaining for the active stages.
  • totalSlotMs (type: String.t, default: nil) - Cumulative slot-ms consumed by the query.

Attributes

  • field (type: String.t, default: nil) - [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
  • range (type: GoogleApi.BigQuery.V2.Model.RangePartitioningRange.t, default: nil) - [TrustedTester] [Required] Defines the ranges for range partitioning.

[TrustedTester] [Required] Defines the ranges for range partitioning.

Evaluation metrics used by weighted-ALS models specified by feedback_type=implicit.

Evaluation metrics for regression and explicit feedback type matrix factorization models.

A user-defined function or a stored procedure.

Attributes

  • datasetId (type: String.t, default: nil) - [Required] The ID of the dataset containing this routine.
  • projectId (type: String.t, default: nil) - [Required] The ID of the project containing this routine.
  • routineId (type: String.t, default: nil) - [Required] The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.

A single row in the confusion matrix.

Represents access on a subset of rows on the specified table, defined by its filter predicate. Access to the subset of rows is controlled by its IAM policy.

Attributes

  • datasetId (type: String.t, default: nil) - [Required] The ID of the dataset containing this row access policy.
  • policyId (type: String.t, default: nil) - [Required] The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
  • projectId (type: String.t, default: nil) - [Required] The ID of the project containing this row access policy.
  • tableId (type: String.t, default: nil) - [Required] The ID of the table containing this row access policy.

Attributes

  • rowLevelSecurityApplied (type: boolean(), default: nil) - [Output-only] [Preview] Whether any accessed data was protected by row access policies.

Attributes

  • endColumn (type: integer(), default: nil) - [Output-only] One-based end column.
  • endLine (type: integer(), default: nil) - [Output-only] One-based end line.
  • procedureId (type: String.t, default: nil) - [Output-only] Name of the active procedure, empty if in a top-level script.
  • startColumn (type: integer(), default: nil) - [Output-only] One-based start column.
  • startLine (type: integer(), default: nil) - [Output-only] One-based start line.
  • text (type: String.t, default: nil) - [Output-only] Text of the current statement/expression.

Attributes

  • evaluationKind (type: String.t, default: nil) - [Output-only] Whether this child job was a statement or expression.
  • stackFrames (type: list(GoogleApi.BigQuery.V2.Model.ScriptStackFrame.t), default: nil) - Stack trace showing the line/column/procedure name of each frame on the stack at the point where the current evaluation happened. The leaf frame is first, the primary script is last. Never empty.

Attributes

  • sessionId (type: String.t, default: nil) - [Output-only] // [Preview] Id of the session.

Request message for SetIamPolicy method.

Attributes

  • baseTableReference (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Required] Reference describing the ID of the table that was snapshot.
  • snapshotTime (type: DateTime.t, default: nil) - [Required] The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format.

The type of a variable, e.g., a function argument. Examples: INT64: {type_kind="INT64"} ARRAY: {type_kind="ARRAY", array_element_type="STRING"} STRUCT>: {type_kind="STRUCT", struct_type={fields=[ {name="x", type={type_kind="STRING"}}, {name="y", type={type_kind="ARRAY", array_element_type="DATE"}} ]}}

Attributes

  • fields (type: list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t), default: nil) -

Attributes

  • estimatedBytes (type: String.t, default: nil) - [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
  • estimatedRows (type: String.t, default: nil) - [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
  • oldestEntryTime (type: String.t, default: nil) - [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.

Attributes

  • clustering (type: GoogleApi.BigQuery.V2.Model.Clustering.t, default: nil) - [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
  • creationTime (type: String.t, default: nil) - [Output-only] The time when this table was created, in milliseconds since the epoch.
  • defaultCollation (type: String.t, default: nil) - [Output-only] The default collation of the table.
  • description (type: String.t, default: nil) - [Optional] A user-friendly description of this table.
  • encryptionConfiguration (type: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t, default: nil) - Custom encryption configuration (e.g., Cloud KMS keys).
  • etag (type: String.t, default: nil) - [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
  • expirationTime (type: String.t, default: nil) - [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
  • externalDataConfiguration (type: GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t, default: nil) - [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
  • friendlyName (type: String.t, default: nil) - [Optional] A descriptive name for this table.
  • id (type: String.t, default: nil) - [Output-only] An opaque ID uniquely identifying the table.
  • kind (type: String.t, default: bigquery#table) - [Output-only] The type of the resource.
  • labels (type: map(), default: nil) - The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
  • lastModifiedTime (type: String.t, default: nil) - [Output-only] The time when this table was last modified, in milliseconds since the epoch.
  • location (type: String.t, default: nil) - [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
  • materializedView (type: GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition.t, default: nil) - [Optional] Materialized view definition.
  • model (type: GoogleApi.BigQuery.V2.Model.ModelDefinition.t, default: nil) - [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run 'PREDICT' queries.
  • numBytes (type: String.t, default: nil) - [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
  • numLongTermBytes (type: String.t, default: nil) - [Output-only] The number of bytes in the table that are considered "long-term storage".
  • numPhysicalBytes (type: String.t, default: nil) - [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
  • numRows (type: String.t, default: nil) - [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
  • rangePartitioning (type: GoogleApi.BigQuery.V2.Model.RangePartitioning.t, default: nil) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
  • requirePartitionFilter (type: boolean(), default: false) - [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - [Optional] Describes the schema of this table.
  • selfLink (type: String.t, default: nil) - [Output-only] A URL that can be used to access this resource again.
  • snapshotDefinition (type: GoogleApi.BigQuery.V2.Model.SnapshotDefinition.t, default: nil) - [Output-only] Snapshot definition.
  • streamingBuffer (type: GoogleApi.BigQuery.V2.Model.Streamingbuffer.t, default: nil) - [Output-only] Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
  • tableReference (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - [Required] Reference describing the ID of this table.
  • timePartitioning (type: GoogleApi.BigQuery.V2.Model.TimePartitioning.t, default: nil) - Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
  • type (type: String.t, default: nil) - [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. SNAPSHOT: An immutable, read-only table that is a copy of another table. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
  • view (type: GoogleApi.BigQuery.V2.Model.ViewDefinition.t, default: nil) - [Optional] The view definition.

Attributes

  • v (type: any(), default: nil) -

Attributes

  • ignoreUnknownValues (type: boolean(), default: nil) - [Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors.
  • kind (type: String.t, default: bigquery#tableDataInsertAllRequest) - The resource type of the response.
  • rows (type: list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows.t), default: nil) - The rows to insert.
  • skipInvalidRows (type: boolean(), default: nil) - [Optional] Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist.
  • templateSuffix (type: String.t, default: nil) - If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables.

Attributes

  • insertId (type: String.t, default: nil) - [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion requests on a best-effort basis.
  • json (type: GoogleApi.BigQuery.V2.Model.JsonObject.t, default: nil) - [Required] A JSON object that contains a row of data. The object's properties and values must match the destination table's schema.

Attributes

  • insertErrors (type: list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponseInsertErrors.t), default: nil) - An array of errors for rows that were not inserted.
  • kind (type: String.t, default: bigquery#tableDataInsertAllResponse) - The resource type of the response.

Attributes

  • errors (type: list(GoogleApi.BigQuery.V2.Model.ErrorProto.t), default: nil) - Error information for the row indicated by the index property.
  • index (type: integer(), default: nil) - The index of the row that error applies to.

Attributes

  • etag (type: String.t, default: nil) - A hash of this page of results.
  • kind (type: String.t, default: bigquery#tableDataList) - The resource type of the response.
  • pageToken (type: String.t, default: nil) - A token used for paging results. Providing this token instead of the startIndex parameter can help you retrieve stable results when an underlying table is changing.
  • rows (type: list(GoogleApi.BigQuery.V2.Model.TableRow.t), default: nil) - Rows of results.
  • totalRows (type: String.t, default: nil) - The total number of rows in the complete table.

Attributes

  • categories (type: GoogleApi.BigQuery.V2.Model.TableFieldSchemaCategories.t, default: nil) - [Optional] The categories attached to this field, used for field-level access control.
  • collationSpec (type: String.t, default: nil) - Optional. Collation specification of the field. It only can be set on string type field.
  • description (type: String.t, default: nil) - [Optional] The field description. The maximum length is 1,024 characters.
  • fields (type: list(GoogleApi.BigQuery.V2.Model.TableFieldSchema.t), default: nil) - [Optional] Describes the nested schema fields if the type property is set to RECORD.
  • maxLength (type: String.t, default: nil) - [Optional] Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES".
  • mode (type: String.t, default: nil) - [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
  • name (type: String.t, default: nil) - [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 300 characters.
  • policyTags (type: GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags.t, default: nil) -
  • precision (type: String.t, default: nil) - [Optional] Precision (maximum number of total digits in base 10) and scale (maximum number of digits in the fractional part in base 10) constraints for values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: - Precision (P) and scale (S) are specified: [-10P-S + 10-S, 10P-S - 10-S] - Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable values for precision and scale if both are specified: - If type = "NUMERIC": 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. - If type = "BIGNUMERIC": 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): - If type = "NUMERIC": 1 ≤ precision ≤ 29. - If type = "BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then it is invalid.
  • scale (type: String.t, default: nil) - [Optional] See documentation for precision.
  • type (type: String.t, default: nil) - [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC, BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, INTERVAL, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).

[Optional] The categories attached to this field, used for field-level access control.

Attributes

  • names (type: list(String.t), default: nil) - A list of category resource names. For example, "projects/1/location/eu/taxonomies/2/policyTags/3". At most 1 policy tag is allowed.

Attributes

  • etag (type: String.t, default: nil) - A hash of this page of results.
  • kind (type: String.t, default: bigquery#tableList) - The type of list.
  • nextPageToken (type: String.t, default: nil) - A token to request the next page of results.
  • tables (type: list(GoogleApi.BigQuery.V2.Model.TableListTables.t), default: nil) - Tables in the requested dataset.
  • totalItems (type: integer(), default: nil) - The total number of tables in the dataset.

Attributes

  • clustering (type: GoogleApi.BigQuery.V2.Model.Clustering.t, default: nil) - [Beta] Clustering specification for this table, if configured.
  • creationTime (type: String.t, default: nil) - The time when this table was created, in milliseconds since the epoch.
  • expirationTime (type: String.t, default: nil) - [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
  • friendlyName (type: String.t, default: nil) - The user-friendly name for this table.
  • id (type: String.t, default: nil) - An opaque ID of the table
  • kind (type: String.t, default: bigquery#table) - The resource type.
  • labels (type: map(), default: nil) - The labels associated with this table. You can use these to organize and group your tables.
  • rangePartitioning (type: GoogleApi.BigQuery.V2.Model.RangePartitioning.t, default: nil) - The range partitioning specification for this table, if configured.
  • tableReference (type: GoogleApi.BigQuery.V2.Model.TableReference.t, default: nil) - A reference uniquely identifying the table.
  • timePartitioning (type: GoogleApi.BigQuery.V2.Model.TimePartitioning.t, default: nil) - The time-based partitioning specification for this table, if configured.
  • type (type: String.t, default: nil) - The type of table. Possible values are: TABLE, VIEW.
  • view (type: GoogleApi.BigQuery.V2.Model.TableListTablesView.t, default: nil) - Additional details for a view.

Additional details for a view.

Attributes

  • datasetId (type: String.t, default: nil) - [Required] The ID of the dataset containing this table.
  • projectId (type: String.t, default: nil) - [Required] The ID of the project containing this table.
  • tableId (type: String.t, default: nil) - [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.

Attributes

  • f (type: list(GoogleApi.BigQuery.V2.Model.TableCell.t), default: nil) - Represents a single row in the result set, consisting of one or more fields.

Attributes

  • fields (type: list(GoogleApi.BigQuery.V2.Model.TableFieldSchema.t), default: nil) - Describes the fields in a table.

Request message for TestIamPermissions method.

Response message for TestIamPermissions method.

Attributes

  • expirationMs (type: String.t, default: nil) - [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
  • field (type: String.t, default: nil) - [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
  • requirePartitionFilter (type: boolean(), default: nil) -
  • type (type: String.t, default: nil) - [Required] The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. When the type is not specified, the default behavior is DAY.

Options used in model training.

Information about a single training query run for the model.

Attributes

  • transactionId (type: String.t, default: nil) - [Output-only] // [Alpha] Id of the transaction.

This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions

Attributes

  • query (type: String.t, default: nil) - [Required] A query that BigQuery executes when the view is referenced.
  • useExplicitColumnNames (type: boolean(), default: nil) - True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set using BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/
  • useLegacySql (type: boolean(), default: nil) - Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
  • userDefinedFunctionResources (type: list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t), default: nil) - Describes user-defined function resources used in the query.