feat: add flag for gapic metadata by software-dov · Pull Request #795 · googleapis/gapic-generator-python · GitHub
Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

feat: add flag for gapic metadata#795

Merged
gcf-merge-on-green[bot] merged 3 commits into
googleapis:masterfrom
software-dov:metadata-flag-pick
Mar 3, 2021
Merged

feat: add flag for gapic metadata#795
gcf-merge-on-green[bot] merged 3 commits into
googleapis:masterfrom
software-dov:metadata-flag-pick

Conversation

@software-dov

Copy link
Copy Markdown
Contributor

As per the design doc, gapic metadata should not be generated by
default, and should be gated by the 'metadata' flag.

When invoking the generator via protoc, toggle the metadata flag like so:
--python_gapic_opt="metadata"

Subsequent Bazel integration is WIP.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 2, 2021
@codecov

codecov Bot commented Mar 2, 2021

Copy link
Copy Markdown

As per the design doc, gapic metadata should not be generated by
default, and should be gated by the 'metadata' flag.

When invoking the generator via protoc, toggle the metadata flag like so:
--python_gapic_opt="metadata"

Subsequent Bazel integration is WIP.

@vchudnov-g vchudnov-g left a comment

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.

Looks good. Thanks for doing this!

Before turning on the metadata file, we should resolve the issue in the other pr about the dual transports.

Comment thread gapic/utils/options.py Outdated
Comment thread tests/unit/generator/test_generator.py Outdated
@software-dov software-dov added the automerge Merge the pull request once unit tests and other checks pass. label Mar 3, 2021
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 9cd7664 into googleapis:master Mar 3, 2021
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants