View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto (google_api_content_warehouse v0.3.0)
Example: the choice of chicken, beef, or tofu for the Thai Basil dish. Each option would have its own name, price, allergen info, etc. Note: This proto stores both food and service items despite the name.
Attributes
-
allergenAbsent
(type:list(String.t)
, default:nil
) - -
allergenPresent
(type:list(String.t)
, default:nil
) - -
calories
(type:integer()
, default:nil
) - -
ingredients
(type:list(GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient.t)
, default:nil
) - Ingredients of the food dish option. -
media
(type:list(GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t)
, default:nil
) - Photos of the food dish option. -
nameInfo
(type:list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t)
, default:nil
) - The repeated name_info field here is for item options with names or descriptions listed in multiple languages. When an item option has no names or descriptions, the size of the repeated field name_info may be 0. For example, when a food menu item does not have multiple options, the item option proto is used only to specify price and nutritional information, so it will not have a name_info field. There should be at most one name_info for any given language. -
nutritionFacts
(type:GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts.t
, default:nil
) - Nutrition facts of the food dish option. Note that it also includes calories information with a finer defined unit information. -
portionSize
(type:GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize.t
, default:nil
) - Size of the order, represented in units of items. (e.g. 4 "skewers”, 6 "pieces”) -
preparationMethods
(type:list(String.t)
, default:nil
) - Methods on how the food dish option is prepared. -
price
(type:GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t
, default:nil
) - We use PriceRangeProto here but we expect the lower_price and upper_price to be both set to equal numbers because an option should have a single price. This field is not required because food item prices may be variable depending on season. -
restriction
(type:list(String.t)
, default:nil
) - -
servesNumPeople
(type:integer()
, default:nil
) - Number of people can be served by this food dish option. -
spiciness
(type:String.t
, default:nil
) -
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProto{ allergenAbsent: [String.t()] | nil, allergenPresent: [String.t()] | nil, calories: integer() | nil, ingredients: [ GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoIngredient.t() ] | nil, media: [GoogleApi.ContentWarehouse.V1.Model.GeostoreMediaItemProto.t()] | nil, nameInfo: [GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()] | nil, nutritionFacts: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceInfoFoodNutritionFacts.t() | nil, portionSize: GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize.t() | nil, preparationMethods: [String.t()] | nil, price: GoogleApi.ContentWarehouse.V1.Model.GeostorePriceRangeProto.t() | nil, restriction: [String.t()] | nil, servesNumPeople: integer() | nil, spiciness: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.