Skip to content

chore: librarian generate pull request: 20251231T080340Z#13528

Merged
ldetmer merged 1 commit intomainfrom
librarian-20251231T080340Z
Jan 2, 2026
Merged

chore: librarian generate pull request: 20251231T080340Z#13528
ldetmer merged 1 commit intomainfrom
librarian-20251231T080340Z

Conversation

@cloud-sdk-librarian-robot
Copy link
Collaborator

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

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
docs: change comment indicating enable_gemini_in_bigquery field for BigQuery Reservation Assignments is deprecated

PiperOrigin-RevId: 850121797
Library-IDs: bigquery
Source-link: googleapis/googleapis@94ccedca
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: expose BigtableProtoConfig for bigtable integration

PiperOrigin-RevId: 850096604
Library-IDs: bigquery/v2
Source-link: googleapis/googleapis@2c8fbf7f
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: add index ID to IndexPruningStats

PiperOrigin-RevId: 850096604
Library-IDs: bigquery/v2
Source-link: googleapis/googleapis@2c8fbf7f
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@535d161c
(exclusive) and
googleapis/googleapis@94ccedca
(inclusive).

Librarian Version: v0.0.0-20251218164811-cd2252e38d0a
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/librarian-go@sha256:718167d5c23ed389b41f617b3a00ac839bdd938a6bd2d48ae0c2f1fa51ab1c3d

@cloud-sdk-librarian-robot cloud-sdk-librarian-robot requested a review from a team as a code owner December 31, 2025 08:03
@cloud-sdk-librarian-robot cloud-sdk-librarian-robot requested a review from a team December 31, 2025 08:03
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @cloud-sdk-librarian-robot, 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 updates the BigQuery client libraries by regenerating code from recent protobuf definitions. The core functional enhancement is the introduction of new capabilities for Bigtable external data sources, specifically enabling the use of protobuf schemas for data encoding within Bigtable columns and column families. This allows for more structured and type-safe integration of Bigtable data with protobuf-defined messages.

Highlights

  • Bigtable Protobuf Configuration: Introduced a new "BigtableProtoConfig" message type, allowing for the specification of Bigtable SchemaBundle IDs and fully qualified protobuf message names when configuring Bigtable external data sources.
  • Enhanced Bigtable Column and Family Support: Added support for "PROTO_BINARY" encoding to "BigtableColumn" and "BigtableColumnFamily" definitions. This includes an optional "ProtoConfig" field to link Bigtable columns and families to specific protobuf configurations.
  • Client Library Regeneration: The BigQuery and BigQuery/v2 client libraries have been regenerated to incorporate the latest protobuf changes, updating the "last_generated_commit" in the librarian state file.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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.

Copy link
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 BigQuery client library based on recent proto changes. The main feature is the introduction of BigtableProtoConfig to support Bigtable integration, which involves adding new message types and fields to the external data configuration.

My review of the generated code has identified a couple of minor maintainability issues in the underlying protobuf definitions regarding non-sequential field numbering. While not affecting functionality, addressing these would align the code with best practices and improve future maintenance. Please see the specific comments for details.

Comment on lines +511 to +526
type BigtableProtoConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields

// Optional. The ID of the Bigtable SchemaBundle resource associated with this
// protobuf. The ID should be referred to within the parent table, e.g.,
// `foo` rather than
// `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/foo`.
// See [more details on Bigtable
// SchemaBundles](https://docs.cloud.google.com/bigtable/docs/create-manage-protobuf-schemas).
SchemaBundleId string `protobuf:"bytes,3,opt,name=schema_bundle_id,json=schemaBundleId,proto3" json:"schema_bundle_id,omitempty"`
// Optional. The fully qualified proto message name of the protobuf. In the
// format of "foo.bar.Message".
ProtoMessageName string `protobuf:"bytes,2,opt,name=proto_message_name,json=protoMessageName,proto3" json:"proto_message_name,omitempty"`
}
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The field numbers in the underlying BigtableProtoConfig protobuf message are not sequential (ProtoMessageName is 2, SchemaBundleId is 3, and field 1 is missing). While this is valid, it's unconventional and can make the protobuf definition harder to maintain. It's a good practice to use sequential field numbers starting from 1. Consider renumbering the fields in the source .proto file to be 1 and 2 for better clarity and to follow common protobuf style.

Comment on lines +765 to +767
// Optional. Protobuf-specific configurations, only takes effect when the
// encoding is PROTO_BINARY.
ProtoConfig *BigtableProtoConfig `protobuf:"bytes,7,opt,name=proto_config,json=protoConfig,proto3" json:"proto_config,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The new proto_config field is assigned field number 7 in the underlying BigtableColumnFamily protobuf message, while the preceding field only_read_latest is number 5. This leaves a gap at field number 6. To improve maintainability and adhere to protobuf best practices, it's recommended to use sequential field numbers. Please consider renumbering proto_config to 6 in the source .proto file.

@ldetmer ldetmer merged commit 35d7578 into main Jan 2, 2026
9 checks passed
@ldetmer ldetmer deleted the librarian-20251231T080340Z branch January 2, 2026 14:39
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