Protox.MessageSchema (Protox v2.0.4)

View Source

Represents the schema of a Protocol Buffers message once it has been processed by Protox.

This struct contains all the necessary information to describe a message in a Protocol Buffers schema, including its name, syntax version, fields, and optional file-level options.

Fields

  • :name - The atom representing the name of the message
  • :syntax - The Protocol Buffers syntax version (e.g., :proto2 or :proto3)
  • :fields - A map of field names to their definitions (Protox.Field.t())
  • :file_options - Optional file-level options, represented as a map if any.

Summary

Types

t()

@type t() :: %Protox.MessageSchema{
  fields: %{required(atom()) => Protox.Field.t()},
  file_options: struct() | %{required(atom()) => any()} | nil,
  name: atom(),
  syntax: atom()
}