Repository navigation
feat: update sources and regenerate - #20399
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates several Google Cloud client libraries, including adding IAM permission documentation to BigQuery v2, introducing new OAuth scopes and markup syntax support to Chat v1, and implementing workspace branch management methods in Dataform v1beta1. In the Compute v1 preview client, defensive nil-guards were added to req when checking ParentId. The review feedback recommends removing these defensive nil-guards on req because the parameter is guaranteed to be non-nil by the caller, and such guards can mask bugs by silently no-oping instead of allowing a nil-panic to surface.
| if req != nil && req.ParentId != nil { | ||
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | ||
| } |
There was a problem hiding this comment.
Avoid adding defensive nil-guards on req since it is a parameter whose non-nil status is guaranteed by the caller. According to the general rules, such guards can mask real bugs by silently no-oping instead of allowing a nil-panic to surface the caller's mistake.
| if req != nil && req.ParentId != nil { | |
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | |
| } | |
| if req.ParentId != nil { | |
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | |
| } |
References
- Do not add defensive nil-guards on variables or parameters where invariants guaranteed by construction or call sites ensure they will never be nil.
| if req != nil && req.ParentId != nil { | ||
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | ||
| } |
There was a problem hiding this comment.
Avoid adding defensive nil-guards on req since it is a parameter whose non-nil status is guaranteed by the caller. According to the general rules, such guards can mask real bugs by silently no-oping instead of allowing a nil-panic to surface the caller's mistake.
| if req != nil && req.ParentId != nil { | |
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | |
| } | |
| if req.ParentId != nil { | |
| params.Add("parentId", fmt.Sprintf("%v", req.GetParentId())) | |
| } |
References
- Do not add defensive nil-guards on variables or parameters where invariants guaranteed by construction or call sites ensure they will never be nil.
|
Here is the summary of changes. You are about to add 5 region tags.
This comment is generated by snippet-bot.
|
|
Note that the changes to the |
🤖 I have created a release *beep* *boop* --- ## [1.53.0](bigtable/v1.52.0...bigtable/v1.53.0) (2026-08-27) ### Features * **bigtable/accelerator:** Add --user-agent flag to daemon ([#20341](#20341)) ([6b33c06](6b33c06)) * **bigtable/accelerator:** Add daemon binary with identity verification ([#20330](#20330)) ([2f9cf89](2f9cf89)) * **bigtable/accelerator:** Add proxy channel scaffold owning a sessi… ([#20310](#20310)) ([d65ca7d](d65ca7d)) * **bigtable/accelerator:** Add stdin-EOF and parent-PID lifecycle wa… ([#20328](#20328)) ([dc1c6ae](dc1c6ae)) * **bigtable/accelerator:** Add UDS server with authenticated proxy i… ([#20320](#20320)) ([a837020](a837020)) * **bigtable/accelerator:** Add V2-to-session request adapters ([#20271](#20271)) ([4cb6f16](4cb6f16)) * **bigtable/accelerator:** Authenticate UDS callers with a stdin tok… ([#20324](#20324)) ([7847ab7](7847ab7)) * **bigtable/accelerator:** Dispatch MutateRow and single-row ReadRow… ([#20312](#20312)) ([c89f336](c89f336)) * Update API sources and regenerate ([#20369](#20369)) ([bfe3aaf](bfe3aaf)) * Update sources and regenerate ([#20399](#20399)) ([a6b5cdb](a6b5cdb)) ### Bug Fixes * **bigtable/internal/transport:** Drop redundant defer p.Close() in AFE picker tests ([#20311](#20311)) ([c05b767](c05b767)) * **bigtable:** Register c2p resolver + RLS balancer for accelerator daemon DirectPath ([#20362](#20362)) ([95f372f](95f372f)) * **bigtable:** Session client — set AllowNonDefaultServiceAccount on DirectPath dial ([#20343](#20343)) ([b9c76ec](b9c76ec)) * **bigtable:** Session client — single ownership + single-flight pool loading ([#20368](#20368)) ([f4ad950](f4ad950)) * **bigtable:** Session pool — re-drive creation after a never-activated close so the consecutive-failure breaker is reachable ([#20355](#20355)) ([ee74949](ee74949)) * **bigtable:** Use composed user agent as CSM client_name ([#20383](#20383)) ([cb02335](cb02335)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This is a manually created release that includes the updated `preview/internal/compute` code from `main` at 56307b0. --- ## [1.72.0-preview.1](compute/v1.66.0-preview.1...compute/v1.72.0-preview.1) (2026-09-30) ### Features * **all:** Update supported go versions ([#20520](#20520)) ([90413d3](90413d3)) * Update API sources and regenerate ([#20326](#20326)) ([a25826f](a25826f)) * Update API sources and regenerate ([#20459](#20459)) ([5426e32](5426e32)) * Update API sources and regenerate ([#20526](#20526)) ([e6f37a3](e6f37a3)) * Update API sources and regenerate ([#20607](#20607)) ([395fc59](395fc59)) * Update API sources and regenerate. ([e6f37a3](e6f37a3)) * Update sources and regenerate ([#20399](#20399)) ([a6b5cdb](a6b5cdb)) --- This PR **body** was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
No description provided.