Pesan yang merepresentasikan bagian isi HTTP arbitrer. Pesan ini hanya boleh digunakan untuk format payload yang tidak dapat direpresentasikan sebagai JSON, seperti biner mentah atau halaman HTML.
Pesan ini dapat digunakan baik dalam metode API streaming maupun non-streaming pada permintaan dan juga pada respons.
Kolom ini dapat digunakan sebagai kolom permintaan tingkat atas, yang praktis jika seseorang ingin mengekstrak parameter dari template HTTP atau URL ke dalam kolom permintaan dan juga menginginkan akses ke isi HTTP mentah.
Metadata respons khusus aplikasi. Harus ditetapkan dalam respons pertama untuk API streaming.
Objek yang berisi kolom tipe arbitrer. Kolom tambahan "@type" berisi URI yang mengidentifikasi jenis. Contoh: { "id": 1234, "@type": "types.example.com/standard/id" }.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]