struct Facebook::Proto::Photo

Included Modules

Defined in:

cli/proto/facebook/Photo.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: :alt_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :alt_text_custom, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :backdated_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :backdated_time_granularity, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :can_backdate, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :can_delete, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :can_tag, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :height, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :icon, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :page_story_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :picture, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :position, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :updated_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :width, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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, alt_text : String | Nil = nil, alt_text_custom : String | Nil = nil, backdated_time : Datetime | Nil = nil, backdated_time_granularity : String | Nil = nil, can_backdate : Bool | Nil = nil, can_delete : Bool | Nil = nil, can_tag : Bool | Nil = nil, created_time : Datetime | Nil = nil, height : Int64 | Nil = nil, icon : String | Nil = nil, link : String | Nil = nil, name : String | Nil = nil, page_story_id : String | Nil = nil, picture : String | Nil = nil, position : Int64 | Nil = nil, source : String | Nil = nil, updated_time : Datetime | Nil = nil, width : Int64 | 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 alt_text : String | Nil #

def alt_text=(alt_text : String | Nil) #

def alt_text_custom : String | Nil #

def alt_text_custom=(alt_text_custom : String | Nil) #

def backdated_time : Datetime | Nil #

def backdated_time=(backdated_time : Datetime | Nil) #

def backdated_time_granularity : String | Nil #

def backdated_time_granularity=(backdated_time_granularity : String | Nil) #

def can_backdate : Bool | Nil #

def can_backdate=(can_backdate : Bool | Nil) #

def can_delete : Bool | Nil #

def can_delete=(can_delete : Bool | Nil) #

def can_tag : Bool | Nil #

def can_tag=(can_tag : Bool | Nil) #

def created_time : Datetime | Nil #

def created_time=(created_time : Datetime | Nil) #

def height : Int64 | Nil #

def height=(height : Int64 | Nil) #

def icon : String | Nil #

def icon=(icon : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def link : String | Nil #

def link=(link : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def page_story_id : String | Nil #

def page_story_id=(page_story_id : String | Nil) #

def picture : String | Nil #

def picture=(picture : String | Nil) #

def position : Int64 | Nil #

def position=(position : Int64 | Nil) #

def source : String | Nil #

def source=(source : String | Nil) #

def to_hash #

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

def to_protobuf #

def updated_time : Datetime | Nil #

def updated_time=(updated_time : Datetime | Nil) #

def width : Int64 | Nil #

def width=(width : Int64 | Nil) #