Skip to content

test(sample): use NewTest* in remaining models - #7758

Merged
coryan merged 2 commits into
googleapis:mainfrom
coryan:newtest-pr15-sample-models
Oct 6, 2026
Merged

coryan merged 2 commits into
googleapis:mainfrom
coryan:newtest-pr15-sample-models

Conversation

@coryan

@coryan coryan commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Towards #7722

@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 refactors internal/sample/api.go to use a builder-style API (such as api.NewTestEnum, api.NewTestMessage, and api.NewTestField) for constructing sample API structures instead of direct struct initializations. The feedback points out a redundant WithID call in SecretPayload because WithPackage already sets the ID.

Comment thread internal/sample/api.go Outdated
@coryan
coryan marked this pull request as ready for review October 6, 2026 12:08
@coryan
coryan requested a review from a team as a code owner October 6, 2026 12:08
@coryan
coryan force-pushed the newtest-pr15-sample-models branch from 96fff16 to 15b364a Compare October 6, 2026 16:57
@coryan
coryan enabled auto-merge (squash) October 6, 2026 16:57
@coryan
coryan merged commit 07f52b9 into googleapis:main Oct 6, 2026
46 checks passed
@coryan
coryan deleted the newtest-pr15-sample-models branch October 6, 2026 17:04
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