From ef8d1386149cff28ae6258ab167789bae6af6407 Mon Sep 17 00:00:00 2001 From: shollyman Date: Tue, 29 Jun 2021 10:15:29 -0700 Subject: [PATCH] fix(bigquery): minor rename to feature that's not yet in a release (#4320) 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigquery/job.go b/bigquery/job.go index 725775dfd68..6bdcbcc3c32 100644 --- a/bigquery/job.go +++ b/bigquery/job.go @@ -63,8 +63,8 @@ func (c *Client) JobFromIDLocation(ctx context.Context, id, location string) (j return bqToJob(bqjob, c) } -// Project returns the job's project. -func (j *Job) Project() string { +// ProjectID returns the job's associated project. +func (j *Job) ProjectID() string { return j.projectID }