Skip to main content

Module request

Module request 

Source
Expand description

Request message construction for REST→gRPC transcoding.

Builds the gRPC request message from three google.api.http sources, in precedence order: path parameters (highest), the request body, then query parameters (lowest, fill only). A JSON body is deserialized straight into the message; path and query values arrive as strings and are converted to each field’s proto type as they are set.

Enums§

Body
The HTTP request body the BodyMapping reads.
BodyMapping
How the HTTP request body maps onto the gRPC request message.

Functions§

build_request_message
Build the request message from the body mapping, path params, and query.