struct ProtoBuf::Any

Defined in:

protodec.cr

Constant Summary

TAG_MAP = {"varint" => 0, "float32" => 5, "int32" => 5, "float64" => 1, "int64" => 1, "string" => 2, "embedded" => 2, "base64" => 2, "bytes" => 2}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(raw : Type) #

[View source]

Class Method Detail

def self.from_io(io : IO, format = IO::ByteFormat::NetworkEndian, ignore_exceptions = false) #

[View source]
def self.from_json(json : JSON::Any, io : IO, format = IO::ByteFormat::NetworkEndian) #

[View source]
def self.parse(io : IO) #

[View source]

Instance Method Detail

def []=(key : String, value : Type) #

[View source]
def raw : Type #

[View source]
def to_json(json) #

[View source]
def to_json #

[View source]