Skip to content

chore: librarian generate pull request: 20260213T153826Z#1165

Closed
parthea wants to merge 1 commit intomainfrom
librarian-20260213T153826Z
Closed

chore: librarian generate pull request: 20260213T153826Z#1165
parthea wants to merge 1 commit intomainfrom
librarian-20260213T153826Z

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Feb 13, 2026

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

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: Expose the Database.mongodb_compatible_data_access_mode parameter

PiperOrigin-RevId: 865444806
Library-IDs: google-cloud-firestore
Source-link: googleapis/googleapis@760ef858
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: Expose the Database.realtime_updates_mode parameter

PiperOrigin-RevId: 865444806
Library-IDs: google-cloud-firestore
Source-link: googleapis/googleapis@760ef858
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: Expose the Index.unique parameter

PiperOrigin-RevId: 865444806
Library-IDs: google-cloud-firestore
Source-link: googleapis/googleapis@760ef858
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: Update documentation on several parameters, especially when relating to the new enterprise database edition

PiperOrigin-RevId: 865444806
Library-IDs: google-cloud-firestore
Source-link: googleapis/googleapis@760ef858
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: Expose the Database.firestore_data_access_mode parameter

PiperOrigin-RevId: 865444806
Library-IDs: google-cloud-firestore
Source-link: googleapis/googleapis@760ef858
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@1a9d00be
(exclusive) and
googleapis/googleapis@760ef858
(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 review from a team as code owners February 13, 2026 15:38
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: firestore Issues related to the googleapis/python-firestore API. labels Feb 13, 2026
@gemini-code-assist
Copy link

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, automatically generated by the Librarian CLI, significantly enhances the Cloud Firestore Admin client library by introducing new API parameters and improving existing documentation. It provides developers with greater control over Firestore database configurations, including new data access modes, real-time update settings, and the ability to define unique indexes. The changes also refine existing parameter descriptions, particularly those relevant to the Enterprise database edition, and update development environment configurations.

Highlights

  • New Database Parameters Exposed: The Database resource now exposes mongodb_compatible_data_access_mode, realtime_updates_mode, and firestore_data_access_mode parameters, providing more granular control over database behavior.
  • Unique Index Support: A new unique parameter has been added to Index resources, enabling the creation of unique indexes to enforce data integrity.
  • Enhanced Documentation for Enterprise Edition: Documentation across several parameters has been updated to clarify behavior and defaults, especially in relation to the new enterprise database edition.
  • New Realtime Updates Mode: A new RealtimeUpdatesMode enum type has been introduced to manage and configure real-time update settings for databases.
  • Development Dependency Update: The pyyaml dependency has been removed from the system test configurations in noxfile.py.
  • Expanded Test Coverage: Python 3.9 has been added to the unit test suite, and new test cases cover the recently exposed database and index parameters.
Changelog
  • .librarian/state.yaml
    • Updated the last_generated_commit hash to reflect the latest generation.
  • google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py
    • Imported the realtime_updates type.
    • Updated the docstring for database_id to specify its validity for Standard edition databases.
  • google/cloud/firestore_admin_v1/services/firestore_admin/client.py
    • Imported the realtime_updates type.
    • Updated the docstring for database_id to specify its validity for Standard edition databases.
  • google/cloud/firestore_admin_v1/types/init.py
    • Imported RealtimeUpdatesMode from realtime_updates.
    • Added RealtimeUpdatesMode to the __all__ export list.
  • google/cloud/firestore_admin_v1/types/database.py
    • Imported realtime_updates.
    • Added realtime_updates_mode, firestore_data_access_mode, and mongodb_compatible_data_access_mode fields to the Database message.
    • Updated the docstring for concurrency_mode to detail default settings for Enterprise and Standard editions.
    • Introduced the DataAccessMode enum within the Database class.
    • Updated the docstring for EncryptionConfig to include PitrSnapshot as a possible source.
  • google/cloud/firestore_admin_v1/types/field.py
    • Updated the TtlConfig docstring to clarify timestamp value handling for Enterprise edition databases.
  • google/cloud/firestore_admin_v1/types/firestore_admin.py
    • Updated docstrings for CreateDatabaseRequest, RestoreDatabaseRequest, and CloneDatabaseRequest to clarify "(default)" database ID validity for Standard edition.
    • Updated docstrings for ExportDocumentsRequest and ImportDocumentsRequest to refer to "collection groups" instead of "collections".
  • google/cloud/firestore_admin_v1/types/index.py
    • Added a unique boolean field to the Index message.
    • Added a unique boolean field to the FlatIndex message.
    • Expanded and clarified docstrings for Density enum values (SPARSE_ALL, SPARSE_ANY, DENSE) with examples and edition-specific details.
  • google/cloud/firestore_admin_v1/types/realtime_updates.py
    • Added a new file defining the RealtimeUpdatesMode enum.
  • noxfile.py
    • Removed pyyaml from SYSTEM_TEST_EXTERNAL_DEPENDENCIES.
    • Added unit-3.9 to the list of default Nox sessions for unit testing.
  • tests/unit/gapic/firestore_admin_v1/test_firestore_admin.py
    • Imported realtime_updates for testing purposes.
    • Added test cases for the new unique parameter in index.Index across various get_index and create_index tests.
    • Included test cases for realtime_updates_mode, firestore_data_access_mode, and mongodb_compatible_data_access_mode in database.Database tests.
Activity
  • This pull request was automatically generated by the Librarian CLI, indicating no manual human activity during its creation.
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

@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 several new features to the Firestore Admin API v1. It exposes mongodb_compatible_data_access_mode, realtime_updates_mode, and firestore_data_access_mode on the Database resource, and a unique parameter on Index. The documentation has also been updated to reflect these changes and clarify behavior for the new 'enterprise' database edition. The changes appear to be correctly implemented, including updates to tests to cover the new fields. I have one minor suggestion to improve code quality in a newly added file.

Comment on lines +18 to +19
from typing import MutableMapping, MutableSequence

Choose a reason for hiding this comment

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

medium

The MutableMapping and MutableSequence imports are unused in this file and can be removed to improve code cleanliness.

SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [
"pytest-asyncio==0.21.2",
"six",
"pyyaml",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change needs to be restored

CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

nox.options.sessions = [
"unit-3.9",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be removed. See #1163

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

Labels

api: firestore Issues related to the googleapis/python-firestore API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments