Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

[ggj] feat(drift): Generate gapic_metadata.json, add integ test framework support - #657

Merged
miraleung merged 6 commits into
masterfrom
feat/gapic_metadata
Feb 17, 2021
Merged

miraleung merged 6 commits into
masterfrom
feat/gapic_metadata

Conversation

@miraleung

Copy link
Copy Markdown
Contributor

No description provided.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 17, 2021
@miraleung
miraleung requested a review from vchudnov-g February 17, 2021 00:20
@miraleung

ghost commented Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

@vchudnov-g PTAL at the generated gapic_metadata.json files.

ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM! Thanks for doing this!

serviceClientProtoBuilder.putRpcs(rpcName, methodList);
}

metadataBuilder =

ghost Feb 17, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm curious: I see you use the pattern fooBuilder = fooBuilder.doSomething().setSomething(). Is the assignment redundant? I thought the builder methods were mutating, rather than functional methods returning a new copy of the object with the changes requested.

ghost Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, the original builder doesn't mutate - AFAIK AutoValue classes are all immutable.

ghost Feb 17, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh, weird. In the monolith, builders were used as though their setters mutate. My mental model had been that AutoValue classes are immutable but AutoValue.Builder clases were mutable; I'll need to figure this out. Is there more than one AutoValue impl around?

@miraleung
miraleung merged commit 055f206 into master Feb 17, 2021
@miraleung
miraleung deleted the feat/gapic_metadata branch February 17, 2021 21:22
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