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

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.

#latitude

def latitude() -> ::Float
Returns
  • (::Float) — The latitude of the geolocation inferred from the input query.

#latitude=

def latitude=(value) -> ::Float
Parameter
  • value (::Float) — The latitude of the geolocation inferred from the input query.
Returns
  • (::Float) — The latitude of the geolocation inferred from the input query.

#longitude

def longitude() -> ::Float
Returns
  • (::Float) — The longitude of the geolocation inferred from the input query.

#longitude=

def longitude=(value) -> ::Float
Parameter
  • value (::Float) — The longitude of the geolocation inferred from the input query.
Returns
  • (::Float) — The longitude of the geolocation inferred from the input query.

#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.