struct Facebook::Proto::BusinessCreative
- Facebook::Proto::BusinessCreative
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/BusinessCreative.pb.crConstant 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: :creation_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :duration, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :height, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :thumbnail, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :video_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {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
- .new(buf : Protobuf::Buffer)
- .new(id : String | Nil = nil, creation_time : Datetime | Nil = nil, duration : Int64 | Nil = nil, hash : String | Nil = nil, height : Int64 | Nil = nil, name : String | Nil = nil, thumbnail : String | Nil = nil, type : String | Nil = nil, url : String | Nil = nil, video_id : String | Nil = nil, width : Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #creation_time : Datetime | Nil
- #creation_time=(creation_time : Datetime | Nil)
- #duration : Int64 | Nil
- #duration=(duration : Int64 | Nil)
-
#hash : String | Nil
Generates an
UInt64
hash value for this object. - #hash=(hash : String | Nil)
- #height : Int64 | Nil
- #height=(height : Int64 | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #thumbnail : String | Nil
- #thumbnail=(thumbnail : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : String | Nil
- #type=(type : String | Nil)
- #url : String | Nil
- #url=(url : String | Nil)
- #video_id : String | Nil
- #video_id=(video_id : String | Nil)
- #width : Int64 | Nil
- #width=(width : Int64 | Nil)
Constructor Detail
def self.new(id : String | Nil = nil, creation_time : Datetime | Nil = nil, duration : Int64 | Nil = nil, hash : String | Nil = nil, height : Int64 | Nil = nil, name : String | Nil = nil, thumbnail : String | Nil = nil, type : String | Nil = nil, url : String | Nil = nil, video_id : String | Nil = nil, width : Int64 | Nil = nil)
#
Class Method Detail
Instance Method Detail
def hash : String | Nil
#
Description copied from class Object
Generates an UInt64
hash value for this object.
This method must have the property that a == b
implies a.hash == b.hash
.
The hash value is used along with ==
by the Hash
class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher)
,
though usually the macro def_hash
can be used to generate this method.