Retail V2 API - Class Google::Cloud::Retail::V2::CompleteQueryResponse::CompletionResult (v0.13.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CompleteQueryResponse::CompletionResult.

Resource that represents completion results.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attributes

def attributes() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}) —

    Custom attributes for the suggestion term.

    • For "user-data", the attributes are additional custom attributes ingested through BigQuery.

    • For "cloud-retail", the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.

#attributes=

def attributes=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}) —

    Custom attributes for the suggestion term.

    • For "user-data", the attributes are additional custom attributes ingested through BigQuery.

    • For "cloud-retail", the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.

Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}) —

    Custom attributes for the suggestion term.

    • For "user-data", the attributes are additional custom attributes ingested through BigQuery.

    • For "cloud-retail", the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.

#suggestion

def suggestion() -> ::String
Returns
  • (::String) — The suggestion for the query.

#suggestion=

def suggestion=(value) -> ::String
Parameter
  • value (::String) — The suggestion for the query.
Returns
  • (::String) — The suggestion for the query.