Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConditionQueryTerm

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

Query terms that we want to match on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaConditionQueryTerm

Returns a new instance of GoogleCloudRetailV2alphaConditionQueryTerm.



2617
2618
2619
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2617

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

Instance Attribute Details

#full_matchBoolean Also known as: full_match?

Whether this is supposed to be a full or partial match. Corresponds to the JSON property fullMatch

Returns:

  • (Boolean)


2606
2607
2608
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2606

def full_match
  @full_match
end

#valueString

The value of the term to match on. Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms and not allowed for a partial match. Corresponds to the JSON property value

Returns:

  • (String)


2615
2616
2617
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2615

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2622
2623
2624
2625
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2622

def update!(**args)
  @full_match = args[:full_match] if args.key?(:full_match)
  @value = args[:value] if args.key?(:value)
end