Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
WriteRequest
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ออบเจ็กต์คำขอสำหรับ ByteStream.Write
การแสดง JSON |
{
"resourceName": string,
"writeOffset": string,
"finishWrite": boolean,
"data": string
} |
ช่อง |
resourceName |
string
ชื่อของทรัพยากรที่จะเขียน การตั้งค่านี้ต้องตั้งค่าเป็น WriteRequest แรกของการดำเนินการ Write() แต่ละรายการ หากมีการตั้งค่าในการเรียกครั้งต่อๆ มา ค่านี้จะต้องตรงกับค่าของคำขอแรก
|
writeOffset |
string (int64 format)
ออฟเซ็ตจากจุดเริ่มต้นของทรัพยากรที่ควรเขียนข้อมูล ซึ่งจำเป็นใน WriteRequest ทั้งหมด ใน WriteRequest แรกของการทำงาน Write() ค่านี้จะแสดงออฟเซ็ตเริ่มต้นสำหรับการเรียก Write() ค่าต้องเท่ากับ committedSize ที่การเรียกไปยัง QueryWriteStatus() จะส่งกลับมา ในการเรียกครั้งต่อๆ ไป ค่านี้จะต้องกำหนดและต้องเท่ากับผลรวมของ writeOffset แรกและขนาดของแพ็กเกจ data ทั้งหมดที่ส่งก่อนหน้านี้ในสตรีมนี้ ค่าที่ไม่ถูกต้องจะทำให้เกิดข้อผิดพลาด
|
finishWrite |
boolean
หากเป็น true แสดงว่าการเขียนเสร็จสมบูรณ์แล้ว การส่ง WriteRequest ครั้งต่อๆ ไปที่มี finishWrite เป็น true จะทำให้เกิดข้อผิดพลาด
|
data |
string (bytes format)
ส่วนของข้อมูลสำหรับทรัพยากร ลูกค้าอาจเว้น data ว่างไว้สำหรับ WriteRequest ที่ระบุ ซึ่งจะช่วยให้ไคลเอ็นต์แจ้งให้บริการทราบว่าคำขอยังคงทำงานอยู่ในขณะที่ดำเนินการเพื่อสร้างข้อมูลเพิ่มเติม สตริงที่เข้ารหัสฐาน 64
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-25 UTC"],[[["The ByteStream.Write request object allows writing data to a cloud resource, potentially in chunks."],["It requires specifying the resource name, data to write, and the write offset within the resource."],["For the initial write request, the offset should typically be 0, and for subsequent requests, it should be the cumulative size of previous writes."],["Setting `finishWrite` to true signals completion of the write operation, and further requests will result in an error."]]],["The ByteStream.Write request requires `resourceName` (set initially, and consistent thereafter), `writeOffset` (indicating data position, increasing cumulatively), `finishWrite` (a boolean flag signaling completion), and `data` (a base64-encoded string of resource data). The `writeOffset` must match the `committedSize`. Setting `finishWrite` to true prevents further writes. The `data` field can be empty to keep the request active. All the parameters are required unless otherwise specified.\n"]]