GoogleApi.Games.V1.Model.SnapshotExtended (google_api_games v0.20.0) View Source

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.

Attributes

  • conflictingRevisions (type: list(GoogleApi.Games.V1.Model.SnapshotRevision.t), default: nil) - 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.
  • hasConflictingRevisions (type: boolean(), default: nil) - An indicator whether the snapshot has any conflicting revisions or not. Always set.
  • headRevision (type: GoogleApi.Games.V1.Model.SnapshotRevision.t, default: nil) - The current head revision (the canonical revision as understood by the server).
  • snapshotName (type: String.t, default: nil) - An identifier of the snapshot, developer-specified. It must match the pattern [0-9a-zA-Z-._~]{1,100}.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Games.V1.Model.SnapshotExtended{
  conflictingRevisions: [GoogleApi.Games.V1.Model.SnapshotRevision.t()],
  hasConflictingRevisions: boolean(),
  headRevision: GoogleApi.Games.V1.Model.SnapshotRevision.t(),
  snapshotName: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.