Messaggio che rappresenta un corpo HTTP arbitrario. Deve essere utilizzato solo per i formati di payload che non possono essere rappresentati come JSON, ad esempio un programma binario raw o una pagina HTML.
Questo messaggio può essere utilizzato nei metodi API in streaming e non in streaming, sia nella richiesta sia nella risposta.
Può essere utilizzato come campo di richiesta di primo livello, il che è utile se si vogliono estrarre dei parametri dall'URL o dal modello HTTP per i campi della richiesta e si vuole anche l'accesso al corpo HTTP raw.
Il corpo della richiesta/risposta HTTP come binario non elaborato.
Una stringa con codifica Base64.
extensions[]
object
Metadati di risposta specifici dell'applicazione. Devono essere impostati nella prima risposta per le API in streaming.
Un oggetto contenente campi di un tipo arbitrario. Un campo aggiuntivo "@type" contiene un URI che identifica il tipo. Esempio: { "id": 1234, "@type": "types.example.com/standard/id" }.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-30 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."]]