API7 Docs
TransformationgRPC Transcode

gRPC Transcode Configuration

Parameters

See plugin common configurations for configuration options available to all plugins.

  • proto_idstring or integer · required

    ID of the APISIX proto resource, which contains the protocol buffer definitions.

  • servicestring · required

    Name of the gRPC service.

  • methodstring · required

    Method name of the gRPC service.

  • deadlinenumber · optional · default: 0

    Deadline for the gRPC service in ms. This is the time APISIX will wait for a gRPC call to complete.

  • pb_optionarray[string] · optional · default: ["enum_as_name", "int64_as_number", "auto_default_values", "disable_hooks"]

    Encoder and decoder options. The option can be configured as an array of one or more of the below values:

    For enum as result: enum_as_name, enum_as_value

    For int64 as result: int64_as_number, int64_as_string, int64_as_hexstring

    For default values: auto_default_values, no_default_values, use_default_values, use_default_metatable

    For hooks: enable_hooks, disable_hooks

  • show_status_in_bodyboolean · optional · default: false

    If true, display the parsed grpc-status-details-bin in the response body.

  • status_detail_typestring · optional

    The message type corresponding to the details part of grpc-status-details-bin. If not specified, the error message will not be decoded.

  • max_resp_body_sizeinteger · optional · default: 67108864

    Valid values: greater than or equal to 1

    Maximum response body size in bytes buffered for transcoding. A larger response is truncated to this size before transcoding. The chunk that crosses the threshold is buffered before the limit is enforced, so transient memory use can exceed the configured size. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.