Skip to content

chore: librarian generate pull request: 20260226T203906Z#1300

Closed
parthea wants to merge 1 commit intomainfrom
librarian-20260226T203906Z
Closed

chore: librarian generate pull request: 20260226T203906Z#1300
parthea wants to merge 1 commit intomainfrom
librarian-20260226T203906Z

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Feb 26, 2026

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

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: add TieredStorageConfig to table admin api

PiperOrigin-RevId: 863493708
Library-IDs: google-cloud-bigtable
Source-link: googleapis/googleapis@a6cbf809
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@a17b84ad
(exclusive) and
googleapis/googleapis@a6cbf809
(inclusive).

Librarian Version: v0.7.0
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209

@parthea parthea requested a review from a team as a code owner February 26, 2026 20:39
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/python-bigtable API. labels Feb 26, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @parthea, 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 integrates new tiered storage configuration capabilities into the Google Cloud Bigtable Admin client library. It updates the generated client code to expose TieredStorageConfig and TieredStorageRule objects, allowing users to define rules for data storage across different tiers. Additionally, it refines the development environment setup by adjusting Python versions for testing and streamlining dependency management.

Highlights

  • Bigtable Admin API Update: Added support for TieredStorageConfig and TieredStorageRule to the Bigtable Admin API, enabling configuration of tiered storage for tables.
  • Client Library Generation: Updated the google-cloud-bigtable client library to reflect the latest proto definitions, specifically incorporating the new tiered storage features.
  • Development Environment Adjustments: Modified noxfile.py to include Python 3.9 in system test versions and unit test sessions, and removed cryptography from prerelease dependencies.
Changelog
  • .librarian/state.yaml
    • Updated the last_generated_commit hash to reflect the latest proto generation.
  • google/cloud/bigtable_admin/init.py
    • Imported TieredStorageConfig and TieredStorageRule.
    • Added TieredStorageConfig and TieredStorageRule to the module's __all__ export list.
  • google/cloud/bigtable_admin_v2/init.py
    • Imported TieredStorageConfig and TieredStorageRule.
    • Added TieredStorageConfig and TieredStorageRule to the module's __all__ export list.
  • google/cloud/bigtable_admin_v2/types/init.py
    • Imported TieredStorageConfig and TieredStorageRule.
    • Added TieredStorageConfig and TieredStorageRule to the module's __all__ export list.
  • google/cloud/bigtable_admin_v2/types/table.py
    • Defined new message classes TieredStorageConfig and TieredStorageRule.
    • Added TieredStorageConfig and TieredStorageRule to the Table message's nested type definitions.
    • Introduced a tiered_storage_config field to the Table message, allowing specification of tiered storage rules.
  • noxfile.py
    • Updated SYSTEM_TEST_PYTHON_VERSIONS to include Python 3.9.
    • Added unit-3.9 to the default nox.options.sessions.
    • Removed cryptography from the other_deps list in the prerelease_deps session.
Activity
  • The pull request was automatically generated by the Librarian CLI.
  • The changes incorporate a new feature: adding TieredStorageConfig to the Bigtable admin API, based on a googleapis/googleapis commit.
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, introduces TieredStorageConfig to the table admin API. The changes are primarily in auto-generated files. My review focuses on ensuring the generated code adheres to Python best practices for maintainability. I've identified several places where imports and __all__ definitions are not alphabetically sorted, and I've provided suggestions to correct them in line with PEP 8 guidelines. The rest of the generated code appears to be correct.

Comment on lines 316 to 321
from google.cloud.bigtable_admin_v2.types.table import SchemaBundle
from google.cloud.bigtable_admin_v2.types.table import Snapshot
from google.cloud.bigtable_admin_v2.types.table import Table
from google.cloud.bigtable_admin_v2.types.table import TieredStorageConfig
from google.cloud.bigtable_admin_v2.types.table import TieredStorageRule
from google.cloud.bigtable_admin_v2.types.table import RestoreSourceType
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better maintainability and adherence to PEP 8, the imports from google.cloud.bigtable_admin_v2.types.table should be sorted alphabetically.

Suggested change
from google.cloud.bigtable_admin_v2.types.table import SchemaBundle
from google.cloud.bigtable_admin_v2.types.table import Snapshot
from google.cloud.bigtable_admin_v2.types.table import Table
from google.cloud.bigtable_admin_v2.types.table import TieredStorageConfig
from google.cloud.bigtable_admin_v2.types.table import TieredStorageRule
from google.cloud.bigtable_admin_v2.types.table import RestoreSourceType
from google.cloud.bigtable_admin_v2.types.table import RestoreSourceType
from google.cloud.bigtable_admin_v2.types.table import SchemaBundle
from google.cloud.bigtable_admin_v2.types.table import Snapshot
from google.cloud.bigtable_admin_v2.types.table import Table
from google.cloud.bigtable_admin_v2.types.table import TieredStorageConfig
from google.cloud.bigtable_admin_v2.types.table import TieredStorageRule
References
  1. PEP 8, the style guide for Python code, recommends that imports should be sorted alphabetically. (link)

Comment on lines 443 to 449
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"RestoreSourceType",
"Type",
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve readability and follow common Python conventions, the contents of __all__ should be sorted alphabetically.

Suggested change
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"RestoreSourceType",
"Type",
"RestoreSourceType",
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"Type",
References
  1. PEP 8, the style guide for Python code, recommends that entries in __all__ should be sorted alphabetically. (link)

Comment on lines 150 to 155
from .types.table import SchemaBundle
from .types.table import Snapshot
from .types.table import Table
from .types.table import TieredStorageConfig
from .types.table import TieredStorageRule
from .types.table import RestoreSourceType
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better maintainability and adherence to PEP 8, the imports from .types.table should be sorted alphabetically.

Suggested change
from .types.table import SchemaBundle
from .types.table import Snapshot
from .types.table import Table
from .types.table import TieredStorageConfig
from .types.table import TieredStorageRule
from .types.table import RestoreSourceType
from .types.table import RestoreSourceType
from .types.table import SchemaBundle
from .types.table import Snapshot
from .types.table import Table
from .types.table import TieredStorageConfig
from .types.table import TieredStorageRule
References
  1. PEP 8, the style guide for Python code, recommends that imports should be sorted alphabetically. (link)

Comment on lines 139 to 144
SchemaBundle,
Snapshot,
Table,
TieredStorageConfig,
TieredStorageRule,
RestoreSourceType,
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve readability and follow common Python conventions, the imported names from .table should be sorted alphabetically.

Suggested change
SchemaBundle,
Snapshot,
Table,
TieredStorageConfig,
TieredStorageRule,
RestoreSourceType,
RestoreSourceType,
SchemaBundle,
Snapshot,
Table,
TieredStorageConfig,
TieredStorageRule,
References
  1. PEP 8, the style guide for Python code, recommends that imports should be sorted alphabetically. (link)

Comment on lines 265 to 271
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"RestoreSourceType",
"Type",
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To improve readability and follow common Python conventions, the contents of __all__ should be sorted alphabetically.

Suggested change
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"RestoreSourceType",
"Type",
"RestoreSourceType",
"SchemaBundle",
"Snapshot",
"Table",
"TieredStorageConfig",
"TieredStorageRule",
"Type",
References
  1. PEP 8, the style guide for Python code, recommends that entries in __all__ should be sorted alphabetically. (link)

@parthea parthea closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant