Skip to content

Commit 91d0370

Browse files
chore: generate libraries at Sat Oct 12 02:21:51 UTC 2024
1 parent 8a78194 commit 91d0370

File tree

9 files changed

+3156
-91
lines changed

9 files changed

+3156
-91
lines changed

proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/FindNearest.java

Lines changed: 2272 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
/*
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
// Generated by the protocol buffer compiler. DO NOT EDIT!
17+
// source: google/datastore/v1/query.proto
18+
19+
// Protobuf Java Version: 3.25.5
20+
package com.google.datastore.v1;
21+
22+
public interface FindNearestOrBuilder
23+
extends
24+
// @@protoc_insertion_point(interface_extends:google.datastore.v1.FindNearest)
25+
com.google.protobuf.MessageOrBuilder {
26+
27+
/**
28+
*
29+
*
30+
* <pre>
31+
* Required. An indexed vector property to search upon. Only documents which
32+
* contain vectors whose dimensionality match the query_vector can be
33+
* returned.
34+
* </pre>
35+
*
36+
* <code>
37+
* .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED];
38+
* </code>
39+
*
40+
* @return Whether the vectorProperty field is set.
41+
*/
42+
boolean hasVectorProperty();
43+
/**
44+
*
45+
*
46+
* <pre>
47+
* Required. An indexed vector property to search upon. Only documents which
48+
* contain vectors whose dimensionality match the query_vector can be
49+
* returned.
50+
* </pre>
51+
*
52+
* <code>
53+
* .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED];
54+
* </code>
55+
*
56+
* @return The vectorProperty.
57+
*/
58+
com.google.datastore.v1.PropertyReference getVectorProperty();
59+
/**
60+
*
61+
*
62+
* <pre>
63+
* Required. An indexed vector property to search upon. Only documents which
64+
* contain vectors whose dimensionality match the query_vector can be
65+
* returned.
66+
* </pre>
67+
*
68+
* <code>
69+
* .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED];
70+
* </code>
71+
*/
72+
com.google.datastore.v1.PropertyReferenceOrBuilder getVectorPropertyOrBuilder();
73+
74+
/**
75+
*
76+
*
77+
* <pre>
78+
* Required. The query vector that we are searching on. Must be a vector of no
79+
* more than 2048 dimensions.
80+
* </pre>
81+
*
82+
* <code>.google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
83+
* </code>
84+
*
85+
* @return Whether the queryVector field is set.
86+
*/
87+
boolean hasQueryVector();
88+
/**
89+
*
90+
*
91+
* <pre>
92+
* Required. The query vector that we are searching on. Must be a vector of no
93+
* more than 2048 dimensions.
94+
* </pre>
95+
*
96+
* <code>.google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
97+
* </code>
98+
*
99+
* @return The queryVector.
100+
*/
101+
com.google.datastore.v1.Value getQueryVector();
102+
/**
103+
*
104+
*
105+
* <pre>
106+
* Required. The query vector that we are searching on. Must be a vector of no
107+
* more than 2048 dimensions.
108+
* </pre>
109+
*
110+
* <code>.google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
111+
* </code>
112+
*/
113+
com.google.datastore.v1.ValueOrBuilder getQueryVectorOrBuilder();
114+
115+
/**
116+
*
117+
*
118+
* <pre>
119+
* Required. The Distance Measure to use, required.
120+
* </pre>
121+
*
122+
* <code>
123+
* .google.datastore.v1.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
124+
* </code>
125+
*
126+
* @return The enum numeric value on the wire for distanceMeasure.
127+
*/
128+
int getDistanceMeasureValue();
129+
/**
130+
*
131+
*
132+
* <pre>
133+
* Required. The Distance Measure to use, required.
134+
* </pre>
135+
*
136+
* <code>
137+
* .google.datastore.v1.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
138+
* </code>
139+
*
140+
* @return The distanceMeasure.
141+
*/
142+
com.google.datastore.v1.FindNearest.DistanceMeasure getDistanceMeasure();
143+
144+
/**
145+
*
146+
*
147+
* <pre>
148+
* Required. The number of nearest neighbors to return. Must be a positive
149+
* integer of no more than 100.
150+
* </pre>
151+
*
152+
* <code>.google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];</code>
153+
*
154+
* @return Whether the limit field is set.
155+
*/
156+
boolean hasLimit();
157+
/**
158+
*
159+
*
160+
* <pre>
161+
* Required. The number of nearest neighbors to return. Must be a positive
162+
* integer of no more than 100.
163+
* </pre>
164+
*
165+
* <code>.google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];</code>
166+
*
167+
* @return The limit.
168+
*/
169+
com.google.protobuf.Int32Value getLimit();
170+
/**
171+
*
172+
*
173+
* <pre>
174+
* Required. The number of nearest neighbors to return. Must be a positive
175+
* integer of no more than 100.
176+
* </pre>
177+
*
178+
* <code>.google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];</code>
179+
*/
180+
com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder();
181+
182+
/**
183+
*
184+
*
185+
* <pre>
186+
* Optional. Optional name of the field to output the result of the vector
187+
* distance calculation. Must conform to [entity
188+
* property][google.datastore.v1.Entity.properties] limitations.
189+
* </pre>
190+
*
191+
* <code>string distance_result_property = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
192+
*
193+
* @return The distanceResultProperty.
194+
*/
195+
java.lang.String getDistanceResultProperty();
196+
/**
197+
*
198+
*
199+
* <pre>
200+
* Optional. Optional name of the field to output the result of the vector
201+
* distance calculation. Must conform to [entity
202+
* property][google.datastore.v1.Entity.properties] limitations.
203+
* </pre>
204+
*
205+
* <code>string distance_result_property = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
206+
*
207+
* @return The bytes for distanceResultProperty.
208+
*/
209+
com.google.protobuf.ByteString getDistanceResultPropertyBytes();
210+
211+
/**
212+
*
213+
*
214+
* <pre>
215+
* Optional. Option to specify a threshold for which no less similar documents
216+
* will be returned. The behavior of the specified `distance_measure` will
217+
* affect the meaning of the distance threshold. Since DOT_PRODUCT distances
218+
* increase when the vectors are more similar, the comparison is inverted.
219+
*
220+
* For EUCLIDEAN, COSINE: WHERE distance &lt;= distance_threshold
221+
* For DOT_PRODUCT: WHERE distance &gt;= distance_threshold
222+
* </pre>
223+
*
224+
* <code>
225+
* .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
226+
* </code>
227+
*
228+
* @return Whether the distanceThreshold field is set.
229+
*/
230+
boolean hasDistanceThreshold();
231+
/**
232+
*
233+
*
234+
* <pre>
235+
* Optional. Option to specify a threshold for which no less similar documents
236+
* will be returned. The behavior of the specified `distance_measure` will
237+
* affect the meaning of the distance threshold. Since DOT_PRODUCT distances
238+
* increase when the vectors are more similar, the comparison is inverted.
239+
*
240+
* For EUCLIDEAN, COSINE: WHERE distance &lt;= distance_threshold
241+
* For DOT_PRODUCT: WHERE distance &gt;= distance_threshold
242+
* </pre>
243+
*
244+
* <code>
245+
* .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
246+
* </code>
247+
*
248+
* @return The distanceThreshold.
249+
*/
250+
com.google.protobuf.DoubleValue getDistanceThreshold();
251+
/**
252+
*
253+
*
254+
* <pre>
255+
* Optional. Option to specify a threshold for which no less similar documents
256+
* will be returned. The behavior of the specified `distance_measure` will
257+
* affect the meaning of the distance threshold. Since DOT_PRODUCT distances
258+
* increase when the vectors are more similar, the comparison is inverted.
259+
*
260+
* For EUCLIDEAN, COSINE: WHERE distance &lt;= distance_threshold
261+
* For DOT_PRODUCT: WHERE distance &gt;= distance_threshold
262+
* </pre>
263+
*
264+
* <code>
265+
* .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
266+
* </code>
267+
*/
268+
com.google.protobuf.DoubleValueOrBuilder getDistanceThresholdOrBuilder();
269+
}

0 commit comments

Comments
 (0)