struct Facebook::Proto::ProductItem

Included Modules

Defined in:

cli/proto/facebook/ProductItem.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: :additional_image_urls, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :age_group, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :availability, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :brand, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :category, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :color, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :condition, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :custom_label_0, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :custom_label_1, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :custom_label_2, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :custom_label_3, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :custom_label_4, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :expiration_date, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :gender, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :gtin, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :image_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :inventory, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :manufacturer_part_number, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :material, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :mobile_link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :ordering_index, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :pattern, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {name: :product_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 29 => {name: :retailer_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 30 => {name: :retailer_product_group_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 31 => {name: :review_rejection_reasons, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 32 => {name: :review_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 33 => {name: :sale_price, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 34 => {name: :sale_price_end_date, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 35 => {name: :sale_price_start_date, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 36 => {name: :shipping_weight_unit, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 37 => {name: :shipping_weight_value, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 38 => {name: :short_description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 39 => {name: :size, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 40 => {name: :start_date, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 41 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 42 => {name: :visibility, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 43 => {name: :android_app_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 44 => {name: :android_class, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 45 => {name: :android_package, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 46 => {name: :android_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 47 => {name: :checkout_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 48 => {name: :ios_app_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 49 => {name: :ios_app_store_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 50 => {name: :ios_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 51 => {name: :ipad_app_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 52 => {name: :ipad_app_store_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 53 => {name: :ipad_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 54 => {name: :iphone_app_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 55 => {name: :iphone_app_store_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 56 => {name: :iphone_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 57 => {name: :launch_date, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 58 => {name: :offer_price_amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 59 => {name: :offer_price_end_date, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 60 => {name: :offer_price_start_date, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 61 => {name: :windows_phone_app_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 62 => {name: :windows_phone_app_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 63 => {name: :windows_phone_url, 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, additional_image_urls : Array(String) | Nil = nil, age_group : String | Nil = nil, availability : String | Nil = nil, brand : String | Nil = nil, category : String | Nil = nil, color : String | Nil = nil, condition : String | Nil = nil, currency : String | Nil = nil, custom_label_0 : String | Nil = nil, custom_label_1 : String | Nil = nil, custom_label_2 : String | Nil = nil, custom_label_3 : String | Nil = nil, custom_label_4 : String | Nil = nil, description : String | Nil = nil, expiration_date : String | Nil = nil, gender : String | Nil = nil, gtin : String | Nil = nil, image_url : String | Nil = nil, inventory : Int64 | Nil = nil, manufacturer_part_number : String | Nil = nil, material : String | Nil = nil, mobile_link : String | Nil = nil, name : String | Nil = nil, ordering_index : Int64 | Nil = nil, pattern : String | Nil = nil, price : String | Nil = nil, product_type : String | Nil = nil, retailer_id : String | Nil = nil, retailer_product_group_id : String | Nil = nil, review_rejection_reasons : Array(String) | Nil = nil, review_status : String | Nil = nil, sale_price : String | Nil = nil, sale_price_end_date : String | Nil = nil, sale_price_start_date : String | Nil = nil, shipping_weight_unit : String | Nil = nil, shipping_weight_value : Float64 | Nil = nil, short_description : String | Nil = nil, size : String | Nil = nil, start_date : String | Nil = nil, url : String | Nil = nil, visibility : String | Nil = nil, android_app_name : String | Nil = nil, android_class : String | Nil = nil, android_package : String | Nil = nil, android_url : String | Nil = nil, checkout_url : String | Nil = nil, ios_app_name : String | Nil = nil, ios_app_store_id : Int64 | Nil = nil, ios_url : String | Nil = nil, ipad_app_name : String | Nil = nil, ipad_app_store_id : Int64 | Nil = nil, ipad_url : String | Nil = nil, iphone_app_name : String | Nil = nil, iphone_app_store_id : Int64 | Nil = nil, iphone_url : String | Nil = nil, launch_date : String | Nil = nil, offer_price_amount : Int64 | Nil = nil, offer_price_end_date : Datetime | Nil = nil, offer_price_start_date : Datetime | Nil = nil, windows_phone_app_id : String | Nil = nil, windows_phone_app_name : String | Nil = nil, windows_phone_url : 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 additional_image_urls : Array(String) | Nil #

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

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

def age_group : String | Nil #

def age_group=(age_group : String | Nil) #

def android_app_name : String | Nil #

def android_app_name=(android_app_name : String | Nil) #

def android_class : String | Nil #

def android_class=(android_class : String | Nil) #

def android_package : String | Nil #

def android_package=(android_package : String | Nil) #

def android_url : String | Nil #

def android_url=(android_url : String | Nil) #

def availability : String | Nil #

def availability=(availability : String | Nil) #

def brand : String | Nil #

def brand=(brand : String | Nil) #

def category : String | Nil #

def category=(category : String | Nil) #

def checkout_url : String | Nil #

def checkout_url=(checkout_url : String | Nil) #

def color : String | Nil #

def color=(color : String | Nil) #

def condition : String | Nil #

def condition=(condition : String | Nil) #

def currency : String | Nil #

def currency=(currency : String | Nil) #

def custom_label_0 : String | Nil #

def custom_label_0=(custom_label_0 : String | Nil) #

def custom_label_1 : String | Nil #

def custom_label_1=(custom_label_1 : String | Nil) #

def custom_label_2 : String | Nil #

def custom_label_2=(custom_label_2 : String | Nil) #

def custom_label_3 : String | Nil #

def custom_label_3=(custom_label_3 : String | Nil) #

def custom_label_4 : String | Nil #

def custom_label_4=(custom_label_4 : String | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def expiration_date : String | Nil #

def expiration_date=(expiration_date : String | Nil) #

def gender : String | Nil #

def gender=(gender : String | Nil) #

def gtin : String | Nil #

def gtin=(gtin : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def image_url : String | Nil #

def image_url=(image_url : String | Nil) #

def inventory : Int64 | Nil #

def inventory=(inventory : Int64 | Nil) #

def ios_app_name : String | Nil #

def ios_app_name=(ios_app_name : String | Nil) #

def ios_app_store_id : Int64 | Nil #

def ios_app_store_id=(ios_app_store_id : Int64 | Nil) #

def ios_url : String | Nil #

def ios_url=(ios_url : String | Nil) #

def ipad_app_name : String | Nil #

def ipad_app_name=(ipad_app_name : String | Nil) #

def ipad_app_store_id : Int64 | Nil #

def ipad_app_store_id=(ipad_app_store_id : Int64 | Nil) #

def ipad_url : String | Nil #

def ipad_url=(ipad_url : String | Nil) #

def iphone_app_name : String | Nil #

def iphone_app_name=(iphone_app_name : String | Nil) #

def iphone_app_store_id : Int64 | Nil #

def iphone_app_store_id=(iphone_app_store_id : Int64 | Nil) #

def iphone_url : String | Nil #

def iphone_url=(iphone_url : String | Nil) #

def launch_date : String | Nil #

def launch_date=(launch_date : String | Nil) #

def manufacturer_part_number : String | Nil #

def manufacturer_part_number=(manufacturer_part_number : String | Nil) #

def material : String | Nil #

def material=(material : String | Nil) #

def mobile_link : String | Nil #

def mobile_link=(mobile_link : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def offer_price_amount : Int64 | Nil #

def offer_price_amount=(offer_price_amount : Int64 | Nil) #

def offer_price_end_date : Datetime | Nil #

def offer_price_end_date=(offer_price_end_date : Datetime | Nil) #

def offer_price_start_date : Datetime | Nil #

def offer_price_start_date=(offer_price_start_date : Datetime | Nil) #

def ordering_index : Int64 | Nil #

def ordering_index=(ordering_index : Int64 | Nil) #

def pattern : String | Nil #

def pattern=(pattern : String | Nil) #

def price : String | Nil #

def price=(price : String | Nil) #

def product_type : String | Nil #

def product_type=(product_type : String | Nil) #

def retailer_id : String | Nil #

def retailer_id=(retailer_id : String | Nil) #

def retailer_product_group_id : String | Nil #

def retailer_product_group_id=(retailer_product_group_id : String | Nil) #

def review_rejection_reasons : Array(String) | Nil #

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

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

def review_status : String | Nil #

def review_status=(review_status : String | Nil) #

def sale_price : String | Nil #

def sale_price=(sale_price : String | Nil) #

def sale_price_end_date : String | Nil #

def sale_price_end_date=(sale_price_end_date : String | Nil) #

def sale_price_start_date : String | Nil #

def sale_price_start_date=(sale_price_start_date : String | Nil) #

def shipping_weight_unit : String | Nil #

def shipping_weight_unit=(shipping_weight_unit : String | Nil) #

def shipping_weight_value : Float64 | Nil #

def shipping_weight_value=(shipping_weight_value : Float64 | Nil) #

def short_description : String | Nil #

def short_description=(short_description : String | Nil) #

def size : String | Nil #

def size=(size : String | Nil) #

def start_date : String | Nil #

def start_date=(start_date : String | Nil) #

def to_hash #

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

def to_protobuf #

def url : String | Nil #

def url=(url : String | Nil) #

def visibility : String | Nil #

def visibility=(visibility : String | Nil) #

def windows_phone_app_id : String | Nil #

def windows_phone_app_id=(windows_phone_app_id : String | Nil) #

def windows_phone_app_name : String | Nil #

def windows_phone_app_name=(windows_phone_app_name : String | Nil) #

def windows_phone_url : String | Nil #

def windows_phone_url=(windows_phone_url : String | Nil) #