จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
gpg::SnapshotManager::OpenResponse
#include <snapshot_manager.h>
เก็บข้อมูลสำหรับสแนปชอตที่ขอหนึ่งๆ พร้อมกับสถานะการตอบกลับ
สรุป
หากสแนปชอตอยู่ในสถานะขัดแย้งกัน สแนปชอตหลัก data
จะใช้ไม่ได้และจะแสดงข้อมูลความขัดแย้งในช่อง conflict_id
, conflict_original
และ conflict_unmerged
ต้องแก้ไขข้อขัดแย้งก่อน จึงจะสามารถแก้ไขสแนปชอตได้ในอนาคต
แอตทริบิวต์สาธารณะ
conflict_id
std::string gpg::SnapshotManager::OpenResponse::conflict_id
ตัวระบุของข้อขัดแย้งนี้
หากสตริงนี้ว่างเปล่า แสดงว่าไม่มีข้อขัดแย้ง
conflict_original
SnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_original
เว้นว่างไว้หาก conflict_id
ว่างเปล่า
นี่คือภาพรวมเวอร์ชันปัจจุบันที่ตกลงกันไว้ หมายเหตุ: ก่อนหน้านี้เรียกว่า conflict_base
conflict_unmerged
SnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_unmerged
เว้นว่างไว้หาก conflict_id
ว่างเปล่า
นี่คือการเปลี่ยนแปลงที่เสนอซึ่งนำไปใช้ไม่สำเร็จเนื่องจากมีการทำงานที่ขัดแย้งกันจากอุปกรณ์อื่น หมายเหตุ: ก่อนหน้านี้เรียกว่า conflict_remote
ข้อมูล
SnapshotMetadata gpg::SnapshotManager::OpenResponse::data
Snapshot
สแนปชอตนี้จะใช้ได้ก็ต่อเมื่อไม่มีข้อผิดพลาดหรือข้อขัดแย้ง ในกรณีที่มีความขัดแย้งที่ไม่มีการจัดการ ให้ใช้ conflict_id
, conflict_original
และ conflict_unmerged
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# gpg::SnapshotManager::OpenResponse Struct Reference\n\ngpg::SnapshotManager::OpenResponse\n==================================\n\n`#include \u003csnapshot_manager.h\u003e`\n\nHolds the data for a particular requested snapshot along with a response status.\n\nSummary\n-------\n\nIf the snapshot is in a conflicted state, the main snapshot `data` will not be valid and conflict information will be provided in the `conflict_id`, `conflict_original`, and `conflict_unmerged` fields. The conflict must be resolved before the snapshot can receive future modifications.\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [conflict_id](#structgpg_1_1_snapshot_manager_1_1_open_response_1a3b2fcc90ae1e9007c58755698d1038e8) | `std::string` The identifier of this conflict. |\n| [conflict_original](#structgpg_1_1_snapshot_manager_1_1_open_response_1ae72115a5932506aabab9662cffd484c7) | [SnapshotMetadata](/games/services/cpp/api/class/gpg/snapshot-metadata#classgpg_1_1_snapshot_metadata) Empty if `conflict_id` is empty. |\n| [conflict_unmerged](#structgpg_1_1_snapshot_manager_1_1_open_response_1a77b6befe22ae8ce230287390a772380c) | [SnapshotMetadata](/games/services/cpp/api/class/gpg/snapshot-metadata#classgpg_1_1_snapshot_metadata) Empty if `conflict_id` is empty. |\n| [data](#structgpg_1_1_snapshot_manager_1_1_open_response_1a2c2c2ebf42e988f7fb397f239786df1f) | [SnapshotMetadata](/games/services/cpp/api/class/gpg/snapshot-metadata#classgpg_1_1_snapshot_metadata) A `Snapshot`. |\n| [status](#structgpg_1_1_snapshot_manager_1_1_open_response_1ad2e7a1d808c6033d32f0bf9b62f9e678) | [SnapshotOpenStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a33e450872d5439ff19b818703eabf588) Can be one of the values enumerated in [SnapshotOpenStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a33e450872d5439ff19b818703eabf588). |\n\nPublic attributes\n-----------------\n\n### conflict_id\n\n```c++\nstd::string gpg::SnapshotManager::OpenResponse::conflict_id\n``` \nThe identifier of this conflict.\n\nIf this string is empty, there is no conflict. \n\n### conflict_original\n\n```c++\nSnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_original\n``` \nEmpty if `conflict_id` is empty.\n\nThis is the agreed upon current version of the snapshot. Note: previously called `conflict_base`. \n\n### conflict_unmerged\n\n```c++\nSnapshotMetadata gpg::SnapshotManager::OpenResponse::conflict_unmerged\n``` \nEmpty if `conflict_id` is empty.\n\nThis is the proposed change that failed to be applied due to conflicting operations from another device. Note: previously called `conflict_remote`. \n\n### data\n\n```c++\nSnapshotMetadata gpg::SnapshotManager::OpenResponse::data\n``` \nA `Snapshot`.\n\nThis snapshot will only be valid if there are no errors or conflicts. In the event of an unhandled conflict use `conflict_id`, `conflict_original`, and `conflict_unmerged`. \n\n### status\n\n```c++\nSnapshotOpenStatus gpg::SnapshotManager::OpenResponse::status\n``` \nCan be one of the values enumerated in [SnapshotOpenStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a33e450872d5439ff19b818703eabf588).\n\nIf the response is unsuccessful, [OpenResponse](/games/services/cpp/api/struct/gpg/snapshot-manager/open-response#structgpg_1_1_snapshot_manager_1_1_open_response)'s data vector is empty."]]