LocalsearchProtoInternalFoodOrderingActionMetadata

AI Overview😉

  • The potential purpose of this module is to provide metadata about food ordering services, such as their operational hours, availability, and supported service types. This information can be used to improve the search results for food-related queries, ensuring that users are shown relevant and accurate information about restaurants and their services.
  • This module could impact search results by influencing the ranking and filtering of food-related search results. For example, if a restaurant is out of operational hours, it may be demoted in search results or marked as "unavailable" to prevent users from attempting to order from it. Similarly, restaurants with primarily food intent or whitelisted external restaurants may be given preferential treatment in search results.
  • To be more favorable for this function, a website may want to ensure that their food ordering service metadata is accurately and consistently represented across their platform. This could include providing clear and up-to-date information about operational hours, service types, and availability. Additionally, restaurants may want to ensure that they are correctly categorized as having primarily food intent or as whitelisted external restaurants, if applicable. By providing accurate and relevant metadata, websites can improve their chances of being shown prominently in food-related search results.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata (google_api_content_warehouse v0.4.0)

  • Proto representing the metadata associated with food ordering internal action. Next ID: 13

Attributes

  • actionType (type: String.t, default: nil) - The action type of this action metadata.
  • hasPrimarilyFoodIntent (type: boolean(), default: nil) - If true, it indicates that the merchant has a primarily food intent. This field will only be set when enable_food_gcid_strict_check in FoodOrderingRestrictionProto is true, see go/togo-unified:overlapping-for-le. See go/togo-unified-gcid for how this is calculated.
  • isOutOfOperationalHours (type: boolean(), default: nil) - If set, indicates that the food ordering service is out of operational hours. This could only be populated if the request explicitly asks for ignore_operational_hours in request (universalsearch/rpc/geo/food_ordering_restriction.proto). Design doc: go/fo-persistent-v1.
  • isWhitelistedExternalRestaurant (type: boolean(), default: nil) - When true, indicates that this is a whitelisted restaurant from a first party (but non FO) partner, i.e. a merchant from the orderig app, who is Google owned first party food ordering platform. Design doc: go/onboard-mavn-to-fo. Tracking bug: b/150331855
  • nextOpeningTime (type: DateTime.t, default: nil) - Next opening time when the food ordering service will be available. This is only present if the unavailability reason is OUT_OF_OPERATIONAL_HOURS.
  • onlyOrderAheadServicesAvailable (type: boolean(), default: nil) - Indicates whether only order ahead services are available. Order ahead services allow only to place order for future and ASAP order can not be placed via them.
  • serviceInfo (type: list(GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadataServiceInfo.t), default: nil) - Aggregated service information by service type. Each service type would only have one ServiceInfo. Optional.
  • supportedServiceType (type: String.t, default: nil) - Food ordering service type.
  • unavailabilityReason (type: String.t, default: nil) - Reason for unavailability of internal food ordering action. This is only present when FOPA is unavailable for a particular restaurant. When this is set, all other fields in this proto will not be populated. Note(fo-search): If there are log only partners and this particular restaurant is only supported because of log only partners, this field will not be set to NOT_INTEGRATED_WITH_FOPA.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata{
    actionType: String.t() | nil,
    hasPrimarilyFoodIntent: boolean() | nil,
    isOutOfOperationalHours: boolean() | nil,
    isWhitelistedExternalRestaurant: boolean() | nil,
    nextOpeningTime: DateTime.t() | nil,
    onlyOrderAheadServicesAvailable: boolean() | nil,
    serviceInfo:
      [
        GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadataServiceInfo.t()
      ]
      | nil,
    supportedServiceType: String.t() | nil,
    unavailabilityReason: String.t() | nil
  }

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.