source: vendor/google/apiclient-services/src/Firestore/FindNearest.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Firestore;
19
20class FindNearest extends \Google\Model
21{
22 /**
23 * @var string
24 */
25 public $distanceMeasure;
26 /**
27 * @var string
28 */
29 public $distanceResultField;
30 public $distanceThreshold;
31 /**
32 * @var int
33 */
34 public $limit;
35 protected $queryVectorType = Value::class;
36 protected $queryVectorDataType = '';
37 protected $vectorFieldType = FieldReference::class;
38 protected $vectorFieldDataType = '';
39
40 /**
41 * @param string
42 */
43 public function setDistanceMeasure($distanceMeasure)
44 {
45 $this->distanceMeasure = $distanceMeasure;
46 }
47 /**
48 * @return string
49 */
50 public function getDistanceMeasure()
51 {
52 return $this->distanceMeasure;
53 }
54 /**
55 * @param string
56 */
57 public function setDistanceResultField($distanceResultField)
58 {
59 $this->distanceResultField = $distanceResultField;
60 }
61 /**
62 * @return string
63 */
64 public function getDistanceResultField()
65 {
66 return $this->distanceResultField;
67 }
68 public function setDistanceThreshold($distanceThreshold)
69 {
70 $this->distanceThreshold = $distanceThreshold;
71 }
72 public function getDistanceThreshold()
73 {
74 return $this->distanceThreshold;
75 }
76 /**
77 * @param int
78 */
79 public function setLimit($limit)
80 {
81 $this->limit = $limit;
82 }
83 /**
84 * @return int
85 */
86 public function getLimit()
87 {
88 return $this->limit;
89 }
90 /**
91 * @param Value
92 */
93 public function setQueryVector(Value $queryVector)
94 {
95 $this->queryVector = $queryVector;
96 }
97 /**
98 * @return Value
99 */
100 public function getQueryVector()
101 {
102 return $this->queryVector;
103 }
104 /**
105 * @param FieldReference
106 */
107 public function setVectorField(FieldReference $vectorField)
108 {
109 $this->vectorField = $vectorField;
110 }
111 /**
112 * @return FieldReference
113 */
114 public function getVectorField()
115 {
116 return $this->vectorField;
117 }
118}
119
120// Adding a class alias for backwards compatibility with the previous class name.
121class_alias(FindNearest::class, 'Google_Service_Firestore_FindNearest');
Note: See TracBrowser for help on using the repository browser.