Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

Facet values to ignore on facets during the specified time range for the given SearchResponse.Facet.key attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues

Returns a new instance of GoogleCloudRetailV2alphaCatalogAttributeIgnoredFacetValues.



1562
1563
1564
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1562

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_timeString

If start time is empty and end time is not empty, then ignore these facet values before end time. Corresponds to the JSON property endTime

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1545

def end_time
  @end_time
end

#start_timeString

Time range for the current list of facet values to ignore. If multiple time ranges are specified for an facet value for the current attribute, consider all of them. If both are empty, ignore always. If start time and end time are set, then start time must be before end time. If start time is not empty and end time is empty, then will ignore these facet values after the start time. Corresponds to the JSON property startTime

Returns:

  • (String)


1554
1555
1556
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1554

def start_time
  @start_time
end

#valuesArray<String>

List of facet values to ignore for the following time range. The facet values are the same as the attribute values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


1560
1561
1562
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1560

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1567
1568
1569
1570
1571
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1567

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @values = args[:values] if args.key?(:values)
end