= distance_threshold * * @var */ public $distanceThreshold; /** * Required. The number of nearest neighbors to return. Must be a positive * integer of no more than 100. * * @var int */ public $limit; protected $queryVectorType = Value::class; protected $queryVectorDataType = ''; protected $vectorPropertyType = PropertyReference::class; protected $vectorPropertyDataType = ''; /** * Required. The Distance Measure to use, required. * * Accepted values: DISTANCE_MEASURE_UNSPECIFIED, EUCLIDEAN, COSINE, * DOT_PRODUCT * * @param self::DISTANCE_MEASURE_* $distanceMeasure */ public function setDistanceMeasure($distanceMeasure) { $this->distanceMeasure = $distanceMeasure; } /** * @return self::DISTANCE_MEASURE_* */ public function getDistanceMeasure() { return $this->distanceMeasure; } /** * Optional. Optional name of the field to output the result of the vector * distance calculation. Must conform to entity property limitations. * * @param string $distanceResultProperty */ public function setDistanceResultProperty($distanceResultProperty) { $this->distanceResultProperty = $distanceResultProperty; } /** * @return string */ public function getDistanceResultProperty() { return $this->distanceResultProperty; } public function setDistanceThreshold($distanceThreshold) { $this->distanceThreshold = $distanceThreshold; } public function getDistanceThreshold() { return $this->distanceThreshold; } /** * Required. The number of nearest neighbors to return. Must be a positive * integer of no more than 100. * * @param int $limit */ public function setLimit($limit) { $this->limit = $limit; } /** * @return int */ public function getLimit() { return $this->limit; } /** * Required. The query vector that we are searching on. Must be a vector of no * more than 2048 dimensions. * * @param Value $queryVector */ public function setQueryVector(Value $queryVector) { $this->queryVector = $queryVector; } /** * @return Value */ public function getQueryVector() { return $this->queryVector; } /** * Required. An indexed vector property to search upon. Only documents which * contain vectors whose dimensionality match the query_vector can be * returned. * * @param PropertyReference $vectorProperty */ public function setVectorProperty(PropertyReference $vectorProperty) { $this->vectorProperty = $vectorProperty; } /** * @return PropertyReference */ public function getVectorProperty() { return $this->vectorProperty; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(FindNearest::class, 'Google_Service_Datastore_FindNearest');