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

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

Constraint of a geolocation field. Name of the geolocation field as defined in the schema.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#address

def address() -> ::String
Returns
  • (::String) — The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.

#address=

def address=(value) -> ::String
Parameter
  • value (::String) — The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
Returns
  • (::String) — The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.

#field_name

def field_name() -> ::String
Returns
  • (::String) — The name of the geolocation field as defined in the schema.

#field_name=

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

#radius_in_meters

def radius_in_meters() -> ::Float
Returns
  • (::Float) — The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.

#radius_in_meters=

def radius_in_meters=(value) -> ::Float
Parameter
  • value (::Float) — The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.
Returns
  • (::Float) — The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.