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