GoogleApi.PubSub.V1.Model.AvroConfig (google_api_pub_sub v0.42.0)

View Source

Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.

Attributes

  • useTopicSchema (type: boolean(), default: nil) - Optional. When true, the output Cloud Storage file will be serialized using the topic schema, if it exists.
  • writeMetadata (type: boolean(), default: nil) - Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output. The subscription name, message_id, and publish_time fields are put in their own fields while all other message properties other than data (for example, an ordering_key, if present) are added as entries in the attributes map.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.PubSub.V1.Model.AvroConfig{
  useTopicSchema: boolean() | nil,
  writeMetadata: boolean() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.