- JSON representation
- FoodMenu
- MenuLabel
- FoodMenuSection
- FoodMenuItem
- FoodMenuItemAttributes
- Spiciness
- Allergen
- DietaryRestriction
- NutritionFacts
- CaloriesFact
- EnergyUnit
- NutritionFact
- MassUnit
- Ingredient
- PreparationMethod
- PortionSize
- FoodMenuItemOption
- Cuisine
Menus of a business that serve food dishes.
JSON representation | |
---|---|
{
"name": string,
"menus": [
{
object ( |
Fields | |
---|---|
name |
Required. Google identifier for this location in the form: |
menus[] |
Optional. A collection of food menus. |
FoodMenu
Menu of a business that serves food dishes.
JSON representation | |
---|---|
{ "labels": [ { object ( |
Fields | |
---|---|
labels[] |
Required. Language-tagged labels for the menu. E.g. "menu", "lunch special". Display names should be 140 characters or less, with descriptions 1,000 characters or less. At least one set of labels is required. |
sourceUrl |
Optional. Source URL of menu if there is a webpage to go to. |
sections[] |
Required. Sections of the menu. |
cuisines[] |
Optional. Cuisine information for the food menu. It is highly recommended to provide this field. |
MenuLabel
Label to be used when displaying the menu and its various sub-components.
JSON representation | |
---|---|
{ "displayName": string, "description": string, "languageCode": string } |
Fields | |
---|---|
displayName |
Required. Display name of the component. |
description |
Optional. Supplementary information of the component. |
languageCode |
Optional. The BCP 47 code of language. If the language is not available, it will default to English. |
FoodMenuSection
Section of a menu. It can contain multiple items/dishes.
JSON representation | |
---|---|
{ "labels": [ { object ( |
Fields | |
---|---|
labels[] |
Required. Language tagged labels for this menu section. Display names should be 140 characters or less, with descriptions 1,000 characters or less. At least one set of labels is required. |
items[] |
Required. Items of the section. Each Section must have at least an item. |
FoodMenuItem
Item of a Section. It can be the dish itself, or can contain multiple FoodMenuItemOption.
JSON representation | |
---|---|
{ "labels": [ { object ( |
Fields | |
---|---|
labels[] |
Required. Language tagged labels for this menu item. Display names should be 140 characters or less, with descriptions 1,000 characters or less. At least one set of labels is required. |
attributes |
Required. Detailed attributes of the item. When item options are specified, this is considered as the base attributes and populate to each options. |
options[] |
Optional. This is for an item that comes in multiple different options, and users are required to make choices. E.g. "regular" vs. "large" pizza. When options are specified, labels and attributes at item level will automatically become the first option's labels and attributes. Clients only need to specify other additional food options in this field. |
FoodMenuItemAttributes
Attributes of a food item/dish.
JSON representation | |
---|---|
{ "price": { object ( |
Fields | |
---|---|
price |
Required. Price of the food dish. |
spiciness |
Optional. Spiciness level of the food dish. |
allergen[] |
Optional. Allergens associated with the food dish. It is highly recommended to provide this field. |
dietaryRestriction[] |
Optional. Dietary information of the food dish. It is highly recommended to provide this field. |
nutritionFacts |
Optional. Nutrition facts of the food dish option. It is highly recommended to provide this field. |
ingredients[] |
Optional. Ingredients of the food dish option. |
servesNumPeople |
Optional. Number of people can be served by this food dish option. |
preparationMethods[] |
Optional. Methods on how the food dish option is prepared. |
portionSize |
Optional. Size of the order, represented in units of items. (e.g. 4 "skewers", 6 "pieces") |
mediaKeys[] |
Optional. The media keys of the media associated with the dish. Only photo media is supported. When there are multiple photos associated, the first photo is considered as the preferred photo. |
Spiciness
The spiciness level of a food item.
Enums | |
---|---|
SPICINESS_UNSPECIFIED |
Level unspecified |
MILD |
Denotion of mild spicy. |
MEDIUM |
Denotion of medium spicy. |
HOT |
Denotion of hot spicy. The most spiciest level. |
Allergen
Allergen information regarding a food item.
Enums | |
---|---|
ALLERGEN_UNSPECIFIED |
Allergen unspecified |
DAIRY |
Dairy related allergen |
EGG |
Egg related allergen |
FISH |
Fish related allergen |
PEANUT |
Peanut related allergen |
SHELLFISH |
Shellfish related allergen |
SOY |
Soy related allergen |
TREE_NUT |
Tree nut related allergen |
WHEAT |
Wheat related allergen |
DietaryRestriction
Dietary information of a food item.
Enums | |
---|---|
DIETARY_RESTRICTION_UNSPECIFIED |
Dietary type unspecified |
HALAL |
Denotion of the food as a halal dish. |
KOSHER |
Denotion of the food as a kosher dish. |
ORGANIC |
Denotion of the food as an organic dish. |
VEGAN |
Denotion of the food as a vegan dish. |
VEGETARIAN |
Denotion of the food as a vegetarian dish. |
NutritionFacts
This message represents nutrition facts for a food dish.
JSON representation | |
---|---|
{ "calories": { object ( |
Fields | |
---|---|
calories |
Optional. Calories of the dish. |
totalFat |
Optional. Fat information for a given food dish. |
cholesterol |
Optional. Cholesterol information for a given food dish. |
sodium |
Optional. Sodium information for a given food dish. |
totalCarbohydrate |
Optional. Carbohydrate information for a given food dish. |
protein |
Optional. Protein information for a given food dish. |
CaloriesFact
This message denotes calories information with an upper bound and lower bound range. Lower amount must be specified. Both lower and upper amounts are non-negative numbers.
JSON representation | |
---|---|
{
"lowerAmount": integer,
"upperAmount": integer,
"unit": enum ( |
Fields | |
---|---|
lowerAmount |
Required. Lower amount of calories |
upperAmount |
Optional. Upper amount of calories |
unit |
Required. Unit of the given calories information. |
EnergyUnit
Possible units of food energy (calories).
Enums | |
---|---|
ENERGY_UNIT_UNSPECIFIED |
Energy unit unspecified |
CALORIE |
Calorie |
JOULE |
Joule |
NutritionFact
This message denotes nutrition information with an upper bound and lower bound range and can be represented by mass unit. Lower amount must be specified. Both lower and upper amounts are non-negative numbers.
JSON representation | |
---|---|
{
"lowerAmount": number,
"upperAmount": number,
"unit": enum ( |
Fields | |
---|---|
lowerAmount |
Required. Lower amount of nutrition |
upperAmount |
Optional. Upper amount of nutrition |
unit |
Required. Unit of the given nutrition information. |
MassUnit
Possible units of mass.
Enums | |
---|---|
MASS_UNIT_UNSPECIFIED |
Mass unit unspecified |
GRAM |
Gram |
MILLIGRAM |
Milligram |
Ingredient
This message denotes an ingredient information of a food dish.
JSON representation | |
---|---|
{
"labels": [
{
object ( |
Fields | |
---|---|
labels[] |
Required. Labels to describe ingredient. Display names should be 140 characters or less, with descriptions 1,000 characters or less. At least one set of labels is required. |
PreparationMethod
Preparation method of a food dish.
Enums | |
---|---|
PREPARATION_METHOD_UNSPECIFIED |
Preparation method unspecified |
BAKED |
Baked method |
BARBECUED |
Barbecued method |
BASTED |
Basted method |
BLANCHED |
Blanched method |
BOILED |
Boiled method |
BRAISED |
Braised method |
CODDLED |
Coddled method |
FERMENTED |
Fermented method |
FRIED |
Fried method |
GRILLED |
Grilled method |
KNEADED |
Kneaded method |
MARINATED |
Marinated method |
PAN_FRIED |
Pan fried method |
PICKLED |
Pickled method |
PRESSURE_COOKED |
Pressure cooked method |
ROASTED |
Roasted method |
SAUTEED |
Sauteed method |
SEARED |
Seared method |
SIMMERED |
Simmered method |
SMOKED |
Smoked method |
STEAMED |
Steamed method |
STEEPED |
Steeped method |
STIR_FRIED |
Stir fried method |
OTHER_METHOD |
Other method |
PortionSize
Serving portion size of a food dish.
JSON representation | |
---|---|
{
"quantity": integer,
"unit": [
{
object ( |
Fields | |
---|---|
quantity |
Required. Number of the portion. |
unit[] |
Required. The repeated nameInfo field is for the unit in multiple languages. |
FoodMenuItemOption
Option of an Item. It requires an explicit user selection.
JSON representation | |
---|---|
{ "labels": [ { object ( |
Fields | |
---|---|
labels[] |
Required. Language tagged labels for this menu item option. E.g.: "beef pad thai", "veggie pad thai", "small pizza", "large pizza". Display names should be 140 characters or less, with descriptions 1,000 characters or less. At least one set of labels is required. |
attributes |
Required. Detailed attributes of the item option. Individual unspecified attributes will be inherited from the item-level attibutes as the base. |
Cuisine
Cuisine information of a resturant.
Enums | |
---|---|
CUISINE_UNSPECIFIED |
Cuisine unspecified |
AMERICAN |
American food |
ASIAN |
Asian food |
BRAZILIAN |
Brazilian food |
BREAK_FAST |
Breakfast |
BRUNCH |
Brunch |
CHICKEN |
Chicken |
CHINESE |
Chinese food |
FAMILY |
Family style cuisine |
FAST_FOOD |
Fast food |
FRENCH |
French food |
GREEK |
Greek food |
GERMAN |
German food |
HAMBURGER |
Hamburger |
INDIAN |
Indian food |
INDONESIAN |
Indonesian food |
ITALIAN |
Italian food |
JAPANESE |
Japanese food |
KOREAN |
Korean food |
LATIN_AMERICAN |
Latin American food |
MEDITERRANEAN |
Mediterranean food |
MEXICAN |
Mexican food |
PAKISTANI |
Pakistani food |
PIZZA |
Pizza |
SEAFOOD |
Seafood |
SPANISH |
Spanish food |
SUSHI |
Sushi |
THAI |
Thai food |
TURKISH |
Turkish food |
VEGETARIAN |
Vegetarian Food |
VIETNAMESE |
Vietnamese food |
OTHER_CUISINE |
Other cuisine |