struct Facebook::Proto::ProductCatalog
- Facebook::Proto::ProductCatalog
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/ProductCatalog.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: :default_image_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :fallback_image_url, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :feed_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :product_count, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :vertical, 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(id : String | Nil = nil, default_image_url : String | Nil = nil, fallback_image_url : Array(String) | Nil = nil, feed_count : Int64 | Nil = nil, name : String | Nil = nil, product_count : Int64 | Nil = nil, vertical : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #default_image_url : String | Nil
- #default_image_url=(default_image_url : String | Nil)
- #fallback_image_url : Array(String) | Nil
- #fallback_image_url=(fallback_image_url : Array(String) | Nil)
- #fallback_image_url=(fallback_image_url : Array(String) | Nil)
- #feed_count : Int64 | Nil
- #feed_count=(feed_count : Int64 | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #product_count : Int64 | Nil
- #product_count=(product_count : Int64 | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #vertical : String | Nil
- #vertical=(vertical : String | Nil)
Constructor Detail
def self.new(id : String | Nil = nil, default_image_url : String | Nil = nil, fallback_image_url : Array(String) | Nil = nil, feed_count : Int64 | Nil = nil, name : String | Nil = nil, product_count : Int64 | Nil = nil, vertical : String | Nil = nil)
#