REST Resource: snapshots
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Recurso: snapshot
Representação JSON |
{
"id": string,
"driveId": string,
"kind": string,
"type": enum (SnapshotType ),
"title": string,
"description": string,
"lastModifiedMillis": string,
"durationMillis": string,
"coverImage": {
object (SnapshotImage )
},
"uniqueName": string,
"progressValue": string
} |
Campos |
id |
string
O ID do snapshot.
|
driveId |
string
O ID do arquivo associado a esse snapshot na API Drive. Só aparece quando o snapshot é uma visualização em um arquivo do Drive e o arquivo pertence ao autor da chamada.
|
kind |
string
Identifica exclusivamente o tipo desse recurso. O valor é sempre a string fixa games#snapshot .
|
type |
enum (SnapshotType )
O tipo do snapshot.
|
title |
string
O título do snapshot.
|
description |
string
A descrição desse snapshot.
|
lastModifiedMillis |
string (int64 format)
O carimbo de data/hora (em milissegundos desde a Era Unix) da última modificação desse snapshot.
|
durationMillis |
string (int64 format)
A duração associada a esse snapshot, em milissegundos.
|
coverImage |
object (SnapshotImage )
A imagem de capa deste snapshot. Pode estar ausente se não houver uma imagem.
|
uniqueName |
string
O nome exclusivo fornecido quando o snapshot foi criado.
|
progressValue |
string (int64 format)
O valor de progresso (número inteiro de 64 bits definido pelo desenvolvedor) associado a esse snapshot.
|
SnapshotType
Defina os tipos de snapshots compatíveis.
Enumerações |
SAVE_GAME |
Um snapshot que representa um jogo salvo. |
SnapshotImage
Uma imagem de um snapshot.
Representação JSON |
{
"width": integer,
"height": integer,
"mime_type": string,
"url": string,
"kind": string
} |
Campos |
width |
integer
A largura da imagem.
|
height |
integer
A altura da imagem.
|
mime_type |
string
O tipo MIME da imagem.
|
url |
string
O URL da imagem. Esse URL pode ser invalidado a qualquer momento e não deve ser armazenado em cache.
|
kind |
string
Identifica exclusivamente o tipo desse recurso. O valor é sempre a string fixa games#snapshotImage .
|
Métodos |
|
Recupera os metadados de um determinado ID de snapshot. |
|
Recupera uma lista de snapshots criados pelo seu app para o jogador correspondente ao ID do jogador. |
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 UTC."],[],[],null,["# REST Resource: snapshots\n\n- [Resource: Snapshot](#Snapshot)\n - [JSON representation](#Snapshot.SCHEMA_REPRESENTATION)\n- [SnapshotType](#SnapshotType)\n- [SnapshotImage](#SnapshotImage)\n - [JSON representation](#SnapshotImage.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Snapshot\n------------------\n\nAn snapshot object.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"driveId\": string, \"kind\": string, \"type\": enum (/games/services/web/api/rest/v1/snapshots#SnapshotType), \"title\": string, \"description\": string, \"lastModifiedMillis\": string, \"durationMillis\": string, \"coverImage\": { object (/games/services/web/api/rest/v1/snapshots#SnapshotImage) }, \"uniqueName\": string, \"progressValue\": string } ``` |\n\n| Fields ||\n|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The ID of the snapshot. |\n| `driveId` | `string` The ID of the file underlying this snapshot in the Drive API. Only present if the snapshot is a view on a Drive file and the file is owned by the caller. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#snapshot`. |\n| `type` | `enum (`[SnapshotType](/games/services/web/api/rest/v1/snapshots#SnapshotType)`)` The type of this snapshot. |\n| `title` | `string` The title of this snapshot. |\n| `description` | `string` The description of this snapshot. |\n| `lastModifiedMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The timestamp (in millis since Unix epoch) of the last modification to this snapshot. |\n| `durationMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The duration associated with this snapshot, in millis. |\n| `coverImage` | `object (`[SnapshotImage](/games/services/web/api/rest/v1/snapshots#SnapshotImage)`)` The cover image of this snapshot. May be absent if there is no image. |\n| `uniqueName` | `string` The unique name provided when the snapshot was created. |\n| `progressValue` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The progress value (64-bit integer set by developer) associated with this snapshot. |\n\nSnapshotType\n------------\n\nDefine supported snapshot types.\n\n| Enums ||\n|-------------|--------------------------------------|\n| `SAVE_GAME` | A snapshot representing a save game. |\n\nSnapshotImage\n-------------\n\nAn image of a snapshot.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------|\n| ``` { \"width\": integer, \"height\": integer, \"mime_type\": string, \"url\": string, \"kind\": string } ``` |\n\n| Fields ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| `width` | `integer` The width of the image. |\n| `height` | `integer` The height of the image. |\n| `mime_type` | `string` The MIME type of the image. |\n| `url` | `string` The URL of the image. This URL may be invalidated at any time and should not be cached. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#snapshotImage`. |\n\n| Methods ------- ||\n|------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| ### [get](/games/services/web/api/rest/v1/snapshots/get) | Retrieves the metadata for a given snapshot ID. |\n| ### [list](/games/services/web/api/rest/v1/snapshots/list) | Retrieves a list of snapshots created by your application for the player corresponding to the player ID. |"]]