View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CustomAttribute (google_api_retail v0.3.0)
A custom attribute that is not explicitly modeled in Product.
Attributes
-
indexable
(type:boolean()
, default:nil
) - If true, custom attribute values are indexed, so that it can be filtered, faceted or boosted in SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more details. -
numbers
(type:list(float())
, default:nil
) - The numerical values of this custom attribute. For example,[2.3, 15.4]
when the key is "lengths_cm". Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned. -
searchable
(type:boolean()
, default:nil
) - If true, custom attribute values are searchable by text queries in SearchService.Search. This field is ignored in a UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error is returned. -
text
(type:list(String.t)
, default:nil
) - The textual values of this custom attribute. For example,["yellow", "green"]
when the key is "color". Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.