QualityDialogManagerLocalResult

GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalResult


Table of Contents ▼

Jump to a specific part of the page:

Description

A generic representation of a local result returned by a local backend. Next ID: 33

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. adminArea1 (type: String.t, default: nil)
    - This field can represent different areas depending on the country. For example in the US it is state but in Canada it would be a province.
  2. availableIntents (type: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalIntentOptions, default: nil)
    - The set of available intents changes with result. An intersection of available_intents and allowed_intents (See: local_config.proto), is shown to the user.
  3. businessType (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType, default: nil)
    - Bitset of business types this result falls into. Many fields in this message may be unset - expect good coverage for restaurants and hotels for now, but not for other verticals.
  4. country (type: String.t, default: nil)
    -
  5. countryCode (type: String.t, default: nil)
    - The two-letter ISO 3166-1 country code of this result. Generated by FindFeatureCountryCode http://google3/geostore/base/public/country.h?l=39&rcl=154898119 so it should always be populated, but technically there is no guarantee.
  6. distanceMeters (type: String.t, default: nil)
    - For a directions result, this field will be the distance from the origin to this result using the best measure we have available - the distance along a route, if we have one, or just the crow's flight distance. For a local result, this field will be the crow's flight distance from the user to the result.
  7. distanceUnits (type: String.t, default: nil)
    - The standard units of the location where the user is based (not their current location). For example, miles for a user from the US, kilometers for the UK. A US user currently in the UK should have units read in miles.
  8. externalIds (type: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerExternalIds, default: nil)
    - Various external IDs that we may have for this result.
  9. featureType (type: String.t, default: nil)
    -
  10. inUserAdminArea1 (type: boolean(), default: nil)
    - If true, this LocalResult is located in the same state as the user's location.
  11. inUserCountry (type: boolean(), default: nil)
    - If true, this LocalResult is located in the same country as the user's location.
  12. inUserLocality (type: boolean(), default: nil)
    - Whether this result is in the same city or town that the user is in.
  13. internalFoodOrderingMetadata (type: GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata, default: nil)
    - Internal Food ordering action (i.e food ordering via Google) metadata.
  14. isBusinessChain (type: boolean(), default: nil)
    - If the original query had a chain intent, and this result is for a business chain.
  15. locality (type: String.t, default: nil)
    - City/Town.
  16. name (type: String.t, default: nil)
    - The name of the result, extracted from its FeatureProto's name field.
  17. neighborhood (type: String.t, default: nil)
    - Neighborhood within a city. This field is not likely to be set for towns or smaller cities.
  18. resultId (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalLocalResultId, default: nil)
    - All info we will need to lookup this result in search.
  19. streetName (type: String.t, default: nil)
    -
  20. streetNumber (type: String.t, default: nil)
    -
  21. synonym (type: list(String.t), default: nil)
    - A list of text synonyms the user could use to refer to the result.
  22. ttsAddress (type: String.t, default: nil)
    - The address of this result formatted for TTS output. This formatting removes acronyms like 2-letter state codes as they cannot be spoken well.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalResult{
adminArea1: String.t() | nil,
availableIntents: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalIntentOptions.t() | nil,
businessType: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType.t() | nil,
country: String.t() | nil,
countryCode: String.t() | nil,
distanceMeters: String.t() | nil,
distanceUnits: String.t() | nil,
externalIds: GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerExternalIds.t() | nil,
featureType: String.t() | nil,
inUserAdminArea1: boolean() | nil,
inUserCountry: boolean() | nil,
inUserLocality: boolean() | nil,
internalFoodOrderingMetadata: GoogleApi.ContentWarehouse.V1.Model.LocalsearchProtoInternalFoodOrderingActionMetadata.t() | nil,
isBusinessChain: boolean() | nil,
locality: String.t() | nil,
name: String.t() | nil,
neighborhood: String.t() | nil,
resultId: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalLocalResultId.t() | nil,
streetName: String.t() | nil,
streetNumber: String.t() | nil,
synonym: [String.t()] | nil,
ttsAddress: String.t() | nil
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.QualityDialogManagerLocalResult