class ObjectFramework::Protobuf::Message

Immutable message descriptor encoding and decoding ordinary value hashes. Declare fields in the construction block.

message = ObjectFramework::Protobuf::Message.new("Greeting") do
  field :text, 1, :string
end
bytes = message.encode(text: "Hello")
message.decode(bytes) # => { text: "Hello" }