From 5e5f923b73f2a8254de503a27d0f0a37e28a8850 Mon Sep 17 00:00:00 2001 From: Seth Hollyman Date: Fri, 25 Jun 2021 16:21:30 +0000 Subject: [PATCH] fix(bigquery): minor rename to feature that's not yet in a release. This adds a minor correction to Job's access to the underlying project. While the access on the Client is more accurately called `Project()` as it accepts project ID or project number, in this case the field is part of the underlying JobReference type. This was added yesterday in https://github.com/googleapis/google-cloud-go/pull/4312 and hasn't made it into a release cut yet, so addressing this now before release. --- bigquery/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigquery/job.go b/bigquery/job.go index 725775dfd68..b24a20f7561 100644 --- a/bigquery/job.go +++ b/bigquery/job.go @@ -64,7 +64,7 @@ func (c *Client) JobFromIDLocation(ctx context.Context, id, location string) (j } // Project returns the job's project. -func (j *Job) Project() string { +func (j *Job) ProjectID() string { return j.projectID }