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
- (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison) — The comparison operation performed between the field value and the value specified in the constraint.
#comparison=
def comparison=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison) — The comparison operation performed between the field value and the value specified in the constraint.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::NumberConstraint::Comparison) — The comparison operation performed between the field value and the value specified in the constraint.
#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.