Class Google::Cloud::Retail::V2::CustomAttribute (v0.6.4)

A custom attribute that is not explicitly modeled in Product.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#indexable

def indexable() -> ::Boolean
Returns

#indexable=

def indexable=(value) -> ::Boolean
Parameter
Returns

#numbers

def numbers() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — The numerical values of this custom attribute. For example, [2.3, 15.4] when the key is "lengths_cm".

    At most 400 values are allowed.Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.

#numbers=

def numbers=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — The numerical values of this custom attribute. For example, [2.3, 15.4] when the key is "lengths_cm".

    At most 400 values are allowed.Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.

Returns
  • (::Array<::Float>) — The numerical values of this custom attribute. For example, [2.3, 15.4] when the key is "lengths_cm".

    At most 400 values are allowed.Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.

#searchable

def searchable() -> ::Boolean
Returns
  • (::Boolean) — 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.

#searchable=

def searchable=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.

Returns
  • (::Boolean) — 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

def text() -> ::Array<::String>
Returns
  • (::Array<::String>) — The textual values of this custom attribute. For example, ["yellow", "green"] when the key is "color".

    At most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.

#text=

def text=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The textual values of this custom attribute. For example, ["yellow", "green"] when the key is "color".

    At most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.

Returns
  • (::Array<::String>) — The textual values of this custom attribute. For example, ["yellow", "green"] when the key is "color".

    At most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. Otherwise, an INVALID_ARGUMENT error is returned.

    Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.