Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint

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

Overview

Constraint expression of a string field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint.



12171
12172
12173
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12171

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

Instance Attribute Details

#field_nameString

Name of the string field as defined in the schema. Corresponds to the JSON property fieldName

Returns:

  • (String)


12163
12164
12165
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12163

def field_name
  @field_name
end

#valuesArray<String>

Values of the string field. The record will only be returned if the field value matches one of the values specified here. Corresponds to the JSON property values

Returns:

  • (Array<String>)


12169
12170
12171
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12169

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12176
12177
12178
12179
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12176

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