module Protobuf::Message::Serialization::ClassMethods

def decode(bytes)

def decode(bytes)
  new.decode(bytes)
end

def decode_from(stream)

def decode_from(stream)
  new.decode_from(stream)
end

def encode(fields = {})

Create a new object with the given values and return the encoded bytes.
def encode(fields = {})
  new(fields).encode
end