Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
#include <snapshot_metadata_change_builder.h>
Tạo một hoặc nhiều đối tượng SnapshotMetadataChange.
Tóm tắt
Hàm công khai
|
Create() const
|
|
SetCoverImageFromPngData(std::vector< uint8_t > png_data)
|
Các byte thô của ảnh bìa png được mã hoá của thay đổi siêu dữ liệu của ảnh chụp nhanh.
|
SetDescription(const std::string & description)
|
Đặt nội dung mô tả ngắn gọn về siêu dữ liệu của bản tổng quan nhanh.
|
SetPlayedTime(gpg::Duration played_time)
|
Đặt thời gian phát của thông tin tổng quan nhanh Metadata_change.
|
SetProgressValue(int64_t progress_value)
|
Đặt giá trị tiến trình của ảnh chụp nhanh Metadata_change.
|
operator=(const Builder & copy_from)
|
Chỉ định Builder này bằng cách sao chép từ một mã khác.
|
operator=(Builder && move_from)
|
Chỉ định Builder này bằng cách di chuyển một mã khác vào đó.
|
Hàm công khai
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# gpg::SnapshotMetadataChange::Builder Class Reference\n\ngpg::SnapshotMetadataChange::Builder\n====================================\n\n`#include \u003csnapshot_metadata_change_builder.h\u003e`\n\nBuilds one or more [SnapshotMetadataChange](/games/services/cpp/api/class/gpg/snapshot-metadata-change#classgpg_1_1_snapshot_metadata_change) objects.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Builder](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1a57dc7a0c16e376b010550fe991211664)`()` ||\n| [Builder](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1a8599d88e0c561cb892fec3a3835346fe)`(std::shared_ptr\u003c SnapshotMetadataChangeImpl \u003e impl)` Constructs a [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) from a `shared_ptr` to `BuilderImpl`. ||\n| [Builder](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1ae7ada32ed0deadc3e19b31844a965349)`(const `[Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` & copy_from)` Creates a copy of an existing [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder). ||\n| [Builder](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1a92c963ed7b6e432c58d9e99ea163f296)`(`[Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` && move_from)` Moves an existing [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder). ||\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Create](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1aba7931cc5bb8e6ec1698be09430cb2b9)`() const ` | [SnapshotMetadataChange](/games/services/cpp/api/class/gpg/snapshot-metadata-change#classgpg_1_1_snapshot_metadata_change) Creates a [SnapshotMetadataChange](/games/services/cpp/api/class/gpg/snapshot-metadata-change#classgpg_1_1_snapshot_metadata_change). |\n| [SetCoverImageFromPngData](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1ab4598d67a7c663affebde7854443c1a1)`(std::vector\u003c uint8_t \u003e png_data)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` The raw bytes of the encoded png cover image of the snapshot metadata change. |\n| [SetDescription](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1aad0db8d9ebc646f9a9ecb6902184057d)`(const std::string & description)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` Sets the concise description of the snapshot metadata_change. |\n| [SetPlayedTime](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1add58a49cabed5bf37c66ffa29cfc28a8)`(`[gpg::Duration](/games/services/cpp/api/namespace/gpg#namespacegpg_1a60bf9c91c4d673d2eb81c95b15d9e097)` played_time)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` Sets the played time of the snapshot metadata_change. |\n| [SetProgressValue](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1ae77fcc0350cf301c6aa117630bdcfe54)`(int64_t progress_value)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` Sets the progress value of the snapshot metadata_change. |\n| [operator=](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1a948b2f101ba87ec904906fa5cba659f9)`(const `[Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` & copy_from)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` Assigns this [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) by copying from another one. |\n| [operator=](#classgpg_1_1_snapshot_metadata_change_1_1_builder_1a9bad9756096fd85cc7b0305bc3e45a3f)`(`[Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` && move_from)` | [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder)` &` Assigns this [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) by moving another one into it. |\n\nPublic functions\n----------------\n\n### Builder\n\n```c++\n Builder()\n``` \n\n### Builder\n\n```c++\n Builder(\n std::shared_ptr\u003c SnapshotMetadataChangeImpl \u003e impl\n)\n``` \nConstructs a [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) from a `shared_ptr` to `BuilderImpl`.\n\nIntended for internal use by the API. \n\n### Builder\n\n```c++\n Builder(\n const Builder & copy_from\n)\n``` \nCreates a copy of an existing [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder). \n\n### Builder\n\n```c++\n Builder(\n Builder && move_from\n)\n``` \nMoves an existing [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder). \n\n### Create\n\n```c++\nSnapshotMetadataChange Create() const \n``` \nCreates a [SnapshotMetadataChange](/games/services/cpp/api/class/gpg/snapshot-metadata-change#classgpg_1_1_snapshot_metadata_change). \n\n### SetCoverImageFromPngData\n\n```c++\nBuilder & SetCoverImageFromPngData(\n std::vector\u003c uint8_t \u003e png_data\n)\n``` \nThe raw bytes of the encoded png cover image of the snapshot metadata change.\n\nCover image must be less than 800 kb. Image must be set every commit or it will be cleared. \n\n### SetDescription\n\n```c++\nBuilder & SetDescription(\n const std::string & description\n)\n``` \nSets the concise description of the snapshot metadata_change. \n\n### SetPlayedTime\n\n```c++\nBuilder & SetPlayedTime(\n gpg::Duration played_time\n)\n``` \nSets the played time of the snapshot metadata_change. \n\n### SetProgressValue\n\n```c++\nBuilder & SetProgressValue(\n int64_t progress_value\n)\n``` \nSets the progress value of the snapshot metadata_change. \n\n### operator=\n\n```c++\nBuilder & operator=(\n const Builder & copy_from\n)\n``` \nAssigns this [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) by copying from another one. \n\n### operator=\n\n```c++\nBuilder & operator=(\n Builder && move_from\n)\n``` \nAssigns this [Builder](/games/services/cpp/api/class/gpg/snapshot-metadata-change/builder#classgpg_1_1_snapshot_metadata_change_1_1_builder) by moving another one into it."]]