Retail V2 API - Class Google::Cloud::Retail::V2::CatalogAttribute (v0.11.0)

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

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dynamic_facetable_option

def dynamic_facetable_option() -> ::Google::Cloud::Retail::V2::CatalogAttribute::DynamicFacetableOption
Returns

#dynamic_facetable_option=

def dynamic_facetable_option=(value) -> ::Google::Cloud::Retail::V2::CatalogAttribute::DynamicFacetableOption
Parameter
Returns

#in_use

def in_use() -> ::Boolean
Returns

#indexable_option

def indexable_option() -> ::Google::Cloud::Retail::V2::CatalogAttribute::IndexableOption
Returns

#indexable_option=

def indexable_option=(value) -> ::Google::Cloud::Retail::V2::CatalogAttribute::IndexableOption
Parameter
Returns

#key

def key() -> ::String
Returns
  • (::String) — Required. Attribute name. For example: color, brands, attributes.custom_attribute, such as attributes.xyz. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named attributes.abc_xyz can be indexed, but an attribute named attributes.abc-xyz cannot be indexed.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — Required. Attribute name. For example: color, brands, attributes.custom_attribute, such as attributes.xyz. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named attributes.abc_xyz can be indexed, but an attribute named attributes.abc-xyz cannot be indexed.
Returns
  • (::String) — Required. Attribute name. For example: color, brands, attributes.custom_attribute, such as attributes.xyz. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named attributes.abc_xyz can be indexed, but an attribute named attributes.abc-xyz cannot be indexed.

#searchable_option

def searchable_option() -> ::Google::Cloud::Retail::V2::CatalogAttribute::SearchableOption
Returns

#searchable_option=

def searchable_option=(value) -> ::Google::Cloud::Retail::V2::CatalogAttribute::SearchableOption
Parameter
Returns

#type

def type() -> ::Google::Cloud::Retail::V2::CatalogAttribute::AttributeType
Returns