View Source GoogleApi.Datastore.V1.Model.EntityResult (google_api_datastore v0.22.0)

The result of fetching an entity from Datastore.

Attributes

  • createTime (type: DateTime.t, default: nil) - The time at which the entity was created. This field is set for FULL entity results. If this entity is missing, this field will not be set.
  • cursor (type: String.t, default: nil) - A cursor that points to the position after the result entity. Set only when the EntityResult is part of a QueryResultBatch message.
  • entity (type: GoogleApi.Datastore.V1.Model.Entity.t, default: nil) - The resulting entity.
  • updateTime (type: DateTime.t, default: nil) - The time at which the entity was last changed. This field is set for FULL entity results. If this entity is missing, this field will not be set.
  • version (type: String.t, default: nil) - The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for FULL entity results. For missing entities in LookupResponse, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Datastore.V1.Model.EntityResult{
  createTime: DateTime.t() | nil,
  cursor: String.t() | nil,
  entity: GoogleApi.Datastore.V1.Model.Entity.t() | nil,
  updateTime: DateTime.t() | nil,
  version: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.