You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified `platformType`, the returned response will not include any instance data.</p>
Copy file name to clipboardExpand all lines: docs/dyn/games_v1.snapshotsExtended.html
+17-18Lines changed: 17 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ <h3>Method Details</h3>
96
96
The object takes the form of:
97
97
98
98
{ # Request for ResolveSnapshotHead RPC.
99
+
"maxConflictsPerSnapshot": 42, # The maximum number of SnapshotRevision resources for `conflictingRevisions` to return per SnapshotExtended resource in the response. For any response, the actual number of resources returned may be less than specified by `maxConflictsPerSnapshot`. The value provided should be greater or equal to 0. If no value is provided, the server will use a sensible default.
99
100
"resolutionPolicy": "A String", # Required. The automatic resolution policy. All conflicts are resolved in chronological order, starting from the/ least recent. If the comparison metric is equal for the tentative head and the conflict, the head wins.
100
101
}
101
102
@@ -108,61 +109,59 @@ <h3>Method Details</h3>
108
109
An object of the form:
109
110
110
111
{ # Response for ResolveSnapshotHead RPC.
111
-
"snapshot": { # A snapshot represents a saved game state referred to using the developer-provided snapshot_id (think of it as a file's path). The set of attributes and binary data for a specific state is called a revision. Each revision is itself immutable, and referred to by a snapshot_revision_id. At any time, a snapshot has a "head" revision, and updates are made against that revision. If a snapshot update is received that isn't against the current head revision, then instead of changing the head revision it will result in a conflicting revision that must be specifically resolved. # The state of the snapshot.
112
+
"snapshot": { # A snapshot represents a saved game state referred to using the developer-provided snapshot_name. The set of attributes and binary data for a specific state is called a revision. Each revision is itself immutable, and referred to by a snapshot revision id. At any time, a snapshot has a "head" revision, and updates are made against that revision. If a snapshot update is received that isn't against the current head revision, then instead of changing the head revision it will result in a conflicting revision that must be specifically resolved. # The state of the snapshot.
112
113
"conflictingRevisions": [ # A list of conflicting revisions. Only set if explicitly requested (e.g. using a field mask or a request flag), or if the RPC guarantees that this field is set. The conflicting revisions are sorted chronologically by their server creation time (oldest first). If there are too many conflicting revisions to return all of them in a single request this will only contain the first batch. In such case, the presented conflicting revisions must be resolved first in order to fetch the next batch.
113
114
{ # A Snapshot revision resource. Snapshot revisions are immutable.
114
115
"blob": { # Identifies a snapshot data resource. The data is provided by the game. # Reference to the game provided blob for this revision.
115
-
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded blob, consistent per player per application. Within the context of a single player/application, it's guaranteed that two identical blobs coming from two different uploads will have the same content hash. It's extremely likely, though not guaranteed, that if two content hashes are equal, the blobs are identical.
116
+
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded blob bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn't changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
116
117
"downloadUrl": "A String", # Output only. A URL that the client can use to download the blob. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
117
118
"resourceId": "A String", # The ID of the blob resource. It's guaranteed that if two IDs are equal then the contents are equal as well. It's not guaranteed that two identical blobs coming from separate uploads have the same resource ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it's not possible to use SnapshotDataResource's resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
118
-
"size": "A String", # Size of the saved game blob in bytes.
119
+
"size": "A String", # Output only. Size of the saved game blob in bytes.
119
120
},
120
121
"coverImage": { # Identifies a snapshot cover image resource. The image is provided by the game. # Reference to the cover image for this revision.
121
-
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. Within the context of a single player/application, it's guaranteed that two identical blobs coming from two different uploads will have the same content hash. It's extremely likely, though not guaranteed, that if two content hashes are equal, the images are identical.
122
+
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn't changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
122
123
"downloadUrl": "A String", # Output only. A URL the client can use to download the image. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
123
-
"height": 42, # Output only. The height of the image in pixels.
124
+
"height": 42, # The height of the image in pixels.
124
125
"mimeType": "A String", # Output only. The MIME type of the image.
125
126
"resourceId": "A String", # The ID of the image resource. It's guaranteed that if two IDs are equal then the contents are equal as well. It's not guaranteed that two identical blobs coming from separate uploads have the same ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it's not possible to use SnapshotDataResource's resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
126
-
"width": 42, # Output only. The width of the image in pixels.
127
+
"width": 42, # The width of the image in pixels.
127
128
},
128
129
"id": "A String", # Output only. A server generated identifier of the snapshot revision.
129
130
"metadata": { # Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision. # Metadata for this snapshot revision.
130
131
"description": "A String", # The description of this snapshot.
131
132
"deviceName": "A String", # The device that created the current revision.
132
-
"duration": "A String", # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
133
-
"lastModifyTime": "A String", # The timestamp of the last modification to this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
133
+
"gameplayDuration": "A String", # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
134
+
"lastModifyTime": "A String", # The timestamp of the last modification to this snapshot as provided by the client. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
134
135
"progressValue": "A String", # The progress value (64-bit integer set by developer) associated with this snapshot.
135
-
"title": "A String", # The title of this snapshot.
136
136
},
137
137
},
138
138
],
139
139
"hasConflictingRevisions": True or False, # An indicator whether the snapshot has any conflicting revisions or not. Always set.
140
140
"headRevision": { # A Snapshot revision resource. Snapshot revisions are immutable. # The current head revision (the canonical revision as understood by the server).
141
141
"blob": { # Identifies a snapshot data resource. The data is provided by the game. # Reference to the game provided blob for this revision.
142
-
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded blob, consistent per player per application. Within the context of a single player/application, it's guaranteed that two identical blobs coming from two different uploads will have the same content hash. It's extremely likely, though not guaranteed, that if two content hashes are equal, the blobs are identical.
142
+
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded blob bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn't changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
143
143
"downloadUrl": "A String", # Output only. A URL that the client can use to download the blob. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
144
144
"resourceId": "A String", # The ID of the blob resource. It's guaranteed that if two IDs are equal then the contents are equal as well. It's not guaranteed that two identical blobs coming from separate uploads have the same resource ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it's not possible to use SnapshotDataResource's resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
145
-
"size": "A String", # Size of the saved game blob in bytes.
145
+
"size": "A String", # Output only. Size of the saved game blob in bytes.
146
146
},
147
147
"coverImage": { # Identifies a snapshot cover image resource. The image is provided by the game. # Reference to the cover image for this revision.
148
-
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. Within the context of a single player/application, it's guaranteed that two identical blobs coming from two different uploads will have the same content hash. It's extremely likely, though not guaranteed, that if two content hashes are equal, the images are identical.
148
+
"contentHash": "A String", # Output only. Hash-like weak identifier of the uploaded image bytes, consistent per player per application. The content hash for a given resource will not change if the binary data hasn't changed. Except in very rare circumstances, the content_hash for matching binary data will be the same within a given player and application.
149
149
"downloadUrl": "A String", # Output only. A URL the client can use to download the image. May vary across requests, and only guaranteed to be valid for a short time after it is returned.
150
-
"height": 42, # Output only. The height of the image in pixels.
150
+
"height": 42, # The height of the image in pixels.
151
151
"mimeType": "A String", # Output only. The MIME type of the image.
152
152
"resourceId": "A String", # The ID of the image resource. It's guaranteed that if two IDs are equal then the contents are equal as well. It's not guaranteed that two identical blobs coming from separate uploads have the same ID. The resource ID can only be used within the application, user and resource type it was originally returned for. For example, it's not possible to use SnapshotDataResource's resource ID as the resource_id of a SnapshotCoverImageResource, even if the blob is a valid image file.
153
-
"width": 42, # Output only. The width of the image in pixels.
153
+
"width": 42, # The width of the image in pixels.
154
154
},
155
155
"id": "A String", # Output only. A server generated identifier of the snapshot revision.
156
156
"metadata": { # Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision. # Metadata for this snapshot revision.
157
157
"description": "A String", # The description of this snapshot.
158
158
"deviceName": "A String", # The device that created the current revision.
159
-
"duration": "A String", # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
160
-
"lastModifyTime": "A String", # The timestamp of the last modification to this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
159
+
"gameplayDuration": "A String", # The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
160
+
"lastModifyTime": "A String", # The timestamp of the last modification to this snapshot as provided by the client. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond.
161
161
"progressValue": "A String", # The progress value (64-bit integer set by developer) associated with this snapshot.
162
-
"title": "A String", # The title of this snapshot.
163
162
},
164
163
},
165
-
"name": "A String", # An identifier of the snapshot,developer-specified.
164
+
"snapshotName": "A String", # An identifier of the snapshot,developer-specified. It must match the pattern [0-9a-zA-Z-._~]{1,100}.
0 commit comments