{"components":{"parameters":{"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"enum":["1","2"],"type":"string"}},"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"enum":["json","media","proto"],"type":"string"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean"}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}}},"schemas":{"ConnectionProperty":{"description":"A connection-level property to customize query behavior. Under JDBC, these correspond directly to connection properties passed to the DriverManager. Under ODBC, these correspond to properties in the connection string. Currently supported connection properties: * **dataset_project_id**: represents the default project for datasets that are used in the query. Setting the system variable `@@dataset_project_id` achieves the same behavior. For more information about system variables, see: https://cloud.google.com/bigquery/docs/reference/system-variables * **time_zone**: represents the default timezone used to run the query. * **session_id**: associates the query with a given session. * **query_label**: associates the query with a given job label. If set, all subsequent queries in a script or session will have this label. For the format in which a you can specify a query label, see labels in the JobConfiguration resource type: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration Additional properties are allowed, but ignored. Specifying multiple connection properties with the same key returns an error.","properties":{"key":{"description":"The key of the property to set.","type":"string"},"value":{"description":"The value of the property to set.","type":"string"}},"type":"object"},"DataFormatOptions":{"description":"Options for data format adjustments.","properties":{"useInt64Timestamp":{"description":"Optional. Output timestamp as usec int64. Default is false.","type":"boolean"}},"type":"object"},"DatasetReference":{"properties":{"datasetId":{"description":"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.","type":"string"},"projectId":{"description":"Optional. The ID of the project containing this dataset.","type":"string"}},"type":"object"},"DmlStatistics":{"description":"Detailed statistics for DML statements","properties":{"deletedRowCount":{"description":"Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.","format":"int64","readOnly":true,"type":"string"},"insertedRowCount":{"description":"Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements","format":"int64","readOnly":true,"type":"string"},"updatedRowCount":{"description":"Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements.","format":"int64","readOnly":true,"type":"string"}},"type":"object"},"ErrorProto":{"description":"Error details.","properties":{"debugInfo":{"description":"Debugging information. This property is internal to Google and should not be used.","type":"string"},"location":{"description":"Specifies where the error occurred, if present.","type":"string"},"message":{"description":"A human-readable description of the error.","type":"string"},"reason":{"description":"A short error code that summarizes the error.","type":"string"}},"type":"object"},"GetQueryResultsResponse":{"description":"Response object of GetQueryResults.","properties":{"cacheHit":{"description":"Whether the query result was fetched from the query cache.","type":"boolean"},"errors":{"description":"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. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages).","items":{"$ref":"#/components/schemas/ErrorProto"},"readOnly":true,"type":"array"},"etag":{"description":"A hash of this response.","type":"string"},"jobComplete":{"description":"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.","type":"boolean"},"jobReference":{"$ref":"#/components/schemas/JobReference","description":"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":{"default":"bigquery#getQueryResultsResponse","description":"The resource type of the response.","type":"string"},"numDmlAffectedRows":{"description":"Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.","format":"int64","readOnly":true,"type":"string"},"pageToken":{"description":"A token used for paging results. When this token is non-empty, it indicates additional results are available.","type":"string"},"rows":{"description":"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. The REST-based representation of this data leverages a series of JSON f,v objects for indicating fields and values.","items":{"$ref":"#/components/schemas/TableRow"},"type":"array"},"schema":{"$ref":"#/components/schemas/TableSchema","description":"The schema of the results. Present only when the query completes successfully."},"totalBytesProcessed":{"description":"The total number of bytes processed for this query.","format":"int64","type":"string"},"totalRows":{"description":"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.","format":"uint64","type":"string"}},"type":"object"},"JobCreationReason":{"description":"Reason about why a Job was created from a [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will always be `REQUESTED`. This feature is not yet available. Jobs will always be created.","properties":{"code":{"description":"Output only. Specifies the high level reason why a Job was created.","enum":["CODE_UNSPECIFIED","REQUESTED","LONG_RUNNING","LARGE_RESULTS","OTHER"],"readOnly":true,"type":"string"}},"type":"object"},"JobReference":{"description":"A job reference is a fully qualified identifier for referring to a job.","properties":{"jobId":{"description":"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.","type":"string"},"location":{"description":"Optional. The geographic location of the job. The default value is US. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations","type":"string"},"projectId":{"description":"Required. The ID of the project containing this job.","type":"string"}},"type":"object"},"QueryParameter":{"description":"A parameter given to a query.","properties":{"name":{"description":"Optional. If unset, this is a positional parameter. Otherwise, should be unique within a query.","type":"string"},"parameterType":{"$ref":"#/components/schemas/QueryParameterType","description":"Required. The type of this parameter."},"parameterValue":{"$ref":"#/components/schemas/QueryParameterValue","description":"Required. The value of this parameter."}},"type":"object"},"QueryParameterType":{"description":"The type of a query parameter.","properties":{"arrayType":{"$ref":"#/components/schemas/QueryParameterType","description":"Optional. The type of the array's elements, if this is an array."},"rangeElementType":{"$ref":"#/components/schemas/QueryParameterType","description":"Optional. The element type of the range, if this is a range."},"structTypes":{"description":"Optional. The types of the fields of this struct, in order, if this is a struct.","items":{"description":"The type of a struct parameter.","properties":{"description":{"description":"Optional. Human-oriented description of the field.","type":"string"},"name":{"description":"Optional. The name of this field.","type":"string"},"type":{"$ref":"#/components/schemas/QueryParameterType","description":"Required. The type of this field."}},"type":"object"},"type":"array"},"type":{"description":"Required. The top level type of this field.","type":"string"}},"type":"object"},"QueryParameterValue":{"description":"The value of a query parameter.","properties":{"arrayValues":{"description":"Optional. The array values, if this is an array type.","items":{"$ref":"#/components/schemas/QueryParameterValue"},"type":"array"},"rangeValue":{"$ref":"#/components/schemas/RangeValue","description":"Optional. The range value, if this is a range type."},"structValues":{"additionalProperties":{"$ref":"#/components/schemas/QueryParameterValue"},"description":"The struct field values.","type":"object"},"value":{"description":"Optional. The value of this value, if a simple scalar type.","type":"string"}},"type":"object"},"QueryRequest":{"description":"Describes the format of the jobs.query request.","properties":{"connectionProperties":{"description":"Optional. Connection properties which can modify the query behavior.","items":{"$ref":"#/components/schemas/ConnectionProperty"},"type":"array"},"continuous":{"description":"[Optional] Specifies whether the query should be executed as a continuous query. The default value is false.","type":"boolean"},"createSession":{"description":"Optional. If true, creates a new session using a randomly generated session_id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. The session location will be set to QueryRequest.location if it is present, otherwise it's set to the default location based on existing routing logic.","type":"boolean"},"defaultDataset":{"$ref":"#/components/schemas/DatasetReference","description":"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":{"description":"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.","type":"boolean"},"formatOptions":{"$ref":"#/components/schemas/DataFormatOptions","description":"Optional. Output format adjustments."},"jobCreationMode":{"description":"Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. This feature is not yet available. Jobs will always be created.","enum":["JOB_CREATION_MODE_UNSPECIFIED","JOB_CREATION_REQUIRED","JOB_CREATION_OPTIONAL"],"type":"string"},"kind":{"default":"bigquery#queryRequest","description":"The resource type of the request.","type":"string"},"labels":{"additionalProperties":{"type":"string"},"description":"Optional. The labels associated with this query. Labels can be used to organize and group query 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 keys must start with a letter and each label in the list must have a different key.","type":"object"},"location":{"description":"The geographic location where the job should run. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.","type":"string"},"maxResults":{"description":"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.","format":"uint32","type":"integer"},"maximumBytesBilled":{"description":"Optional. Limits the bytes billed for this query. Queries with bytes billed above this limit will fail (without incurring a charge). If unspecified, the project default is used.","format":"int64","type":"string"},"parameterMode":{"description":"GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query.","type":"string"},"preserveNulls":{"deprecated":true,"description":"This property is deprecated.","type":"boolean"},"query":{"description":"Required. A query string to execute, using Google Standard SQL or legacy SQL syntax. Example: \"SELECT COUNT(f1) FROM myProjectId.myDatasetId.myTableId\".","type":"string"},"queryParameters":{"description":"Query parameters for GoogleSQL queries.","items":{"$ref":"#/components/schemas/QueryParameter"},"type":"array"},"requestId":{"description":"Optional. 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 another request, all parameters in the request that may affect the result 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.","type":"string"},"timeoutMs":{"description":"Optional. Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.","format":"uint32","type":"integer"},"useLegacySql":{"default":true,"description":"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 GoogleSQL: 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.","type":"boolean"},"useQueryCache":{"default":true,"description":"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.","type":"boolean"}},"type":"object"},"QueryResponse":{"properties":{"cacheHit":{"description":"Whether the query result was fetched from the query cache.","type":"boolean"},"dmlStats":{"$ref":"#/components/schemas/DmlStatistics","description":"Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.","readOnly":true},"errors":{"description":"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. For more information about error messages, see [Error messages](https://cloud.google.com/bigquery/docs/error-messages).","items":{"$ref":"#/components/schemas/ErrorProto"},"readOnly":true,"type":"array"},"jobComplete":{"description":"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.","type":"boolean"},"jobCreationReason":{"$ref":"#/components/schemas/JobCreationReason","description":"Optional. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. When job_reference is present, this field should be interpreted as follows: If set, it will provide the reason of why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created."},"jobReference":{"$ref":"#/components/schemas/JobReference","description":"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":{"default":"bigquery#queryResponse","description":"The resource type.","type":"string"},"numDmlAffectedRows":{"description":"Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.","format":"int64","readOnly":true,"type":"string"},"pageToken":{"description":"A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results).","type":"string"},"queryId":{"description":"Query ID for the completed query. This ID will be auto-generated. This field is not yet available and it is currently not guaranteed to be populated.","type":"string"},"rows":{"description":"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.","items":{"$ref":"#/components/schemas/TableRow"},"type":"array"},"schema":{"$ref":"#/components/schemas/TableSchema","description":"The schema of the results. Present only when the query completes successfully."},"sessionInfo":{"$ref":"#/components/schemas/SessionInfo","description":"Output only. Information of the session if this job is part of one.","readOnly":true},"totalBytesProcessed":{"description":"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.","format":"int64","type":"string"},"totalRows":{"description":"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.","format":"uint64","type":"string"}},"type":"object"},"RangeValue":{"description":"Represents the value of a range.","properties":{"end":{"$ref":"#/components/schemas/QueryParameterValue","description":"Optional. The end value of the range. A missing value represents an unbounded end."},"start":{"$ref":"#/components/schemas/QueryParameterValue","description":"Optional. The start value of the range. A missing value represents an unbounded start."}},"type":"object"},"SessionInfo":{"description":"[Preview] Information related to sessions.","properties":{"sessionId":{"description":"Output only. The id of the session.","readOnly":true,"type":"string"}},"type":"object"},"TableCell":{"properties":{"v":{}},"type":"object"},"TableFieldSchema":{"description":"A field in TableSchema","properties":{"categories":{"description":"Deprecated.","properties":{"names":{"description":"Deprecated.","items":{"type":"string"},"type":"array"}},"type":"object"},"collation":{"description":"Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior.","type":"string"},"defaultValueExpression":{"description":"Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field.","type":"string"},"description":{"description":"Optional. The field description. The maximum length is 1,024 characters.","type":"string"},"fields":{"description":"Optional. Describes the nested schema fields if the type property is set to RECORD.","items":{"$ref":"#/components/schemas/TableFieldSchema"},"type":"array"},"maxLength":{"description":"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\".","format":"int64","type":"string"},"mode":{"description":"Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.","type":"string"},"name":{"description":"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.","type":"string"},"policyTags":{"description":"Optional. The policy tags attached to this field, used for field-level access control. If not set, defaults to empty policy_tags.","properties":{"names":{"description":"A list of policy tag resource names. For example, \"projects/1/locations/eu/taxonomies/2/policyTags/3\". At most 1 policy tag is currently allowed.","items":{"type":"string"},"type":"array"}},"type":"object"},"precision":{"description":"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.","format":"int64","type":"string"},"rangeElementType":{"description":"Represents the type of a field element.","properties":{"type":{"description":"Required. The type of a field element. See TableFieldSchema.type.","type":"string"}},"type":"object"},"roundingMode":{"description":"Optional. Specifies the rounding mode to be used when storing values of NUMERIC and BIGNUMERIC type.","enum":["ROUNDING_MODE_UNSPECIFIED","ROUND_HALF_AWAY_FROM_ZERO","ROUND_HALF_EVEN"],"type":"string"},"scale":{"description":"Optional. See documentation for precision.","format":"int64","type":"string"},"type":{"description":"Required. The field data type. Possible values include: * STRING * BYTES * INTEGER (or INT64) * FLOAT (or FLOAT64) * BOOLEAN (or BOOL) * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY * NUMERIC * BIGNUMERIC * JSON * RECORD (or STRUCT) Use of RECORD/STRUCT indicates that the field contains a nested schema.","type":"string"}},"type":"object"},"TableRow":{"properties":{"f":{"description":"Represents a single row in the result set, consisting of one or more fields.","items":{"$ref":"#/components/schemas/TableCell"},"type":"array"}},"type":"object"},"TableSchema":{"description":"Schema of a table","properties":{"fields":{"description":"Describes the fields in a table.","items":{"$ref":"#/components/schemas/TableFieldSchema"},"type":"array"}},"type":"object"}}},"externalDocs":{"url":"https://cloud.google.com/bigquery/"},"info":{"contact":{"name":"Google","url":"https://google.com","x-twitter":"youtube"},"description":"A data platform for customers to create, manage, share and query data.","license":{"name":"Creative Commons Attribution 3.0","url":"http://creativecommons.org/licenses/by/3.0/"},"termsOfService":"https://developers.google.com/terms/","title":"BigQuery API","version":"v2","x-apiClientRegistration":{"url":"https://console.developers.google.com"},"x-apisguru-categories":["analytics","media"],"x-logo":{"url":"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"},"x-origin":[{"format":"openapi","url":"https://bigquery.googleapis.com/$discovery/rest?version=v2","version":"3.0"}],"x-providerName":"googleapis.com","x-serviceName":"bigquery"},"openapi":"3.0.0","paths":{"/projects/{projectId}/queries":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"post":{"description":"Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.","operationId":"bigquery.jobs.query","parameters":[{"description":"Required. Project ID of the query request.","in":"path","name":"projectId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}},"description":"Successful response"}},"tags":["jobs"],"x-pay-metering":{"dimensions":[{"direction":"usage","scale":1,"tiers":[{"price_usd":0.001}],"unit":"requests"}],"schemes":["mpp-charge","x402-exact"]}}},"/projects/{projectId}/queries/{jobId}":{"get":{"description":"RPC to get the results of a query job.","operationId":"bigquery.jobs.getQueryResults","parameters":[{"description":"Required. Project ID of the query job.","in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Required. Job ID of the query job.","in":"path","name":"jobId","required":true,"schema":{"type":"string"}},{"description":"Optional. Output timestamp as usec int64. Default is false.","in":"query","name":"formatOptions.useInt64Timestamp","schema":{"type":"boolean"}},{"description":"The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location.","in":"query","name":"location","schema":{"type":"string"}},{"description":"Maximum number of results to read.","in":"query","name":"maxResults","schema":{"type":"integer"}},{"description":"Page token, returned by a previous call, to request the next page of results.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"Zero-based index of the starting row.","in":"query","name":"startIndex","schema":{"type":"string"}},{"description":"Optional: Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false. You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete. If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.","in":"query","name":"timeoutMs","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetQueryResultsResponse"}}},"description":"Successful response"}},"tags":["jobs"],"x-pay-metering":{"dimensions":[{"direction":"usage","scale":1,"tiers":[{"price_usd":0.001}],"unit":"requests"}],"schemes":["mpp-charge","x402-exact"]}},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}]}},"servers":[{"url":"https://bigquery.google.gateway-402.com/bigquery/v2"}],"tags":[{"name":"datasets"},{"name":"jobs"},{"name":"models"},{"name":"projects"},{"name":"routines"},{"name":"rowAccessPolicies"},{"name":"tabledata"},{"name":"tables"}]}