Retail V2 API - Class Google::Cloud::Retail::V2::CompleteQueryResponse::CompletionResult (v0.9.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. This is an experimental feature. Contact Retail Search support team if you are interested in enabling it.

#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. This is an experimental feature. Contact Retail Search support team if you are interested in enabling it.

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. This is an experimental feature. Contact Retail Search support team if you are interested in enabling it.

#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.