Request
Pesan permintaan yang dikirim sebagai bagian dari eksekusi batch.
Representasi JSON |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
Kolom |
requestId |
string
ID unik permintaan ini dalam batch. Pesan Respons dengan requestId yang cocok adalah respons terhadap permintaan ini. Untuk metode streaming permintaan, requestId yang sama dapat digunakan beberapa kali untuk meneruskan semua pesan permintaan yang merupakan bagian dari satu metode. Untuk metode streaming respons, requestId yang sama mungkin muncul di beberapa pesan Respons.
|
methodName |
string
Metode yang dipanggil. Harus berupa nama metode yang sepenuhnya memenuhi syarat. Contoh: google.rpc.batch.Batch.Execute
|
request |
object
Payload permintaan. Objek yang berisi kolom tipe arbitrer. Kolom tambahan "@type" berisi URI yang mengidentifikasi jenis. Contoh: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
extensions[] |
object
Metadata permintaan khusus aplikasi. Objek yang berisi kolom tipe arbitrer. Kolom tambahan "@type" berisi URI yang mengidentifikasi jenis. Contoh: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-02-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-02-27 UTC."],[[["Batch requests use JSON to bundle multiple API calls into a single request, each identified by a unique `requestId`."],["Each individual request within the batch specifies the `methodName` and includes a `request` object containing the call's specific data and type information."],["The `extensions` field allows for adding application-specific metadata to individual requests within the batch."]]],["A request within a batch execution is represented in JSON. It includes a unique `requestId` to link it to its response. The `methodName` specifies the fully qualified method being called. The `request` field holds the request payload as an object with a type identifier. `extensions` carries application-specific metadata, also as an object with a type identifier. Multiple requests can share the same `requestId` for streaming methods.\n"]]