struct Facebook::Proto::ProductCatalog

Included Modules

Defined in:

cli/proto/facebook/ProductCatalog.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: :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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

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) #

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 default_image_url : String | Nil #

def default_image_url=(default_image_url : String | Nil) #

def fallback_image_url : Array(String) | Nil #

def fallback_image_url=(fallback_image_url : Array(String) | Nil) #

def fallback_image_url=(fallback_image_url : Array(String) | Nil) #

def feed_count : Int64 | Nil #

def feed_count=(feed_count : Int64 | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def product_count : Int64 | Nil #

def product_count=(product_count : Int64 | Nil) #

def to_hash #

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

def to_protobuf #

def vertical : String | Nil #

def vertical=(vertical : String | Nil) #