From 77980dc58567d40b3fe21273ae7865b25aafc303 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 1 Dec 2026 19:39:53 +0000 Subject: [PATCH] docs(bigquery): fix broken multiline and overload Javadoc links Fixes broken multiline and varargs overload {@link} tags in BigQuery, DatasetInfo, and Table so Cloud Reference Docs and standard Javadoc resolve each link to its exact target method. --- .../com/google/cloud/bigquery/BigQuery.java | 19 +++++++++---------- .../google/cloud/bigquery/DatasetInfo.java | 9 +++++---- .../java/com/google/cloud/bigquery/Table.java | 12 ++++++------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java index ce35876a7517..c99a1126632f 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java @@ -39,9 +39,8 @@ * An interface for Google Cloud BigQuery. * *

Provides synchronous operations to manage BigQuery resources ({@link Dataset}, {@link Table}, - * {@link Model}, {@link Routine}), run SQL queries ({@link #query(QueryJobConfiguration, - * JobOption...)}), submit and monitor asynchronous {@link Job}s, and ingest data ({@link #writer}, - * {@link #insertAll}). + * {@link Model}, {@link Routine}), run SQL queries ({@link #query}), submit and monitor + * asynchronous {@link Job}s, and ingest data ({@link #writer}, {@link #insertAll}). * *

Typically, create one {@code BigQuery} instance per application via {@link * BigQueryOptions#getService()} and reuse it across threads. Call {@link #close()} on application @@ -1483,7 +1482,7 @@ TableResult listTableData( /** * Returns the requested job or {@code null} if not found. If the location of the job is not "US" - * or "EU", {@link #getJob(JobId, JobOption...)} must be used instead. + * or "EU", {@link #getJob(JobId, BigQuery.JobOption[])} must be used instead. * *

Example of getting a job. * @@ -1587,8 +1586,8 @@ TableResult listTableData( /** * Runs the query associated with the request, using an internally-generated random JobId. * - *

If the location of the job is not "US" or "EU", {@link #query(QueryJobConfiguration, JobId, - * JobOption...)} must be used instead. + *

If the location of the job is not "US" or "EU", specify the job location via {@link + * #query(QueryJobConfiguration, JobId, BigQuery.JobOption[])} instead. * *

This method cannot be used in conjuction with {@link QueryJobConfiguration#dryRun()} * queries. Since dry-run queries are not actually executed, there's no way to retrieve results. @@ -1626,8 +1625,8 @@ TableResult query(QueryJobConfiguration configuration, JobOption... options) *

This method cannot be used in conjunction with {@link QueryJobConfiguration#dryRun()} * queries. Since dry-run queries are not actually executed, there's no way to retrieve results. * - *

See {@link #query(QueryJobConfiguration, JobOption...)} for examples on populating a {@link - * QueryJobConfiguration}. + *

See {@link #query(QueryJobConfiguration, BigQuery.JobOption[])} for examples on populating a + * {@link QueryJobConfiguration}. * * @throws BigQueryException upon failure * @throws InterruptedException if the current thread gets interrupted while waiting for the query @@ -1715,8 +1714,8 @@ default ArrowQueryResult queryArrow( *

This method cannot be used in conjunction with {@link QueryJobConfiguration#dryRun()} * queries. Since dry-run queries are not actually executed, there's no way to retrieve results. * - *

See {@link #query(QueryJobConfiguration, JobOption...)} for examples on populating a {@link - * QueryJobConfiguration}. + *

See {@link #query(QueryJobConfiguration, BigQuery.JobOption[])} for examples on populating a + * {@link QueryJobConfiguration}. * * @throws BigQueryException upon failure * @throws InterruptedException if the current thread gets interrupted while waiting for the query diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java index bbea7237faf6..e126780c09cf 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java @@ -455,10 +455,11 @@ public DatasetId getDatasetId() { *

Each {@link Acl} entry is immutable. Calling {@code acls.add(...)} appends a new entry to * the dataset's access list; to modify an existing {@link Acl} (for example, to change its {@link * Acl.Role} or {@link Acl.Expr} condition), remove the existing entry from the copied list and - * add a new {@link Acl} before calling {@link BigQuery#update(DatasetInfo, - * BigQuery.DatasetOption...)}. When reading or updating conditional ACLs ({@link Acl.Expr}), pass - * {@link BigQuery.DatasetOption#accessPolicyVersion(Integer) - * DatasetOption.accessPolicyVersion(3)} to {@code getDataset} and {@code update}. + * add a new {@link Acl}. + * + *

Apply the updated list via {@link BigQuery#update(DatasetInfo, BigQuery.DatasetOption[])}. + * When reading or updating conditional ACLs ({@link Acl.Expr}), pass {@link + * BigQuery.DatasetOption#accessPolicyVersion(Integer)} to {@code getDataset} and {@code update}. * *

Append a new ACL entry to a dataset: * diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java index 5e9206450b1e..9151fccc6f2f 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java @@ -322,9 +322,9 @@ public boolean delete() { * *

Streaming inserts reside temporarily in the streaming buffer, which has different * availability characteristics than managed storage. Certain operations do not interact with the - * streaming buffer, such as {@link #list(TableDataListOption...)} and {@link #copy(TableId, - * JobOption...)}. As such, recent streaming data will not be present in the destination table or - * output. + * streaming buffer, such as {@link #list(BigQuery.TableDataListOption[])}. You can also copy the + * table using {@link #copy(TableId, BigQuery.JobOption[])}. As such, recent streaming data will + * not be present in the destination table or output. * *

Example of inserting rows into the table. * @@ -357,9 +357,9 @@ public InsertAllResponse insert(Iterable rows) * *

Streaming inserts reside temporarily in the streaming buffer, which has different * availability characteristics than managed storage. Certain operations do not interact with the - * streaming buffer, such as {@link #list(TableDataListOption...)} and {@link #copy(TableId, - * JobOption...)}. As such, recent streaming data will not be present in the destination table or - * output. + * streaming buffer, such as {@link #list(BigQuery.TableDataListOption[])}. You can also copy the + * table using {@link #copy(TableId, BigQuery.JobOption[])}. As such, recent streaming data will + * not be present in the destination table or output. * *

Example of inserting rows into the table, ignoring invalid rows. *