View Source Google.Pubsub.Message (google_grpc_pubsub v0.4.1)

Link to this section Summary

Link to this section Types

@type t() :: %Google.Pubsub.Message{
  ack_id: String.t() | nil,
  attributes: map(),
  data: String.t(),
  delivery_attempt: number(),
  publish_time: DateTime.t() | nil
}

Link to this section Functions

@spec decode!(t()) :: map()
@spec decode(t()) :: {:ok, map()} | {:error, any()}
@spec new!(Google.Pubsub.V1.ReceivedMessage.t() | String.t() | map()) :: t()
@spec new!(String.t() | map(), map()) :: t()