Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint (v0.14.1)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint.

Constraint expression of a number field. Example: price < 100.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#comparison

def comparison() -> ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison
Returns

#comparison=

def comparison=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison
Parameter
Returns

#field_name

def field_name() -> ::String
Returns
  • (::String) — Name of the numerical field as defined in the schema.

#field_name=

def field_name=(value) -> ::String
Parameter
  • value (::String) — Name of the numerical field as defined in the schema.
Returns
  • (::String) — Name of the numerical field as defined in the schema.

#value

def value() -> ::Float
Returns
  • (::Float) — The value specified in the numerical constraint.

#value=

def value=(value) -> ::Float
Parameter
  • value (::Float) — The value specified in the numerical constraint.
Returns
  • (::Float) — The value specified in the numerical constraint.