Automatically populate request_id
-like fields to make requests idempotent
#13595
Labels
cpp: generator
Issues related to the C++ micro-generator
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Some services have fields that (when populated with unique values) make the requests idempotent. An example is service control with fields like this:
https://github.com/googleapis/googleapis/blob/7d73737e0e826ac683a4b5b19352feabf51bbc57/google/storage/control/v2/storage_control.proto#L202-L208
The field does not need to be called
request_id
. The name of the field comes from the service config YAML file, for example:https://github.com/googleapis/googleapis/blob/65b63cc4440e642d95a0c9562233f9ef2511c787/google/storage/control/v2/storage_v2.yaml#L44-L48
The full set of conditions is then:
google.api.field_info
annotationUUID4
See Also
go/client-populate-request-id-prd
go/client-populate-request-id-design
The text was updated successfully, but these errors were encountered: