struct Facebook::Proto::Recommendation

Included Modules

Defined in:

cli/proto/facebook/Recommendation.pb.cr

Constant Summary

FIELDS = {1 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :has_rating, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :has_review, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :rating, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :recommendation_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :review_text, 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(created_time : Datetime | Nil = nil, has_rating : Bool | Nil = nil, has_review : Bool | Nil = nil, rating : Int64 | Nil = nil, recommendation_type : String | Nil = nil, review_text : 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 created_time : Datetime | Nil #

def created_time=(created_time : Datetime | Nil) #

def has_rating : Bool | Nil #

def has_rating=(has_rating : Bool | Nil) #

def has_review : Bool | Nil #

def has_review=(has_review : Bool | Nil) #

def rating : Int64 | Nil #

def rating=(rating : Int64 | Nil) #

def recommendation_type : String | Nil #

def recommendation_type=(recommendation_type : String | Nil) #

def review_text : String | Nil #

def review_text=(review_text : String | Nil) #

def to_hash #

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

def to_protobuf #