镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix(gapic-generator): do not emit empty routing metadata on client-streaming RPCs - #18591

Open
daniel-sanche wants to merge 2 commits into
mainfrom
fix_bq_routing_header_gapic-generator_16650
Open

daniel-sanche wants to merge 2 commits into
mainfrom
fix_bq_routing_header_gapic-generator_16650

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Previously, the generator would output empty routing metadata for client-streaming RPCs. Instead, we should skip adding routing metadata altogether when client_streaming is true.

Addresses #16650 (will be fixed after next generator update)

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request prevents the generation of routing metadata headers for client streaming and bidirectional streaming RPC methods in Python GAPIC clients. It updates Jinja2 templates (both standard and ads-specific) to conditionally skip metadata generation when method.client_streaming is true. It also adds streaming methods to test proto definitions and introduces a comprehensive unit test to verify this behavior. I have no feedback to provide as there are no review comments.

This branch has not been deployed

No deployments
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.

1 participant