Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint

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

Overview

Constraint expression of a string field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint.



20776
20777
20778
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20776

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)


20763
20764
20765
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20763

def field_name
  @field_name
end

#query_segmentString

Identifies the keywords within the search query that match a filter. Corresponds to the JSON property querySegment

Returns:

  • (String)


20768
20769
20770
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20768

def query_segment
  @query_segment
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>)


20774
20775
20776
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20774

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20781
20782
20783
20784
20785
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 20781

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