Skip to content

chore: librarian generate pull request: 20251107T114237Z#13328

Merged
jskeet merged 1 commit intomainfrom
librarian-20251107T114237Z
Nov 7, 2025
Merged

chore: librarian generate pull request: 20251107T114237Z#13328
jskeet merged 1 commit intomainfrom
librarian-20251107T114237Z

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Nov 7, 2025

PR created by the Librarian CLI to generate Cloud Client Libraries code from protos.

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: make return_partial_success and unreachable fields public for list Bucket

PiperOrigin-RevId: 828488192
Library-IDs: storage
Source-link: googleapis/googleapis@3a77bd60
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: updates to docs and docs formatting

PiperOrigin-RevId: 828488192
Library-IDs: storage
Source-link: googleapis/googleapis@3a77bd60
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@72e7439c
(exclusive) and
googleapis/googleapis@3a77bd60
(inclusive).

Librarian Version: v0.4.1-0.20251107065905-10749bd2f1b8
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/librarian-go@sha256:313c142a607526975c2313348d975b1efe84e2dd68e768e76354dd3a45577637

@jskeet jskeet requested review from a team November 7, 2025 11:43
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @jskeet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily consists of an automated update to the Google Cloud Storage client library. The core changes involve substantial improvements to the documentation for numerous API methods, providing clearer explanations of their functionality, detailed IAM permission requirements, and specific behavioral nuances related to bucket and object management.

Highlights

  • Automated Code Generation Update: The storage library's generated code has been updated, as indicated by the change in .librarian/state.yaml.
  • Extensive Documentation Enhancements: Significant additions and clarifications have been made to the documentation for various Google Cloud Storage API methods in both storage_client.go and storage_grpc.pb.go.
  • Detailed IAM Permissions: The documentation now includes explicit IAM permissions required for each bucket and object operation, improving clarity for users.
  • Improved Method Descriptions: Many method descriptions have been expanded and refined to provide a more comprehensive understanding of their behavior, including details on soft delete policies, retention policies, and resumable uploads.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@jskeet jskeet requested a review from quartzmo November 7, 2025 11:44
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request, generated by the Librarian CLI, updates the Cloud Client Libraries from protos. The changes primarily consist of updating documentation comments across the storage package to be more descriptive and consistent. This includes adding details about IAM permissions, behavior with soft-deletes, and general wording improvements. My review focuses on the clarity and formatting of these new comments. I've pointed out a couple of typos and several instances of awkward line wrapping in the generated comments that could be improved for better readability. While these are likely from an upstream source, addressing them would improve the overall quality of the documentation.

@@ -432,26 +432,23 @@ type internalClient interface {
//
// API Overview and Naming SyntaxThe Cloud Storage gRPC API allows applications to read and write data through
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's a missing space between 'Syntax' and 'The', which appears to be a typo.

Suggested change
// API Overview and Naming SyntaxThe Cloud Storage gRPC API allows applications to read and write data through
// API Overview and Naming Syntax The Cloud Storage gRPC API allows applications to read and write data through

Comment on lines +559 to +561
// LockBucketRetentionPolicy permanently locks the retention
// policy that is
// currently applied to the specified bucket.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The line wrapping in this comment is a bit awkward and harms readability. Consider re-wrapping for better flow. This pattern of awkward wrapping appears in several other comments in this file.

Suggested change
// LockBucketRetentionPolicy permanently locks the retention
// policy that is
// currently applied to the specified bucket.
// LockBucketRetentionPolicy permanently locks the retention policy
// that is currently applied to the specified bucket.

@@ -818,26 +967,23 @@ type gRPCClient struct {
//
// API Overview and Naming SyntaxThe Cloud Storage gRPC API allows applications to read and write data through
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's a missing space between 'Syntax' and 'The', which appears to be a typo. This is a recurring issue in this file.

Suggested change
// API Overview and Naming SyntaxThe Cloud Storage gRPC API allows applications to read and write data through
// API Overview and Naming Syntax The Cloud Storage gRPC API allows applications to read and write data through

Comment on lines +98 to +100
// Requires `storage.buckets.get`
// IAM permission on
// the bucket. Additionally, to return specific bucket metadata, the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This comment has some awkward line breaks that affect readability. Consider keeping related parts of the sentence on the same line where possible to improve readability.

Suggested change
// Requires `storage.buckets.get`
// IAM permission on
// the bucket. Additionally, to return specific bucket metadata, the
// Requires `storage.buckets.get` IAM permission on the bucket.
// Additionally, to return specific bucket metadata, the

Comment on lines +220 to +221
// Restores a
// soft-deleted object.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The line break in 'Restores a soft-deleted object.' is awkward. It's better to keep this short sentence on a single line for improved readability.

Suggested change
// Restores a
// soft-deleted object.
// Restores a soft-deleted object.

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Nov 7, 2025

This is intended to unblock the Storage team while we're investigating googleapis/librarian#2821

@jskeet jskeet merged commit 93ca68d into main Nov 7, 2025
9 checks passed
@jskeet jskeet deleted the librarian-20251107T114237Z branch November 7, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants