Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaConditionQueryTerm

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

Overview

Query terms that we want to match on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaConditionQueryTerm

Returns a new instance of GoogleCloudRetailV2betaConditionQueryTerm.



2062
2063
2064
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2062

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)


2051
2052
2053
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2051

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. Example) "a b c" is 3 terms and allowed, " a b c d" is 4 terms and not allowed for partial match. Corresponds to the JSON property value

Returns:

  • (String)


2060
2061
2062
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2060

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2067
2068
2069
2070
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2067

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