struct Facebook::Proto::Recommendation
- Facebook::Proto::Recommendation
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/Recommendation.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #created_time : Datetime | Nil
- #created_time=(created_time : Datetime | Nil)
- #has_rating : Bool | Nil
- #has_rating=(has_rating : Bool | Nil)
- #has_review : Bool | Nil
- #has_review=(has_review : Bool | Nil)
- #rating : Int64 | Nil
- #rating=(rating : Int64 | Nil)
- #recommendation_type : String | Nil
- #recommendation_type=(recommendation_type : String | Nil)
- #review_text : String | Nil
- #review_text=(review_text : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
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)
#