From d3cf69549ffb5afe07ded7ed8a850b6207cc67fc Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 22 Sep 2026 05:08:33 -0700 Subject: [PATCH] chore(bigquery): update types from Discovery --- handwritten/bigquery/src/bigquery.ts | 26 +++++++------------------- handwritten/bigquery/src/types.d.ts | 4 ++-- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/handwritten/bigquery/src/bigquery.ts b/handwritten/bigquery/src/bigquery.ts index e0e8f1411e22..d397e71991da 100644 --- a/handwritten/bigquery/src/bigquery.ts +++ b/handwritten/bigquery/src/bigquery.ts @@ -92,8 +92,7 @@ export type PagedRequest

= P & { }; export type QueryResultsResponse = - | bigquery.IGetQueryResultsResponse - | bigquery.IQueryResponse; + bigquery.IGetQueryResultsResponse | bigquery.IQueryResponse; export type QueryRowsResponse = PagedResponse< RowMetadata, @@ -135,16 +134,10 @@ export type Query = JobRequest & { export type QueryParamTypeStruct = { [type: string]: - | string - | string[] - | QueryParamTypeStruct - | QueryParamTypeStruct[]; + string | string[] | QueryParamTypeStruct | QueryParamTypeStruct[]; }; export type QueryParamTypes = - | string[] - | string[][] - | QueryParamTypeStruct - | QueryParamTypeStruct[]; + string[] | string[][] | QueryParamTypeStruct | QueryParamTypeStruct[]; export type QueryOptions = QueryResultsOptions; export type QueryStreamOptions = { @@ -598,8 +591,7 @@ export class BigQuery extends Service { selectedFields?: string[]; parseJSON?: boolean; listParams?: - | bigquery.tabledata.IListParams - | bigquery.jobs.IGetQueryResultsParams; + bigquery.tabledata.IListParams | bigquery.jobs.IGetQueryResultsParams; }, ) { // deep copy schema fields to avoid mutation @@ -2208,9 +2200,7 @@ export class BigQuery extends Service { query( query: string | Query, optionsOrCallback?: - | QueryOptions - | SimpleQueryRowsCallback - | QueryRowsCallback, + QueryOptions | SimpleQueryRowsCallback | QueryRowsCallback, cb?: SimpleQueryRowsCallback | QueryRowsCallback, ): void | Promise | Promise { let options = @@ -2523,8 +2513,7 @@ function convertSchemaFieldValue( selectedFields?: string[]; parseJSON?: boolean; listParams?: - | bigquery.tabledata.IListParams - | bigquery.jobs.IGetQueryResultsParams; + bigquery.tabledata.IListParams | bigquery.jobs.IGetQueryResultsParams; }, ) { if (value === null) { @@ -2753,8 +2742,7 @@ export class BigQueryRange { value: string, elementType: string, listParams?: - | bigquery.tabledata.IListParams - | bigquery.jobs.IGetQueryResultsParams, + bigquery.tabledata.IListParams | bigquery.jobs.IGetQueryResultsParams, ): BigQueryRange { const [start, end] = BigQueryRange.fromStringValue_(value); const convertRangeSchemaValue = (value: string) => { diff --git a/handwritten/bigquery/src/types.d.ts b/handwritten/bigquery/src/types.d.ts index 83e9fe76cdfe..cbbfc442623b 100644 --- a/handwritten/bigquery/src/types.d.ts +++ b/handwritten/bigquery/src/types.d.ts @@ -13,7 +13,7 @@ // limitations under the License. /** - * Discovery Revision: 20260731 + * Discovery Revision: 20260811 */ /** @@ -2009,7 +2009,7 @@ declare namespace bigquery { */ errorStats?: IGenAiErrorStats; /** - * Function level stats for GenAi Functions. See https://docs.cloud.google.com/bigquery/docs/generative-ai-overview + * Function level stats for GenAI Functions. For more information, see [Generative AI overview](https://docs.cloud.google.com/bigquery/docs/generative-ai-overview). */ functionStats?: Array; };