google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

AIP-4235: Automatically populate fields in the request message

Open coryan opened this issue 1 year ago • 1 comments

Some Google APIs use request id fields (maybe under a different name). These fields should be automatically populated by the client library, and when set, they change the retry loops: the RPCs become idempotent.

More details on aip.dev/4235

coryan avatar Dec 16 '24 13:12 coryan

quick thoughts for whoever picks this up:

AutoPopulated should technically be a method annotation, not a field annotation. (although in practice, I bet there is no difference, because they only show up in *Request messages). The service could have the same request message for multiple RPCs and only auto populate one of the fields.

The method scope also makes more sense for the auto-population code we want to inject for these fields.

dbolduc avatar May 27 '25 18:05 dbolduc