Se trata de un mensaje que representa un cuerpo HTTP arbitrario. Solo debe usarse en formatos de carga útil que no se pueden representar como JSON; por ejemplo, archivos binarios sin procesar o páginas HTML.
Este mensaje se puede usar tanto en los métodos de la API en streaming como en los que no lo son, y se puede incluir en la solicitud y en la respuesta.
También puede incluirse en las solicitudes como campo de nivel superior, lo que puede resultar útil si se quieren extraer parámetros de la URL o la plantilla HTTP para rellenar campos de la solicitud y, además, se quiere acceder al cuerpo HTTP sin procesar.
Cuerpo de la solicitud o respuesta HTTP como datos binarios sin formato.
Cadena codificada en base64.
extensions[]
object
Metadatos de respuestas específicos de la aplicación. Debe definirse en la primera respuesta de las APIs de streaming.
Un objeto que contiene campos de un tipo arbitrario. Un campo adicional "@type" contiene un URI que identifica el tipo. Ejemplo: { "id": 1234, "@type": "types.example.com/standard/id" }
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-21 (UTC)."],[[["\u003cp\u003eThis message format is designed for HTTP body payloads that are not representable as JSON, including raw binary data and HTML.\u003c/p\u003e\n"],["\u003cp\u003eIt supports both streaming and non-streaming API methods, applicable to both requests and responses.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econtentType\u003c/code\u003e field specifies the MIME type of the body, while the \u003ccode\u003edata\u003c/code\u003e field holds the base64-encoded binary content.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eextensions\u003c/code\u003e is used for application-specific response metadata, particularly required in the first response for streaming APIs.\u003c/p\u003e\n"]]],[],null,["# HttpBody\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nMessage that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page.\n\nThis message can be used both in streaming and non-streaming API methods in the request as well as the response.\n\nIt can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body."]]