struct Facebook::Proto::LiveEncoder

Included Modules

Defined in:

cli/proto/facebook/LiveEncoder.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :brand, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :creation_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :device_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :last_heartbeat_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :model, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :version, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(id : String | Nil = nil, brand : String | Nil = nil, creation_time : Datetime | Nil = nil, device_id : String | Nil = nil, last_heartbeat_time : Datetime | Nil = nil, model : String | Nil = nil, name : String | Nil = nil, status : String | Nil = nil, version : String | Nil = nil) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def brand : String | Nil #

def brand=(brand : String | Nil) #

def creation_time : Datetime | Nil #

def creation_time=(creation_time : Datetime | Nil) #

def device_id : String | Nil #

def device_id=(device_id : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def last_heartbeat_time : Datetime | Nil #

def last_heartbeat_time=(last_heartbeat_time : Datetime | Nil) #

def model : String | Nil #

def model=(model : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def status : String | Nil #

def status=(status : String | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def version : String | Nil #

def version=(version : String | Nil) #