View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantProductExpression (google_api_content_warehouse v0.3.0)

An expression parsed from a user query that describes a product or set of products.

Attributes

  • evalData (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t, default: nil) - This field should not be used by clients of the grammar. It is intended to be used internally in Aqua for metric and regression tests.
  • grammaticalGender (type: String.t, default: nil) -
  • grammaticalNumber (type: String.t, default: nil) -
  • phrases (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantPhrase.t), default: nil) - Ordered list of phrases that the user used to describe a product.
  • productClassification (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantProductClassification.t, default: nil) -
  • shoppingListItemInfo (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantShoppingListItemInfo.t, default: nil) - Associated shopping list item info. Only set when the product is come from a shopping list item.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantProductExpression{
    evalData:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingAnnotationEvalData.t()
      | nil,
    grammaticalGender: String.t() | nil,
    grammaticalNumber: String.t() | nil,
    phrases:
      [
        GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantPhrase.t()
      ]
      | nil,
    productClassification:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantProductClassification.t()
      | nil,
    shoppingListItemInfo:
      GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingModelsShoppingAssistantShoppingListItemInfo.t()
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.