google_api_firebase v0.5.0 GoogleApi.Firebase.V1beta1.Model.TypedMessage View Source

Message that groups a protocol type_id (as defined by MessageSet), with an encoded message of that type. Its use is similar to MessageSet, except it represents a single (type, encoded message) instead of a set.

To embed "proto" inside "typed_msg": MyProtoMessage proto; TypedMessage typed_msg; typed_msg.set_type_id(proto2::bridge::GetTypeId(proto)); proto.AppendToCord(typed_msg.mutable_message());

Error handling is omitted from the sample code above. GetTypeId() will return 0 for messages that don't have a TypeId specified.

Attributes

  • message (type: String.t, default: nil) - Message bytes.
  • typeId (type: integer(), default: nil) - Identifier for the type.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Firebase.V1beta1.Model.TypedMessage{
  message: String.t(),
  typeId: integer()
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.