| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/datastore/v1/query.proto |
| 20 |
|
| 21 |
package datastorepb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 28 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| 29 |
reflect "reflect" |
| 30 |
sync "sync" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// Specifies what data the 'entity' field contains. |
| 41 |
// A `ResultType` is either implied (for example, in `LookupResponse.missing` |
| 42 |
// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context |
| 43 |
// (for example, in message `QueryResultBatch`, field `entity_result_type` |
| 44 |
// specifies a `ResultType` for all the values in field `entity_results`). |
| 45 |
type EntityResult_ResultType int32 |
| 46 |
|
| 47 |
const ( |
| 48 |
// Unspecified. This value is never used. |
| 49 |
EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0 |
| 50 |
// The key and properties. |
| 51 |
EntityResult_FULL EntityResult_ResultType = 1 |
| 52 |
// A projected subset of properties. The entity may have no key. |
| 53 |
EntityResult_PROJECTION EntityResult_ResultType = 2 |
| 54 |
// Only the key. |
| 55 |
EntityResult_KEY_ONLY EntityResult_ResultType = 3 |
| 56 |
) |
| 57 |
|
| 58 |
// Enum value maps for EntityResult_ResultType. |
| 59 |
var ( |
| 60 |
EntityResult_ResultType_name = map[int32]string{ |
| 61 |
0: "RESULT_TYPE_UNSPECIFIED", |
| 62 |
1: "FULL", |
| 63 |
2: "PROJECTION", |
| 64 |
3: "KEY_ONLY", |
| 65 |
} |
| 66 |
EntityResult_ResultType_value = map[string]int32{ |
| 67 |
"RESULT_TYPE_UNSPECIFIED": 0, |
| 68 |
"FULL": 1, |
| 69 |
"PROJECTION": 2, |
| 70 |
"KEY_ONLY": 3, |
| 71 |
} |
| 72 |
) |
| 73 |
|
| 74 |
func (x EntityResult_ResultType) Enum() *EntityResult_ResultType { |
| 75 |
p := new(EntityResult_ResultType) |
| 76 |
*p = x |
| 77 |
return p |
| 78 |
} |
| 79 |
|
| 80 |
func (x EntityResult_ResultType) String() string { |
| 81 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 82 |
} |
| 83 |
|
| 84 |
func (EntityResult_ResultType) Descriptor() protoreflect.EnumDescriptor { |
| 85 |
return file_google_datastore_v1_query_proto_enumTypes[0].Descriptor() |
| 86 |
} |
| 87 |
|
| 88 |
func (EntityResult_ResultType) Type() protoreflect.EnumType { |
| 89 |
return &file_google_datastore_v1_query_proto_enumTypes[0] |
| 90 |
} |
| 91 |
|
| 92 |
func (x EntityResult_ResultType) Number() protoreflect.EnumNumber { |
| 93 |
return protoreflect.EnumNumber(x) |
| 94 |
} |
| 95 |
|
| 96 |
// Deprecated: Use EntityResult_ResultType.Descriptor instead. |
| 97 |
func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) { |
| 98 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{0, 0} |
| 99 |
} |
| 100 |
|
| 101 |
// The sort direction. |
| 102 |
type PropertyOrder_Direction int32 |
| 103 |
|
| 104 |
const ( |
| 105 |
// Unspecified. This value must not be used. |
| 106 |
PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0 |
| 107 |
// Ascending. |
| 108 |
PropertyOrder_ASCENDING PropertyOrder_Direction = 1 |
| 109 |
// Descending. |
| 110 |
PropertyOrder_DESCENDING PropertyOrder_Direction = 2 |
| 111 |
) |
| 112 |
|
| 113 |
// Enum value maps for PropertyOrder_Direction. |
| 114 |
var ( |
| 115 |
PropertyOrder_Direction_name = map[int32]string{ |
| 116 |
0: "DIRECTION_UNSPECIFIED", |
| 117 |
1: "ASCENDING", |
| 118 |
2: "DESCENDING", |
| 119 |
} |
| 120 |
PropertyOrder_Direction_value = map[string]int32{ |
| 121 |
"DIRECTION_UNSPECIFIED": 0, |
| 122 |
"ASCENDING": 1, |
| 123 |
"DESCENDING": 2, |
| 124 |
} |
| 125 |
) |
| 126 |
|
| 127 |
func (x PropertyOrder_Direction) Enum() *PropertyOrder_Direction { |
| 128 |
p := new(PropertyOrder_Direction) |
| 129 |
*p = x |
| 130 |
return p |
| 131 |
} |
| 132 |
|
| 133 |
func (x PropertyOrder_Direction) String() string { |
| 134 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 135 |
} |
| 136 |
|
| 137 |
func (PropertyOrder_Direction) Descriptor() protoreflect.EnumDescriptor { |
| 138 |
return file_google_datastore_v1_query_proto_enumTypes[1].Descriptor() |
| 139 |
} |
| 140 |
|
| 141 |
func (PropertyOrder_Direction) Type() protoreflect.EnumType { |
| 142 |
return &file_google_datastore_v1_query_proto_enumTypes[1] |
| 143 |
} |
| 144 |
|
| 145 |
func (x PropertyOrder_Direction) Number() protoreflect.EnumNumber { |
| 146 |
return protoreflect.EnumNumber(x) |
| 147 |
} |
| 148 |
|
| 149 |
// Deprecated: Use PropertyOrder_Direction.Descriptor instead. |
| 150 |
func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) { |
| 151 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{6, 0} |
| 152 |
} |
| 153 |
|
| 154 |
// A composite filter operator. |
| 155 |
type CompositeFilter_Operator int32 |
| 156 |
|
| 157 |
const ( |
| 158 |
// Unspecified. This value must not be used. |
| 159 |
CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0 |
| 160 |
// The results are required to satisfy each of the combined filters. |
| 161 |
CompositeFilter_AND CompositeFilter_Operator = 1 |
| 162 |
// Documents are required to satisfy at least one of the combined filters. |
| 163 |
CompositeFilter_OR CompositeFilter_Operator = 2 |
| 164 |
) |
| 165 |
|
| 166 |
// Enum value maps for CompositeFilter_Operator. |
| 167 |
var ( |
| 168 |
CompositeFilter_Operator_name = map[int32]string{ |
| 169 |
0: "OPERATOR_UNSPECIFIED", |
| 170 |
1: "AND", |
| 171 |
2: "OR", |
| 172 |
} |
| 173 |
CompositeFilter_Operator_value = map[string]int32{ |
| 174 |
"OPERATOR_UNSPECIFIED": 0, |
| 175 |
"AND": 1, |
| 176 |
"OR": 2, |
| 177 |
} |
| 178 |
) |
| 179 |
|
| 180 |
func (x CompositeFilter_Operator) Enum() *CompositeFilter_Operator { |
| 181 |
p := new(CompositeFilter_Operator) |
| 182 |
*p = x |
| 183 |
return p |
| 184 |
} |
| 185 |
|
| 186 |
func (x CompositeFilter_Operator) String() string { |
| 187 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 188 |
} |
| 189 |
|
| 190 |
func (CompositeFilter_Operator) Descriptor() protoreflect.EnumDescriptor { |
| 191 |
return file_google_datastore_v1_query_proto_enumTypes[2].Descriptor() |
| 192 |
} |
| 193 |
|
| 194 |
func (CompositeFilter_Operator) Type() protoreflect.EnumType { |
| 195 |
return &file_google_datastore_v1_query_proto_enumTypes[2] |
| 196 |
} |
| 197 |
|
| 198 |
func (x CompositeFilter_Operator) Number() protoreflect.EnumNumber { |
| 199 |
return protoreflect.EnumNumber(x) |
| 200 |
} |
| 201 |
|
| 202 |
// Deprecated: Use CompositeFilter_Operator.Descriptor instead. |
| 203 |
func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { |
| 204 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{8, 0} |
| 205 |
} |
| 206 |
|
| 207 |
// A property filter operator. |
| 208 |
type PropertyFilter_Operator int32 |
| 209 |
|
| 210 |
const ( |
| 211 |
// Unspecified. This value must not be used. |
| 212 |
PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0 |
| 213 |
// The given `property` is less than the given `value`. |
| 214 |
// |
| 215 |
// Requires: |
| 216 |
// |
| 217 |
// * That `property` comes first in `order_by`. |
| 218 |
PropertyFilter_LESS_THAN PropertyFilter_Operator = 1 |
| 219 |
// The given `property` is less than or equal to the given `value`. |
| 220 |
// |
| 221 |
// Requires: |
| 222 |
// |
| 223 |
// * That `property` comes first in `order_by`. |
| 224 |
PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2 |
| 225 |
// The given `property` is greater than the given `value`. |
| 226 |
// |
| 227 |
// Requires: |
| 228 |
// |
| 229 |
// * That `property` comes first in `order_by`. |
| 230 |
PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3 |
| 231 |
// The given `property` is greater than or equal to the given `value`. |
| 232 |
// |
| 233 |
// Requires: |
| 234 |
// |
| 235 |
// * That `property` comes first in `order_by`. |
| 236 |
PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4 |
| 237 |
// The given `property` is equal to the given `value`. |
| 238 |
PropertyFilter_EQUAL PropertyFilter_Operator = 5 |
| 239 |
// The given `property` is equal to at least one value in the given array. |
| 240 |
// |
| 241 |
// Requires: |
| 242 |
// |
| 243 |
// - That `value` is a non-empty `ArrayValue`, subject to disjunction |
| 244 |
// limits. |
| 245 |
// - No `NOT_IN` is in the same query. |
| 246 |
PropertyFilter_IN PropertyFilter_Operator = 6 |
| 247 |
// The given `property` is not equal to the given `value`. |
| 248 |
// |
| 249 |
// Requires: |
| 250 |
// |
| 251 |
// * No other `NOT_EQUAL` or `NOT_IN` is in the same query. |
| 252 |
// * That `property` comes first in the `order_by`. |
| 253 |
PropertyFilter_NOT_EQUAL PropertyFilter_Operator = 9 |
| 254 |
// Limit the result set to the given entity and its descendants. |
| 255 |
// |
| 256 |
// Requires: |
| 257 |
// |
| 258 |
// * That `value` is an entity key. |
| 259 |
// * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter. |
| 260 |
PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11 |
| 261 |
// The value of the `property` is not in the given array. |
| 262 |
// |
| 263 |
// Requires: |
| 264 |
// |
| 265 |
// * That `value` is a non-empty `ArrayValue` with at most 10 values. |
| 266 |
// * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. |
| 267 |
// * That `field` comes first in the `order_by`. |
| 268 |
PropertyFilter_NOT_IN PropertyFilter_Operator = 13 |
| 269 |
) |
| 270 |
|
| 271 |
// Enum value maps for PropertyFilter_Operator. |
| 272 |
var ( |
| 273 |
PropertyFilter_Operator_name = map[int32]string{ |
| 274 |
0: "OPERATOR_UNSPECIFIED", |
| 275 |
1: "LESS_THAN", |
| 276 |
2: "LESS_THAN_OR_EQUAL", |
| 277 |
3: "GREATER_THAN", |
| 278 |
4: "GREATER_THAN_OR_EQUAL", |
| 279 |
5: "EQUAL", |
| 280 |
6: "IN", |
| 281 |
9: "NOT_EQUAL", |
| 282 |
11: "HAS_ANCESTOR", |
| 283 |
13: "NOT_IN", |
| 284 |
} |
| 285 |
PropertyFilter_Operator_value = map[string]int32{ |
| 286 |
"OPERATOR_UNSPECIFIED": 0, |
| 287 |
"LESS_THAN": 1, |
| 288 |
"LESS_THAN_OR_EQUAL": 2, |
| 289 |
"GREATER_THAN": 3, |
| 290 |
"GREATER_THAN_OR_EQUAL": 4, |
| 291 |
"EQUAL": 5, |
| 292 |
"IN": 6, |
| 293 |
"NOT_EQUAL": 9, |
| 294 |
"HAS_ANCESTOR": 11, |
| 295 |
"NOT_IN": 13, |
| 296 |
} |
| 297 |
) |
| 298 |
|
| 299 |
func (x PropertyFilter_Operator) Enum() *PropertyFilter_Operator { |
| 300 |
p := new(PropertyFilter_Operator) |
| 301 |
*p = x |
| 302 |
return p |
| 303 |
} |
| 304 |
|
| 305 |
func (x PropertyFilter_Operator) String() string { |
| 306 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 307 |
} |
| 308 |
|
| 309 |
func (PropertyFilter_Operator) Descriptor() protoreflect.EnumDescriptor { |
| 310 |
return file_google_datastore_v1_query_proto_enumTypes[3].Descriptor() |
| 311 |
} |
| 312 |
|
| 313 |
func (PropertyFilter_Operator) Type() protoreflect.EnumType { |
| 314 |
return &file_google_datastore_v1_query_proto_enumTypes[3] |
| 315 |
} |
| 316 |
|
| 317 |
func (x PropertyFilter_Operator) Number() protoreflect.EnumNumber { |
| 318 |
return protoreflect.EnumNumber(x) |
| 319 |
} |
| 320 |
|
| 321 |
// Deprecated: Use PropertyFilter_Operator.Descriptor instead. |
| 322 |
func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) { |
| 323 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{9, 0} |
| 324 |
} |
| 325 |
|
| 326 |
// The distance measure to use when comparing vectors. |
| 327 |
type FindNearest_DistanceMeasure int32 |
| 328 |
|
| 329 |
const ( |
| 330 |
// Should not be set. |
| 331 |
FindNearest_DISTANCE_MEASURE_UNSPECIFIED FindNearest_DistanceMeasure = 0 |
| 332 |
// Measures the EUCLIDEAN distance between the vectors. See |
| 333 |
// [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn |
| 334 |
// more. The resulting distance decreases the more similar two vectors are. |
| 335 |
FindNearest_EUCLIDEAN FindNearest_DistanceMeasure = 1 |
| 336 |
// COSINE distance compares vectors based on the angle between them, which |
| 337 |
// allows you to measure similarity that isn't based on the vectors |
| 338 |
// magnitude. We recommend using DOT_PRODUCT with unit normalized vectors |
| 339 |
// instead of COSINE distance, which is mathematically equivalent with |
| 340 |
// better performance. See [Cosine |
| 341 |
// Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn |
| 342 |
// more about COSINE similarity and COSINE distance. The resulting COSINE |
| 343 |
// distance decreases the more similar two vectors are. |
| 344 |
FindNearest_COSINE FindNearest_DistanceMeasure = 2 |
| 345 |
// Similar to cosine but is affected by the magnitude of the vectors. See |
| 346 |
// [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more. |
| 347 |
// The resulting distance increases the more similar two vectors are. |
| 348 |
FindNearest_DOT_PRODUCT FindNearest_DistanceMeasure = 3 |
| 349 |
) |
| 350 |
|
| 351 |
// Enum value maps for FindNearest_DistanceMeasure. |
| 352 |
var ( |
| 353 |
FindNearest_DistanceMeasure_name = map[int32]string{ |
| 354 |
0: "DISTANCE_MEASURE_UNSPECIFIED", |
| 355 |
1: "EUCLIDEAN", |
| 356 |
2: "COSINE", |
| 357 |
3: "DOT_PRODUCT", |
| 358 |
} |
| 359 |
FindNearest_DistanceMeasure_value = map[string]int32{ |
| 360 |
"DISTANCE_MEASURE_UNSPECIFIED": 0, |
| 361 |
"EUCLIDEAN": 1, |
| 362 |
"COSINE": 2, |
| 363 |
"DOT_PRODUCT": 3, |
| 364 |
} |
| 365 |
) |
| 366 |
|
| 367 |
func (x FindNearest_DistanceMeasure) Enum() *FindNearest_DistanceMeasure { |
| 368 |
p := new(FindNearest_DistanceMeasure) |
| 369 |
*p = x |
| 370 |
return p |
| 371 |
} |
| 372 |
|
| 373 |
func (x FindNearest_DistanceMeasure) String() string { |
| 374 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 375 |
} |
| 376 |
|
| 377 |
func (FindNearest_DistanceMeasure) Descriptor() protoreflect.EnumDescriptor { |
| 378 |
return file_google_datastore_v1_query_proto_enumTypes[4].Descriptor() |
| 379 |
} |
| 380 |
|
| 381 |
func (FindNearest_DistanceMeasure) Type() protoreflect.EnumType { |
| 382 |
return &file_google_datastore_v1_query_proto_enumTypes[4] |
| 383 |
} |
| 384 |
|
| 385 |
func (x FindNearest_DistanceMeasure) Number() protoreflect.EnumNumber { |
| 386 |
return protoreflect.EnumNumber(x) |
| 387 |
} |
| 388 |
|
| 389 |
// Deprecated: Use FindNearest_DistanceMeasure.Descriptor instead. |
| 390 |
func (FindNearest_DistanceMeasure) EnumDescriptor() ([]byte, []int) { |
| 391 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{10, 0} |
| 392 |
} |
| 393 |
|
| 394 |
// The possible values for the `more_results` field. |
| 395 |
type QueryResultBatch_MoreResultsType int32 |
| 396 |
|
| 397 |
const ( |
| 398 |
// Unspecified. This value is never used. |
| 399 |
QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0 |
| 400 |
// There may be additional batches to fetch from this query. |
| 401 |
QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1 |
| 402 |
// The query is finished, but there may be more results after the limit. |
| 403 |
QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2 |
| 404 |
// The query is finished, but there may be more results after the end |
| 405 |
// cursor. |
| 406 |
QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4 |
| 407 |
// The query is finished, and there are no more results. |
| 408 |
QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3 |
| 409 |
) |
| 410 |
|
| 411 |
// Enum value maps for QueryResultBatch_MoreResultsType. |
| 412 |
var ( |
| 413 |
QueryResultBatch_MoreResultsType_name = map[int32]string{ |
| 414 |
0: "MORE_RESULTS_TYPE_UNSPECIFIED", |
| 415 |
1: "NOT_FINISHED", |
| 416 |
2: "MORE_RESULTS_AFTER_LIMIT", |
| 417 |
4: "MORE_RESULTS_AFTER_CURSOR", |
| 418 |
3: "NO_MORE_RESULTS", |
| 419 |
} |
| 420 |
QueryResultBatch_MoreResultsType_value = map[string]int32{ |
| 421 |
"MORE_RESULTS_TYPE_UNSPECIFIED": 0, |
| 422 |
"NOT_FINISHED": 1, |
| 423 |
"MORE_RESULTS_AFTER_LIMIT": 2, |
| 424 |
"MORE_RESULTS_AFTER_CURSOR": 4, |
| 425 |
"NO_MORE_RESULTS": 3, |
| 426 |
} |
| 427 |
) |
| 428 |
|
| 429 |
func (x QueryResultBatch_MoreResultsType) Enum() *QueryResultBatch_MoreResultsType { |
| 430 |
p := new(QueryResultBatch_MoreResultsType) |
| 431 |
*p = x |
| 432 |
return p |
| 433 |
} |
| 434 |
|
| 435 |
func (x QueryResultBatch_MoreResultsType) String() string { |
| 436 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 437 |
} |
| 438 |
|
| 439 |
func (QueryResultBatch_MoreResultsType) Descriptor() protoreflect.EnumDescriptor { |
| 440 |
return file_google_datastore_v1_query_proto_enumTypes[5].Descriptor() |
| 441 |
} |
| 442 |
|
| 443 |
func (QueryResultBatch_MoreResultsType) Type() protoreflect.EnumType { |
| 444 |
return &file_google_datastore_v1_query_proto_enumTypes[5] |
| 445 |
} |
| 446 |
|
| 447 |
func (x QueryResultBatch_MoreResultsType) Number() protoreflect.EnumNumber { |
| 448 |
return protoreflect.EnumNumber(x) |
| 449 |
} |
| 450 |
|
| 451 |
// Deprecated: Use QueryResultBatch_MoreResultsType.Descriptor instead. |
| 452 |
func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int) { |
| 453 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{13, 0} |
| 454 |
} |
| 455 |
|
| 456 |
// The result of fetching an entity from Datastore. |
| 457 |
type EntityResult struct { |
| 458 |
state protoimpl.MessageState |
| 459 |
sizeCache protoimpl.SizeCache |
| 460 |
unknownFields protoimpl.UnknownFields |
| 461 |
|
| 462 |
// The resulting entity. |
| 463 |
Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` |
| 464 |
// The version of the entity, a strictly positive number that monotonically |
| 465 |
// increases with changes to the entity. |
| 466 |
// |
| 467 |
// This field is set for |
| 468 |
// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. |
| 469 |
// |
| 470 |
// For [missing][google.datastore.v1.LookupResponse.missing] entities in |
| 471 |
// `LookupResponse`, this is the version of the snapshot that was used to look |
| 472 |
// up the entity, and it is always set except for eventually consistent reads. |
| 473 |
Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` |
| 474 |
// The time at which the entity was created. |
| 475 |
// This field is set for |
| 476 |
// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. |
| 477 |
// If this entity is missing, this field will not be set. |
| 478 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 479 |
// The time at which the entity was last changed. |
| 480 |
// This field is set for |
| 481 |
// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. |
| 482 |
// If this entity is missing, this field will not be set. |
| 483 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| 484 |
// A cursor that points to the position after the result entity. |
| 485 |
// Set only when the `EntityResult` is part of a `QueryResultBatch` message. |
| 486 |
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` |
| 487 |
} |
| 488 |
|
| 489 |
func (x *EntityResult) Reset() { |
| 490 |
*x = EntityResult{} |
| 491 |
mi := &file_google_datastore_v1_query_proto_msgTypes[0] |
| 492 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 493 |
ms.StoreMessageInfo(mi) |
| 494 |
} |
| 495 |
|
| 496 |
func (x *EntityResult) String() string { |
| 497 |
return protoimpl.X.MessageStringOf(x) |
| 498 |
} |
| 499 |
|
| 500 |
func (*EntityResult) ProtoMessage() {} |
| 501 |
|
| 502 |
func (x *EntityResult) ProtoReflect() protoreflect.Message { |
| 503 |
mi := &file_google_datastore_v1_query_proto_msgTypes[0] |
| 504 |
if x != nil { |
| 505 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 506 |
if ms.LoadMessageInfo() == nil { |
| 507 |
ms.StoreMessageInfo(mi) |
| 508 |
} |
| 509 |
return ms |
| 510 |
} |
| 511 |
return mi.MessageOf(x) |
| 512 |
} |
| 513 |
|
| 514 |
// Deprecated: Use EntityResult.ProtoReflect.Descriptor instead. |
| 515 |
func (*EntityResult) Descriptor() ([]byte, []int) { |
| 516 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{0} |
| 517 |
} |
| 518 |
|
| 519 |
func (x *EntityResult) GetEntity() *Entity { |
| 520 |
if x != nil { |
| 521 |
return x.Entity |
| 522 |
} |
| 523 |
return nil |
| 524 |
} |
| 525 |
|
| 526 |
func (x *EntityResult) GetVersion() int64 { |
| 527 |
if x != nil { |
| 528 |
return x.Version |
| 529 |
} |
| 530 |
return 0 |
| 531 |
} |
| 532 |
|
| 533 |
func (x *EntityResult) GetCreateTime() *timestamppb.Timestamp { |
| 534 |
if x != nil { |
| 535 |
return x.CreateTime |
| 536 |
} |
| 537 |
return nil |
| 538 |
} |
| 539 |
|
| 540 |
func (x *EntityResult) GetUpdateTime() *timestamppb.Timestamp { |
| 541 |
if x != nil { |
| 542 |
return x.UpdateTime |
| 543 |
} |
| 544 |
return nil |
| 545 |
} |
| 546 |
|
| 547 |
func (x *EntityResult) GetCursor() []byte { |
| 548 |
if x != nil { |
| 549 |
return x.Cursor |
| 550 |
} |
| 551 |
return nil |
| 552 |
} |
| 553 |
|
| 554 |
// A query for entities. |
| 555 |
// |
| 556 |
// The query stages are executed in the following order: |
| 557 |
// 1. kind |
| 558 |
// 2. filter |
| 559 |
// 3. projection |
| 560 |
// 4. order + start_cursor + end_cursor |
| 561 |
// 5. offset |
| 562 |
// 6. limit |
| 563 |
// 7. find_nearest |
| 564 |
type Query struct { |
| 565 |
state protoimpl.MessageState |
| 566 |
sizeCache protoimpl.SizeCache |
| 567 |
unknownFields protoimpl.UnknownFields |
| 568 |
|
| 569 |
// The projection to return. Defaults to returning all properties. |
| 570 |
Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"` |
| 571 |
// The kinds to query (if empty, returns entities of all kinds). |
| 572 |
// Currently at most 1 kind may be specified. |
| 573 |
Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"` |
| 574 |
// The filter to apply. |
| 575 |
Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` |
| 576 |
// The order to apply to the query results (if empty, order is unspecified). |
| 577 |
Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"` |
| 578 |
// The properties to make distinct. The query results will contain the first |
| 579 |
// result for each distinct combination of values for the given properties |
| 580 |
// (if empty, all results are returned). |
| 581 |
// |
| 582 |
// Requires: |
| 583 |
// |
| 584 |
// * If `order` is specified, the set of distinct on properties must appear |
| 585 |
// before the non-distinct on properties in `order`. |
| 586 |
DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"` |
| 587 |
// A starting point for the query results. Query cursors are |
| 588 |
// returned in query result batches and |
| 589 |
// [can only be used to continue the same |
| 590 |
// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). |
| 591 |
StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"` |
| 592 |
// An ending point for the query results. Query cursors are |
| 593 |
// returned in query result batches and |
| 594 |
// [can only be used to limit the same |
| 595 |
// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). |
| 596 |
EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"` |
| 597 |
// The number of results to skip. Applies before limit, but after all other |
| 598 |
// constraints. Optional. Must be >= 0 if specified. |
| 599 |
Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` |
| 600 |
// The maximum number of results to return. Applies after all other |
| 601 |
// constraints. Optional. |
| 602 |
// Unspecified is interpreted as no limit. |
| 603 |
// Must be >= 0 if specified. |
| 604 |
Limit *wrapperspb.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"` |
| 605 |
// Optional. A potential Nearest Neighbors Search. |
| 606 |
// |
| 607 |
// Applies after all other filters and ordering. |
| 608 |
// |
| 609 |
// Finds the closest vector embeddings to the given query vector. |
| 610 |
FindNearest *FindNearest `protobuf:"bytes,13,opt,name=find_nearest,json=findNearest,proto3" json:"find_nearest,omitempty"` |
| 611 |
} |
| 612 |
|
| 613 |
func (x *Query) Reset() { |
| 614 |
*x = Query{} |
| 615 |
mi := &file_google_datastore_v1_query_proto_msgTypes[1] |
| 616 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 617 |
ms.StoreMessageInfo(mi) |
| 618 |
} |
| 619 |
|
| 620 |
func (x *Query) String() string { |
| 621 |
return protoimpl.X.MessageStringOf(x) |
| 622 |
} |
| 623 |
|
| 624 |
func (*Query) ProtoMessage() {} |
| 625 |
|
| 626 |
func (x *Query) ProtoReflect() protoreflect.Message { |
| 627 |
mi := &file_google_datastore_v1_query_proto_msgTypes[1] |
| 628 |
if x != nil { |
| 629 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 630 |
if ms.LoadMessageInfo() == nil { |
| 631 |
ms.StoreMessageInfo(mi) |
| 632 |
} |
| 633 |
return ms |
| 634 |
} |
| 635 |
return mi.MessageOf(x) |
| 636 |
} |
| 637 |
|
| 638 |
// Deprecated: Use Query.ProtoReflect.Descriptor instead. |
| 639 |
func (*Query) Descriptor() ([]byte, []int) { |
| 640 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{1} |
| 641 |
} |
| 642 |
|
| 643 |
func (x *Query) GetProjection() []*Projection { |
| 644 |
if x != nil { |
| 645 |
return x.Projection |
| 646 |
} |
| 647 |
return nil |
| 648 |
} |
| 649 |
|
| 650 |
func (x *Query) GetKind() []*KindExpression { |
| 651 |
if x != nil { |
| 652 |
return x.Kind |
| 653 |
} |
| 654 |
return nil |
| 655 |
} |
| 656 |
|
| 657 |
func (x *Query) GetFilter() *Filter { |
| 658 |
if x != nil { |
| 659 |
return x.Filter |
| 660 |
} |
| 661 |
return nil |
| 662 |
} |
| 663 |
|
| 664 |
func (x *Query) GetOrder() []*PropertyOrder { |
| 665 |
if x != nil { |
| 666 |
return x.Order |
| 667 |
} |
| 668 |
return nil |
| 669 |
} |
| 670 |
|
| 671 |
func (x *Query) GetDistinctOn() []*PropertyReference { |
| 672 |
if x != nil { |
| 673 |
return x.DistinctOn |
| 674 |
} |
| 675 |
return nil |
| 676 |
} |
| 677 |
|
| 678 |
func (x *Query) GetStartCursor() []byte { |
| 679 |
if x != nil { |
| 680 |
return x.StartCursor |
| 681 |
} |
| 682 |
return nil |
| 683 |
} |
| 684 |
|
| 685 |
func (x *Query) GetEndCursor() []byte { |
| 686 |
if x != nil { |
| 687 |
return x.EndCursor |
| 688 |
} |
| 689 |
return nil |
| 690 |
} |
| 691 |
|
| 692 |
func (x *Query) GetOffset() int32 { |
| 693 |
if x != nil { |
| 694 |
return x.Offset |
| 695 |
} |
| 696 |
return 0 |
| 697 |
} |
| 698 |
|
| 699 |
func (x *Query) GetLimit() *wrapperspb.Int32Value { |
| 700 |
if x != nil { |
| 701 |
return x.Limit |
| 702 |
} |
| 703 |
return nil |
| 704 |
} |
| 705 |
|
| 706 |
func (x *Query) GetFindNearest() *FindNearest { |
| 707 |
if x != nil { |
| 708 |
return x.FindNearest |
| 709 |
} |
| 710 |
return nil |
| 711 |
} |
| 712 |
|
| 713 |
// Datastore query for running an aggregation over a |
| 714 |
// [Query][google.datastore.v1.Query]. |
| 715 |
type AggregationQuery struct { |
| 716 |
state protoimpl.MessageState |
| 717 |
sizeCache protoimpl.SizeCache |
| 718 |
unknownFields protoimpl.UnknownFields |
| 719 |
|
| 720 |
// The base query to aggregate over. |
| 721 |
// |
| 722 |
// Types that are assignable to QueryType: |
| 723 |
// |
| 724 |
// *AggregationQuery_NestedQuery |
| 725 |
QueryType isAggregationQuery_QueryType `protobuf_oneof:"query_type"` |
| 726 |
// Optional. Series of aggregations to apply over the results of the |
| 727 |
// `nested_query`. |
| 728 |
// |
| 729 |
// Requires: |
| 730 |
// |
| 731 |
// * A minimum of one and maximum of five aggregations per query. |
| 732 |
Aggregations []*AggregationQuery_Aggregation `protobuf:"bytes,3,rep,name=aggregations,proto3" json:"aggregations,omitempty"` |
| 733 |
} |
| 734 |
|
| 735 |
func (x *AggregationQuery) Reset() { |
| 736 |
*x = AggregationQuery{} |
| 737 |
mi := &file_google_datastore_v1_query_proto_msgTypes[2] |
| 738 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 739 |
ms.StoreMessageInfo(mi) |
| 740 |
} |
| 741 |
|
| 742 |
func (x *AggregationQuery) String() string { |
| 743 |
return protoimpl.X.MessageStringOf(x) |
| 744 |
} |
| 745 |
|
| 746 |
func (*AggregationQuery) ProtoMessage() {} |
| 747 |
|
| 748 |
func (x *AggregationQuery) ProtoReflect() protoreflect.Message { |
| 749 |
mi := &file_google_datastore_v1_query_proto_msgTypes[2] |
| 750 |
if x != nil { |
| 751 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 752 |
if ms.LoadMessageInfo() == nil { |
| 753 |
ms.StoreMessageInfo(mi) |
| 754 |
} |
| 755 |
return ms |
| 756 |
} |
| 757 |
return mi.MessageOf(x) |
| 758 |
} |
| 759 |
|
| 760 |
// Deprecated: Use AggregationQuery.ProtoReflect.Descriptor instead. |
| 761 |
func (*AggregationQuery) Descriptor() ([]byte, []int) { |
| 762 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{2} |
| 763 |
} |
| 764 |
|
| 765 |
func (m *AggregationQuery) GetQueryType() isAggregationQuery_QueryType { |
| 766 |
if m != nil { |
| 767 |
return m.QueryType |
| 768 |
} |
| 769 |
return nil |
| 770 |
} |
| 771 |
|
| 772 |
func (x *AggregationQuery) GetNestedQuery() *Query { |
| 773 |
if x, ok := x.GetQueryType().(*AggregationQuery_NestedQuery); ok { |
| 774 |
return x.NestedQuery |
| 775 |
} |
| 776 |
return nil |
| 777 |
} |
| 778 |
|
| 779 |
func (x *AggregationQuery) GetAggregations() []*AggregationQuery_Aggregation { |
| 780 |
if x != nil { |
| 781 |
return x.Aggregations |
| 782 |
} |
| 783 |
return nil |
| 784 |
} |
| 785 |
|
| 786 |
type isAggregationQuery_QueryType interface { |
| 787 |
isAggregationQuery_QueryType() |
| 788 |
} |
| 789 |
|
| 790 |
type AggregationQuery_NestedQuery struct { |
| 791 |
// Nested query for aggregation |
| 792 |
NestedQuery *Query `protobuf:"bytes,1,opt,name=nested_query,json=nestedQuery,proto3,oneof"` |
| 793 |
} |
| 794 |
|
| 795 |
func (*AggregationQuery_NestedQuery) isAggregationQuery_QueryType() {} |
| 796 |
|
| 797 |
// A representation of a kind. |
| 798 |
type KindExpression struct { |
| 799 |
state protoimpl.MessageState |
| 800 |
sizeCache protoimpl.SizeCache |
| 801 |
unknownFields protoimpl.UnknownFields |
| 802 |
|
| 803 |
// The name of the kind. |
| 804 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 805 |
} |
| 806 |
|
| 807 |
func (x *KindExpression) Reset() { |
| 808 |
*x = KindExpression{} |
| 809 |
mi := &file_google_datastore_v1_query_proto_msgTypes[3] |
| 810 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 811 |
ms.StoreMessageInfo(mi) |
| 812 |
} |
| 813 |
|
| 814 |
func (x *KindExpression) String() string { |
| 815 |
return protoimpl.X.MessageStringOf(x) |
| 816 |
} |
| 817 |
|
| 818 |
func (*KindExpression) ProtoMessage() {} |
| 819 |
|
| 820 |
func (x *KindExpression) ProtoReflect() protoreflect.Message { |
| 821 |
mi := &file_google_datastore_v1_query_proto_msgTypes[3] |
| 822 |
if x != nil { |
| 823 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 824 |
if ms.LoadMessageInfo() == nil { |
| 825 |
ms.StoreMessageInfo(mi) |
| 826 |
} |
| 827 |
return ms |
| 828 |
} |
| 829 |
return mi.MessageOf(x) |
| 830 |
} |
| 831 |
|
| 832 |
// Deprecated: Use KindExpression.ProtoReflect.Descriptor instead. |
| 833 |
func (*KindExpression) Descriptor() ([]byte, []int) { |
| 834 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{3} |
| 835 |
} |
| 836 |
|
| 837 |
func (x *KindExpression) GetName() string { |
| 838 |
if x != nil { |
| 839 |
return x.Name |
| 840 |
} |
| 841 |
return "" |
| 842 |
} |
| 843 |
|
| 844 |
// A reference to a property relative to the kind expressions. |
| 845 |
type PropertyReference struct { |
| 846 |
state protoimpl.MessageState |
| 847 |
sizeCache protoimpl.SizeCache |
| 848 |
unknownFields protoimpl.UnknownFields |
| 849 |
|
| 850 |
// A reference to a property. |
| 851 |
// |
| 852 |
// Requires: |
| 853 |
// |
| 854 |
// * MUST be a dot-delimited (`.`) string of segments, where each segment |
| 855 |
// conforms to [entity property name][google.datastore.v1.Entity.properties] |
| 856 |
// limitations. |
| 857 |
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 858 |
} |
| 859 |
|
| 860 |
func (x *PropertyReference) Reset() { |
| 861 |
*x = PropertyReference{} |
| 862 |
mi := &file_google_datastore_v1_query_proto_msgTypes[4] |
| 863 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 864 |
ms.StoreMessageInfo(mi) |
| 865 |
} |
| 866 |
|
| 867 |
func (x *PropertyReference) String() string { |
| 868 |
return protoimpl.X.MessageStringOf(x) |
| 869 |
} |
| 870 |
|
| 871 |
func (*PropertyReference) ProtoMessage() {} |
| 872 |
|
| 873 |
func (x *PropertyReference) ProtoReflect() protoreflect.Message { |
| 874 |
mi := &file_google_datastore_v1_query_proto_msgTypes[4] |
| 875 |
if x != nil { |
| 876 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 877 |
if ms.LoadMessageInfo() == nil { |
| 878 |
ms.StoreMessageInfo(mi) |
| 879 |
} |
| 880 |
return ms |
| 881 |
} |
| 882 |
return mi.MessageOf(x) |
| 883 |
} |
| 884 |
|
| 885 |
// Deprecated: Use PropertyReference.ProtoReflect.Descriptor instead. |
| 886 |
func (*PropertyReference) Descriptor() ([]byte, []int) { |
| 887 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{4} |
| 888 |
} |
| 889 |
|
| 890 |
func (x *PropertyReference) GetName() string { |
| 891 |
if x != nil { |
| 892 |
return x.Name |
| 893 |
} |
| 894 |
return "" |
| 895 |
} |
| 896 |
|
| 897 |
// A representation of a property in a projection. |
| 898 |
type Projection struct { |
| 899 |
state protoimpl.MessageState |
| 900 |
sizeCache protoimpl.SizeCache |
| 901 |
unknownFields protoimpl.UnknownFields |
| 902 |
|
| 903 |
// The property to project. |
| 904 |
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` |
| 905 |
} |
| 906 |
|
| 907 |
func (x *Projection) Reset() { |
| 908 |
*x = Projection{} |
| 909 |
mi := &file_google_datastore_v1_query_proto_msgTypes[5] |
| 910 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 911 |
ms.StoreMessageInfo(mi) |
| 912 |
} |
| 913 |
|
| 914 |
func (x *Projection) String() string { |
| 915 |
return protoimpl.X.MessageStringOf(x) |
| 916 |
} |
| 917 |
|
| 918 |
func (*Projection) ProtoMessage() {} |
| 919 |
|
| 920 |
func (x *Projection) ProtoReflect() protoreflect.Message { |
| 921 |
mi := &file_google_datastore_v1_query_proto_msgTypes[5] |
| 922 |
if x != nil { |
| 923 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 924 |
if ms.LoadMessageInfo() == nil { |
| 925 |
ms.StoreMessageInfo(mi) |
| 926 |
} |
| 927 |
return ms |
| 928 |
} |
| 929 |
return mi.MessageOf(x) |
| 930 |
} |
| 931 |
|
| 932 |
// Deprecated: Use Projection.ProtoReflect.Descriptor instead. |
| 933 |
func (*Projection) Descriptor() ([]byte, []int) { |
| 934 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{5} |
| 935 |
} |
| 936 |
|
| 937 |
func (x *Projection) GetProperty() *PropertyReference { |
| 938 |
if x != nil { |
| 939 |
return x.Property |
| 940 |
} |
| 941 |
return nil |
| 942 |
} |
| 943 |
|
| 944 |
// The desired order for a specific property. |
| 945 |
type PropertyOrder struct { |
| 946 |
state protoimpl.MessageState |
| 947 |
sizeCache protoimpl.SizeCache |
| 948 |
unknownFields protoimpl.UnknownFields |
| 949 |
|
| 950 |
// The property to order by. |
| 951 |
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` |
| 952 |
// The direction to order by. Defaults to `ASCENDING`. |
| 953 |
Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1.PropertyOrder_Direction" json:"direction,omitempty"` |
| 954 |
} |
| 955 |
|
| 956 |
func (x *PropertyOrder) Reset() { |
| 957 |
*x = PropertyOrder{} |
| 958 |
mi := &file_google_datastore_v1_query_proto_msgTypes[6] |
| 959 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 960 |
ms.StoreMessageInfo(mi) |
| 961 |
} |
| 962 |
|
| 963 |
func (x *PropertyOrder) String() string { |
| 964 |
return protoimpl.X.MessageStringOf(x) |
| 965 |
} |
| 966 |
|
| 967 |
func (*PropertyOrder) ProtoMessage() {} |
| 968 |
|
| 969 |
func (x *PropertyOrder) ProtoReflect() protoreflect.Message { |
| 970 |
mi := &file_google_datastore_v1_query_proto_msgTypes[6] |
| 971 |
if x != nil { |
| 972 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 973 |
if ms.LoadMessageInfo() == nil { |
| 974 |
ms.StoreMessageInfo(mi) |
| 975 |
} |
| 976 |
return ms |
| 977 |
} |
| 978 |
return mi.MessageOf(x) |
| 979 |
} |
| 980 |
|
| 981 |
// Deprecated: Use PropertyOrder.ProtoReflect.Descriptor instead. |
| 982 |
func (*PropertyOrder) Descriptor() ([]byte, []int) { |
| 983 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{6} |
| 984 |
} |
| 985 |
|
| 986 |
func (x *PropertyOrder) GetProperty() *PropertyReference { |
| 987 |
if x != nil { |
| 988 |
return x.Property |
| 989 |
} |
| 990 |
return nil |
| 991 |
} |
| 992 |
|
| 993 |
func (x *PropertyOrder) GetDirection() PropertyOrder_Direction { |
| 994 |
if x != nil { |
| 995 |
return x.Direction |
| 996 |
} |
| 997 |
return PropertyOrder_DIRECTION_UNSPECIFIED |
| 998 |
} |
| 999 |
|
| 1000 |
// A holder for any type of filter. |
| 1001 |
type Filter struct { |
| 1002 |
state protoimpl.MessageState |
| 1003 |
sizeCache protoimpl.SizeCache |
| 1004 |
unknownFields protoimpl.UnknownFields |
| 1005 |
|
| 1006 |
// The type of filter. |
| 1007 |
// |
| 1008 |
// Types that are assignable to FilterType: |
| 1009 |
// |
| 1010 |
// *Filter_CompositeFilter |
| 1011 |
// *Filter_PropertyFilter |
| 1012 |
FilterType isFilter_FilterType `protobuf_oneof:"filter_type"` |
| 1013 |
} |
| 1014 |
|
| 1015 |
func (x *Filter) Reset() { |
| 1016 |
*x = Filter{} |
| 1017 |
mi := &file_google_datastore_v1_query_proto_msgTypes[7] |
| 1018 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1019 |
ms.StoreMessageInfo(mi) |
| 1020 |
} |
| 1021 |
|
| 1022 |
func (x *Filter) String() string { |
| 1023 |
return protoimpl.X.MessageStringOf(x) |
| 1024 |
} |
| 1025 |
|
| 1026 |
func (*Filter) ProtoMessage() {} |
| 1027 |
|
| 1028 |
func (x *Filter) ProtoReflect() protoreflect.Message { |
| 1029 |
mi := &file_google_datastore_v1_query_proto_msgTypes[7] |
| 1030 |
if x != nil { |
| 1031 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1032 |
if ms.LoadMessageInfo() == nil { |
| 1033 |
ms.StoreMessageInfo(mi) |
| 1034 |
} |
| 1035 |
return ms |
| 1036 |
} |
| 1037 |
return mi.MessageOf(x) |
| 1038 |
} |
| 1039 |
|
| 1040 |
// Deprecated: Use Filter.ProtoReflect.Descriptor instead. |
| 1041 |
func (*Filter) Descriptor() ([]byte, []int) { |
| 1042 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{7} |
| 1043 |
} |
| 1044 |
|
| 1045 |
func (m *Filter) GetFilterType() isFilter_FilterType { |
| 1046 |
if m != nil { |
| 1047 |
return m.FilterType |
| 1048 |
} |
| 1049 |
return nil |
| 1050 |
} |
| 1051 |
|
| 1052 |
func (x *Filter) GetCompositeFilter() *CompositeFilter { |
| 1053 |
if x, ok := x.GetFilterType().(*Filter_CompositeFilter); ok { |
| 1054 |
return x.CompositeFilter |
| 1055 |
} |
| 1056 |
return nil |
| 1057 |
} |
| 1058 |
|
| 1059 |
func (x *Filter) GetPropertyFilter() *PropertyFilter { |
| 1060 |
if x, ok := x.GetFilterType().(*Filter_PropertyFilter); ok { |
| 1061 |
return x.PropertyFilter |
| 1062 |
} |
| 1063 |
return nil |
| 1064 |
} |
| 1065 |
|
| 1066 |
type isFilter_FilterType interface { |
| 1067 |
isFilter_FilterType() |
| 1068 |
} |
| 1069 |
|
| 1070 |
type Filter_CompositeFilter struct { |
| 1071 |
// A composite filter. |
| 1072 |
CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"` |
| 1073 |
} |
| 1074 |
|
| 1075 |
type Filter_PropertyFilter struct { |
| 1076 |
// A filter on a property. |
| 1077 |
PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"` |
| 1078 |
} |
| 1079 |
|
| 1080 |
func (*Filter_CompositeFilter) isFilter_FilterType() {} |
| 1081 |
|
| 1082 |
func (*Filter_PropertyFilter) isFilter_FilterType() {} |
| 1083 |
|
| 1084 |
// A filter that merges multiple other filters using the given operator. |
| 1085 |
type CompositeFilter struct { |
| 1086 |
state protoimpl.MessageState |
| 1087 |
sizeCache protoimpl.SizeCache |
| 1088 |
unknownFields protoimpl.UnknownFields |
| 1089 |
|
| 1090 |
// The operator for combining multiple filters. |
| 1091 |
Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1.CompositeFilter_Operator" json:"op,omitempty"` |
| 1092 |
// The list of filters to combine. |
| 1093 |
// |
| 1094 |
// Requires: |
| 1095 |
// |
| 1096 |
// * At least one filter is present. |
| 1097 |
Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` |
| 1098 |
} |
| 1099 |
|
| 1100 |
func (x *CompositeFilter) Reset() { |
| 1101 |
*x = CompositeFilter{} |
| 1102 |
mi := &file_google_datastore_v1_query_proto_msgTypes[8] |
| 1103 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1104 |
ms.StoreMessageInfo(mi) |
| 1105 |
} |
| 1106 |
|
| 1107 |
func (x *CompositeFilter) String() string { |
| 1108 |
return protoimpl.X.MessageStringOf(x) |
| 1109 |
} |
| 1110 |
|
| 1111 |
func (*CompositeFilter) ProtoMessage() {} |
| 1112 |
|
| 1113 |
func (x *CompositeFilter) ProtoReflect() protoreflect.Message { |
| 1114 |
mi := &file_google_datastore_v1_query_proto_msgTypes[8] |
| 1115 |
if x != nil { |
| 1116 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1117 |
if ms.LoadMessageInfo() == nil { |
| 1118 |
ms.StoreMessageInfo(mi) |
| 1119 |
} |
| 1120 |
return ms |
| 1121 |
} |
| 1122 |
return mi.MessageOf(x) |
| 1123 |
} |
| 1124 |
|
| 1125 |
// Deprecated: Use CompositeFilter.ProtoReflect.Descriptor instead. |
| 1126 |
func (*CompositeFilter) Descriptor() ([]byte, []int) { |
| 1127 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{8} |
| 1128 |
} |
| 1129 |
|
| 1130 |
func (x *CompositeFilter) GetOp() CompositeFilter_Operator { |
| 1131 |
if x != nil { |
| 1132 |
return x.Op |
| 1133 |
} |
| 1134 |
return CompositeFilter_OPERATOR_UNSPECIFIED |
| 1135 |
} |
| 1136 |
|
| 1137 |
func (x *CompositeFilter) GetFilters() []*Filter { |
| 1138 |
if x != nil { |
| 1139 |
return x.Filters |
| 1140 |
} |
| 1141 |
return nil |
| 1142 |
} |
| 1143 |
|
| 1144 |
// A filter on a specific property. |
| 1145 |
type PropertyFilter struct { |
| 1146 |
state protoimpl.MessageState |
| 1147 |
sizeCache protoimpl.SizeCache |
| 1148 |
unknownFields protoimpl.UnknownFields |
| 1149 |
|
| 1150 |
// The property to filter by. |
| 1151 |
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` |
| 1152 |
// The operator to filter by. |
| 1153 |
Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1.PropertyFilter_Operator" json:"op,omitempty"` |
| 1154 |
// The value to compare the property to. |
| 1155 |
Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` |
| 1156 |
} |
| 1157 |
|
| 1158 |
func (x *PropertyFilter) Reset() { |
| 1159 |
*x = PropertyFilter{} |
| 1160 |
mi := &file_google_datastore_v1_query_proto_msgTypes[9] |
| 1161 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1162 |
ms.StoreMessageInfo(mi) |
| 1163 |
} |
| 1164 |
|
| 1165 |
func (x *PropertyFilter) String() string { |
| 1166 |
return protoimpl.X.MessageStringOf(x) |
| 1167 |
} |
| 1168 |
|
| 1169 |
func (*PropertyFilter) ProtoMessage() {} |
| 1170 |
|
| 1171 |
func (x *PropertyFilter) ProtoReflect() protoreflect.Message { |
| 1172 |
mi := &file_google_datastore_v1_query_proto_msgTypes[9] |
| 1173 |
if x != nil { |
| 1174 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1175 |
if ms.LoadMessageInfo() == nil { |
| 1176 |
ms.StoreMessageInfo(mi) |
| 1177 |
} |
| 1178 |
return ms |
| 1179 |
} |
| 1180 |
return mi.MessageOf(x) |
| 1181 |
} |
| 1182 |
|
| 1183 |
// Deprecated: Use PropertyFilter.ProtoReflect.Descriptor instead. |
| 1184 |
func (*PropertyFilter) Descriptor() ([]byte, []int) { |
| 1185 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{9} |
| 1186 |
} |
| 1187 |
|
| 1188 |
func (x *PropertyFilter) GetProperty() *PropertyReference { |
| 1189 |
if x != nil { |
| 1190 |
return x.Property |
| 1191 |
} |
| 1192 |
return nil |
| 1193 |
} |
| 1194 |
|
| 1195 |
func (x *PropertyFilter) GetOp() PropertyFilter_Operator { |
| 1196 |
if x != nil { |
| 1197 |
return x.Op |
| 1198 |
} |
| 1199 |
return PropertyFilter_OPERATOR_UNSPECIFIED |
| 1200 |
} |
| 1201 |
|
| 1202 |
func (x *PropertyFilter) GetValue() *Value { |
| 1203 |
if x != nil { |
| 1204 |
return x.Value |
| 1205 |
} |
| 1206 |
return nil |
| 1207 |
} |
| 1208 |
|
| 1209 |
// Nearest Neighbors search config. The ordering provided by FindNearest |
| 1210 |
// supersedes the order_by stage. If multiple documents have the same vector |
| 1211 |
// distance, the returned document order is not guaranteed to be stable between |
| 1212 |
// queries. |
| 1213 |
type FindNearest struct { |
| 1214 |
state protoimpl.MessageState |
| 1215 |
sizeCache protoimpl.SizeCache |
| 1216 |
unknownFields protoimpl.UnknownFields |
| 1217 |
|
| 1218 |
// Required. An indexed vector property to search upon. Only documents which |
| 1219 |
// contain vectors whose dimensionality match the query_vector can be |
| 1220 |
// returned. |
| 1221 |
VectorProperty *PropertyReference `protobuf:"bytes,1,opt,name=vector_property,json=vectorProperty,proto3" json:"vector_property,omitempty"` |
| 1222 |
// Required. The query vector that we are searching on. Must be a vector of no |
| 1223 |
// more than 2048 dimensions. |
| 1224 |
QueryVector *Value `protobuf:"bytes,2,opt,name=query_vector,json=queryVector,proto3" json:"query_vector,omitempty"` |
| 1225 |
// Required. The Distance Measure to use, required. |
| 1226 |
DistanceMeasure FindNearest_DistanceMeasure `protobuf:"varint,3,opt,name=distance_measure,json=distanceMeasure,proto3,enum=google.datastore.v1.FindNearest_DistanceMeasure" json:"distance_measure,omitempty"` |
| 1227 |
// Required. The number of nearest neighbors to return. Must be a positive |
| 1228 |
// integer of no more than 100. |
| 1229 |
Limit *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=limit,proto3" json:"limit,omitempty"` |
| 1230 |
// Optional. Optional name of the field to output the result of the vector |
| 1231 |
// distance calculation. Must conform to [entity |
| 1232 |
// property][google.datastore.v1.Entity.properties] limitations. |
| 1233 |
DistanceResultProperty string `protobuf:"bytes,5,opt,name=distance_result_property,json=distanceResultProperty,proto3" json:"distance_result_property,omitempty"` |
| 1234 |
// Optional. Option to specify a threshold for which no less similar documents |
| 1235 |
// will be returned. The behavior of the specified `distance_measure` will |
| 1236 |
// affect the meaning of the distance threshold. Since DOT_PRODUCT distances |
| 1237 |
// increase when the vectors are more similar, the comparison is inverted. |
| 1238 |
// |
| 1239 |
// For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold |
| 1240 |
// For DOT_PRODUCT: WHERE distance >= distance_threshold |
| 1241 |
DistanceThreshold *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=distance_threshold,json=distanceThreshold,proto3" json:"distance_threshold,omitempty"` |
| 1242 |
} |
| 1243 |
|
| 1244 |
func (x *FindNearest) Reset() { |
| 1245 |
*x = FindNearest{} |
| 1246 |
mi := &file_google_datastore_v1_query_proto_msgTypes[10] |
| 1247 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1248 |
ms.StoreMessageInfo(mi) |
| 1249 |
} |
| 1250 |
|
| 1251 |
func (x *FindNearest) String() string { |
| 1252 |
return protoimpl.X.MessageStringOf(x) |
| 1253 |
} |
| 1254 |
|
| 1255 |
func (*FindNearest) ProtoMessage() {} |
| 1256 |
|
| 1257 |
func (x *FindNearest) ProtoReflect() protoreflect.Message { |
| 1258 |
mi := &file_google_datastore_v1_query_proto_msgTypes[10] |
| 1259 |
if x != nil { |
| 1260 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1261 |
if ms.LoadMessageInfo() == nil { |
| 1262 |
ms.StoreMessageInfo(mi) |
| 1263 |
} |
| 1264 |
return ms |
| 1265 |
} |
| 1266 |
return mi.MessageOf(x) |
| 1267 |
} |
| 1268 |
|
| 1269 |
// Deprecated: Use FindNearest.ProtoReflect.Descriptor instead. |
| 1270 |
func (*FindNearest) Descriptor() ([]byte, []int) { |
| 1271 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{10} |
| 1272 |
} |
| 1273 |
|
| 1274 |
func (x *FindNearest) GetVectorProperty() *PropertyReference { |
| 1275 |
if x != nil { |
| 1276 |
return x.VectorProperty |
| 1277 |
} |
| 1278 |
return nil |
| 1279 |
} |
| 1280 |
|
| 1281 |
func (x *FindNearest) GetQueryVector() *Value { |
| 1282 |
if x != nil { |
| 1283 |
return x.QueryVector |
| 1284 |
} |
| 1285 |
return nil |
| 1286 |
} |
| 1287 |
|
| 1288 |
func (x *FindNearest) GetDistanceMeasure() FindNearest_DistanceMeasure { |
| 1289 |
if x != nil { |
| 1290 |
return x.DistanceMeasure |
| 1291 |
} |
| 1292 |
return FindNearest_DISTANCE_MEASURE_UNSPECIFIED |
| 1293 |
} |
| 1294 |
|
| 1295 |
func (x *FindNearest) GetLimit() *wrapperspb.Int32Value { |
| 1296 |
if x != nil { |
| 1297 |
return x.Limit |
| 1298 |
} |
| 1299 |
return nil |
| 1300 |
} |
| 1301 |
|
| 1302 |
func (x *FindNearest) GetDistanceResultProperty() string { |
| 1303 |
if x != nil { |
| 1304 |
return x.DistanceResultProperty |
| 1305 |
} |
| 1306 |
return "" |
| 1307 |
} |
| 1308 |
|
| 1309 |
func (x *FindNearest) GetDistanceThreshold() *wrapperspb.DoubleValue { |
| 1310 |
if x != nil { |
| 1311 |
return x.DistanceThreshold |
| 1312 |
} |
| 1313 |
return nil |
| 1314 |
} |
| 1315 |
|
| 1316 |
// A [GQL |
| 1317 |
// query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). |
| 1318 |
type GqlQuery struct { |
| 1319 |
state protoimpl.MessageState |
| 1320 |
sizeCache protoimpl.SizeCache |
| 1321 |
unknownFields protoimpl.UnknownFields |
| 1322 |
|
| 1323 |
// A string of the format described |
| 1324 |
// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). |
| 1325 |
QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"` |
| 1326 |
// When false, the query string must not contain any literals and instead must |
| 1327 |
// bind all values. For example, |
| 1328 |
// `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while |
| 1329 |
// `SELECT * FROM Kind WHERE a = @value` is. |
| 1330 |
AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"` |
| 1331 |
// For each non-reserved named binding site in the query string, there must be |
| 1332 |
// a named parameter with that name, but not necessarily the inverse. |
| 1333 |
// |
| 1334 |
// Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex |
| 1335 |
// `__.*__`, and must not be `""`. |
| 1336 |
NamedBindings map[string]*GqlQueryParameter `protobuf:"bytes,5,rep,name=named_bindings,json=namedBindings,proto3" json:"named_bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 1337 |
// Numbered binding site @1 references the first numbered parameter, |
| 1338 |
// effectively using 1-based indexing, rather than the usual 0. |
| 1339 |
// |
| 1340 |
// For each binding site numbered i in `query_string`, there must be an i-th |
| 1341 |
// numbered parameter. The inverse must also be true. |
| 1342 |
PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"` |
| 1343 |
} |
| 1344 |
|
| 1345 |
func (x *GqlQuery) Reset() { |
| 1346 |
*x = GqlQuery{} |
| 1347 |
mi := &file_google_datastore_v1_query_proto_msgTypes[11] |
| 1348 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1349 |
ms.StoreMessageInfo(mi) |
| 1350 |
} |
| 1351 |
|
| 1352 |
func (x *GqlQuery) String() string { |
| 1353 |
return protoimpl.X.MessageStringOf(x) |
| 1354 |
} |
| 1355 |
|
| 1356 |
func (*GqlQuery) ProtoMessage() {} |
| 1357 |
|
| 1358 |
func (x *GqlQuery) ProtoReflect() protoreflect.Message { |
| 1359 |
mi := &file_google_datastore_v1_query_proto_msgTypes[11] |
| 1360 |
if x != nil { |
| 1361 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1362 |
if ms.LoadMessageInfo() == nil { |
| 1363 |
ms.StoreMessageInfo(mi) |
| 1364 |
} |
| 1365 |
return ms |
| 1366 |
} |
| 1367 |
return mi.MessageOf(x) |
| 1368 |
} |
| 1369 |
|
| 1370 |
// Deprecated: Use GqlQuery.ProtoReflect.Descriptor instead. |
| 1371 |
func (*GqlQuery) Descriptor() ([]byte, []int) { |
| 1372 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{11} |
| 1373 |
} |
| 1374 |
|
| 1375 |
func (x *GqlQuery) GetQueryString() string { |
| 1376 |
if x != nil { |
| 1377 |
return x.QueryString |
| 1378 |
} |
| 1379 |
return "" |
| 1380 |
} |
| 1381 |
|
| 1382 |
func (x *GqlQuery) GetAllowLiterals() bool { |
| 1383 |
if x != nil { |
| 1384 |
return x.AllowLiterals |
| 1385 |
} |
| 1386 |
return false |
| 1387 |
} |
| 1388 |
|
| 1389 |
func (x *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter { |
| 1390 |
if x != nil { |
| 1391 |
return x.NamedBindings |
| 1392 |
} |
| 1393 |
return nil |
| 1394 |
} |
| 1395 |
|
| 1396 |
func (x *GqlQuery) GetPositionalBindings() []*GqlQueryParameter { |
| 1397 |
if x != nil { |
| 1398 |
return x.PositionalBindings |
| 1399 |
} |
| 1400 |
return nil |
| 1401 |
} |
| 1402 |
|
| 1403 |
// A binding parameter for a GQL query. |
| 1404 |
type GqlQueryParameter struct { |
| 1405 |
state protoimpl.MessageState |
| 1406 |
sizeCache protoimpl.SizeCache |
| 1407 |
unknownFields protoimpl.UnknownFields |
| 1408 |
|
| 1409 |
// The type of parameter. |
| 1410 |
// |
| 1411 |
// Types that are assignable to ParameterType: |
| 1412 |
// |
| 1413 |
// *GqlQueryParameter_Value |
| 1414 |
// *GqlQueryParameter_Cursor |
| 1415 |
ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"` |
| 1416 |
} |
| 1417 |
|
| 1418 |
func (x *GqlQueryParameter) Reset() { |
| 1419 |
*x = GqlQueryParameter{} |
| 1420 |
mi := &file_google_datastore_v1_query_proto_msgTypes[12] |
| 1421 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1422 |
ms.StoreMessageInfo(mi) |
| 1423 |
} |
| 1424 |
|
| 1425 |
func (x *GqlQueryParameter) String() string { |
| 1426 |
return protoimpl.X.MessageStringOf(x) |
| 1427 |
} |
| 1428 |
|
| 1429 |
func (*GqlQueryParameter) ProtoMessage() {} |
| 1430 |
|
| 1431 |
func (x *GqlQueryParameter) ProtoReflect() protoreflect.Message { |
| 1432 |
mi := &file_google_datastore_v1_query_proto_msgTypes[12] |
| 1433 |
if x != nil { |
| 1434 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1435 |
if ms.LoadMessageInfo() == nil { |
| 1436 |
ms.StoreMessageInfo(mi) |
| 1437 |
} |
| 1438 |
return ms |
| 1439 |
} |
| 1440 |
return mi.MessageOf(x) |
| 1441 |
} |
| 1442 |
|
| 1443 |
// Deprecated: Use GqlQueryParameter.ProtoReflect.Descriptor instead. |
| 1444 |
func (*GqlQueryParameter) Descriptor() ([]byte, []int) { |
| 1445 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{12} |
| 1446 |
} |
| 1447 |
|
| 1448 |
func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType { |
| 1449 |
if m != nil { |
| 1450 |
return m.ParameterType |
| 1451 |
} |
| 1452 |
return nil |
| 1453 |
} |
| 1454 |
|
| 1455 |
func (x *GqlQueryParameter) GetValue() *Value { |
| 1456 |
if x, ok := x.GetParameterType().(*GqlQueryParameter_Value); ok { |
| 1457 |
return x.Value |
| 1458 |
} |
| 1459 |
return nil |
| 1460 |
} |
| 1461 |
|
| 1462 |
func (x *GqlQueryParameter) GetCursor() []byte { |
| 1463 |
if x, ok := x.GetParameterType().(*GqlQueryParameter_Cursor); ok { |
| 1464 |
return x.Cursor |
| 1465 |
} |
| 1466 |
return nil |
| 1467 |
} |
| 1468 |
|
| 1469 |
type isGqlQueryParameter_ParameterType interface { |
| 1470 |
isGqlQueryParameter_ParameterType() |
| 1471 |
} |
| 1472 |
|
| 1473 |
type GqlQueryParameter_Value struct { |
| 1474 |
// A value parameter. |
| 1475 |
Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"` |
| 1476 |
} |
| 1477 |
|
| 1478 |
type GqlQueryParameter_Cursor struct { |
| 1479 |
// A query cursor. Query cursors are returned in query |
| 1480 |
// result batches. |
| 1481 |
Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"` |
| 1482 |
} |
| 1483 |
|
| 1484 |
func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {} |
| 1485 |
|
| 1486 |
func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {} |
| 1487 |
|
| 1488 |
// A batch of results produced by a query. |
| 1489 |
type QueryResultBatch struct { |
| 1490 |
state protoimpl.MessageState |
| 1491 |
sizeCache protoimpl.SizeCache |
| 1492 |
unknownFields protoimpl.UnknownFields |
| 1493 |
|
| 1494 |
// The number of results skipped, typically because of an offset. |
| 1495 |
SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"` |
| 1496 |
// A cursor that points to the position after the last skipped result. |
| 1497 |
// Will be set when `skipped_results` != 0. |
| 1498 |
SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"` |
| 1499 |
// The result type for every entity in `entity_results`. |
| 1500 |
EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1.EntityResult_ResultType" json:"entity_result_type,omitempty"` |
| 1501 |
// The results for this batch. |
| 1502 |
EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"` |
| 1503 |
// A cursor that points to the position after the last result in the batch. |
| 1504 |
EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"` |
| 1505 |
// The state of the query after the current batch. |
| 1506 |
MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"` |
| 1507 |
// The version number of the snapshot this batch was returned from. |
| 1508 |
// This applies to the range of results from the query's `start_cursor` (or |
| 1509 |
// the beginning of the query if no cursor was given) to this batch's |
| 1510 |
// `end_cursor` (not the query's `end_cursor`). |
| 1511 |
// |
| 1512 |
// In a single transaction, subsequent query result batches for the same query |
| 1513 |
// can have a greater snapshot version number. Each batch's snapshot version |
| 1514 |
// is valid for all preceding batches. |
| 1515 |
// The value will be zero for eventually consistent queries. |
| 1516 |
SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"` |
| 1517 |
// Read timestamp this batch was returned from. |
| 1518 |
// This applies to the range of results from the query's `start_cursor` (or |
| 1519 |
// the beginning of the query if no cursor was given) to this batch's |
| 1520 |
// `end_cursor` (not the query's `end_cursor`). |
| 1521 |
// |
| 1522 |
// In a single transaction, subsequent query result batches for the same query |
| 1523 |
// can have a greater timestamp. Each batch's read timestamp |
| 1524 |
// is valid for all preceding batches. |
| 1525 |
// This value will not be set for eventually consistent queries in Cloud |
| 1526 |
// Datastore. |
| 1527 |
ReadTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` |
| 1528 |
} |
| 1529 |
|
| 1530 |
func (x *QueryResultBatch) Reset() { |
| 1531 |
*x = QueryResultBatch{} |
| 1532 |
mi := &file_google_datastore_v1_query_proto_msgTypes[13] |
| 1533 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1534 |
ms.StoreMessageInfo(mi) |
| 1535 |
} |
| 1536 |
|
| 1537 |
func (x *QueryResultBatch) String() string { |
| 1538 |
return protoimpl.X.MessageStringOf(x) |
| 1539 |
} |
| 1540 |
|
| 1541 |
func (*QueryResultBatch) ProtoMessage() {} |
| 1542 |
|
| 1543 |
func (x *QueryResultBatch) ProtoReflect() protoreflect.Message { |
| 1544 |
mi := &file_google_datastore_v1_query_proto_msgTypes[13] |
| 1545 |
if x != nil { |
| 1546 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1547 |
if ms.LoadMessageInfo() == nil { |
| 1548 |
ms.StoreMessageInfo(mi) |
| 1549 |
} |
| 1550 |
return ms |
| 1551 |
} |
| 1552 |
return mi.MessageOf(x) |
| 1553 |
} |
| 1554 |
|
| 1555 |
// Deprecated: Use QueryResultBatch.ProtoReflect.Descriptor instead. |
| 1556 |
func (*QueryResultBatch) Descriptor() ([]byte, []int) { |
| 1557 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{13} |
| 1558 |
} |
| 1559 |
|
| 1560 |
func (x *QueryResultBatch) GetSkippedResults() int32 { |
| 1561 |
if x != nil { |
| 1562 |
return x.SkippedResults |
| 1563 |
} |
| 1564 |
return 0 |
| 1565 |
} |
| 1566 |
|
| 1567 |
func (x *QueryResultBatch) GetSkippedCursor() []byte { |
| 1568 |
if x != nil { |
| 1569 |
return x.SkippedCursor |
| 1570 |
} |
| 1571 |
return nil |
| 1572 |
} |
| 1573 |
|
| 1574 |
func (x *QueryResultBatch) GetEntityResultType() EntityResult_ResultType { |
| 1575 |
if x != nil { |
| 1576 |
return x.EntityResultType |
| 1577 |
} |
| 1578 |
return EntityResult_RESULT_TYPE_UNSPECIFIED |
| 1579 |
} |
| 1580 |
|
| 1581 |
func (x *QueryResultBatch) GetEntityResults() []*EntityResult { |
| 1582 |
if x != nil { |
| 1583 |
return x.EntityResults |
| 1584 |
} |
| 1585 |
return nil |
| 1586 |
} |
| 1587 |
|
| 1588 |
func (x *QueryResultBatch) GetEndCursor() []byte { |
| 1589 |
if x != nil { |
| 1590 |
return x.EndCursor |
| 1591 |
} |
| 1592 |
return nil |
| 1593 |
} |
| 1594 |
|
| 1595 |
func (x *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType { |
| 1596 |
if x != nil { |
| 1597 |
return x.MoreResults |
| 1598 |
} |
| 1599 |
return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED |
| 1600 |
} |
| 1601 |
|
| 1602 |
func (x *QueryResultBatch) GetSnapshotVersion() int64 { |
| 1603 |
if x != nil { |
| 1604 |
return x.SnapshotVersion |
| 1605 |
} |
| 1606 |
return 0 |
| 1607 |
} |
| 1608 |
|
| 1609 |
func (x *QueryResultBatch) GetReadTime() *timestamppb.Timestamp { |
| 1610 |
if x != nil { |
| 1611 |
return x.ReadTime |
| 1612 |
} |
| 1613 |
return nil |
| 1614 |
} |
| 1615 |
|
| 1616 |
// Defines an aggregation that produces a single result. |
| 1617 |
type AggregationQuery_Aggregation struct { |
| 1618 |
state protoimpl.MessageState |
| 1619 |
sizeCache protoimpl.SizeCache |
| 1620 |
unknownFields protoimpl.UnknownFields |
| 1621 |
|
| 1622 |
// The type of aggregation to perform, required. |
| 1623 |
// |
| 1624 |
// Types that are assignable to Operator: |
| 1625 |
// |
| 1626 |
// *AggregationQuery_Aggregation_Count_ |
| 1627 |
// *AggregationQuery_Aggregation_Sum_ |
| 1628 |
// *AggregationQuery_Aggregation_Avg_ |
| 1629 |
Operator isAggregationQuery_Aggregation_Operator `protobuf_oneof:"operator"` |
| 1630 |
// Optional. Optional name of the property to store the result of the |
| 1631 |
// aggregation. |
| 1632 |
// |
| 1633 |
// If not provided, Datastore will pick a default name following the format |
| 1634 |
// `property_<incremental_id++>`. For example: |
| 1635 |
// |
| 1636 |
// ``` |
| 1637 |
// AGGREGATE |
| 1638 |
// |
| 1639 |
// COUNT_UP_TO(1) AS count_up_to_1, |
| 1640 |
// COUNT_UP_TO(2), |
| 1641 |
// COUNT_UP_TO(3) AS count_up_to_3, |
| 1642 |
// COUNT(*) |
| 1643 |
// |
| 1644 |
// OVER ( |
| 1645 |
// |
| 1646 |
// ... |
| 1647 |
// |
| 1648 |
// ); |
| 1649 |
// ``` |
| 1650 |
// |
| 1651 |
// becomes: |
| 1652 |
// |
| 1653 |
// ``` |
| 1654 |
// AGGREGATE |
| 1655 |
// |
| 1656 |
// COUNT_UP_TO(1) AS count_up_to_1, |
| 1657 |
// COUNT_UP_TO(2) AS property_1, |
| 1658 |
// COUNT_UP_TO(3) AS count_up_to_3, |
| 1659 |
// COUNT(*) AS property_2 |
| 1660 |
// |
| 1661 |
// OVER ( |
| 1662 |
// |
| 1663 |
// ... |
| 1664 |
// |
| 1665 |
// ); |
| 1666 |
// ``` |
| 1667 |
// |
| 1668 |
// Requires: |
| 1669 |
// |
| 1670 |
// * Must be unique across all aggregation aliases. |
| 1671 |
// * Conform to [entity property |
| 1672 |
// name][google.datastore.v1.Entity.properties] limitations. |
| 1673 |
Alias string `protobuf:"bytes,7,opt,name=alias,proto3" json:"alias,omitempty"` |
| 1674 |
} |
| 1675 |
|
| 1676 |
func (x *AggregationQuery_Aggregation) Reset() { |
| 1677 |
*x = AggregationQuery_Aggregation{} |
| 1678 |
mi := &file_google_datastore_v1_query_proto_msgTypes[14] |
| 1679 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1680 |
ms.StoreMessageInfo(mi) |
| 1681 |
} |
| 1682 |
|
| 1683 |
func (x *AggregationQuery_Aggregation) String() string { |
| 1684 |
return protoimpl.X.MessageStringOf(x) |
| 1685 |
} |
| 1686 |
|
| 1687 |
func (*AggregationQuery_Aggregation) ProtoMessage() {} |
| 1688 |
|
| 1689 |
func (x *AggregationQuery_Aggregation) ProtoReflect() protoreflect.Message { |
| 1690 |
mi := &file_google_datastore_v1_query_proto_msgTypes[14] |
| 1691 |
if x != nil { |
| 1692 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1693 |
if ms.LoadMessageInfo() == nil { |
| 1694 |
ms.StoreMessageInfo(mi) |
| 1695 |
} |
| 1696 |
return ms |
| 1697 |
} |
| 1698 |
return mi.MessageOf(x) |
| 1699 |
} |
| 1700 |
|
| 1701 |
// Deprecated: Use AggregationQuery_Aggregation.ProtoReflect.Descriptor instead. |
| 1702 |
func (*AggregationQuery_Aggregation) Descriptor() ([]byte, []int) { |
| 1703 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{2, 0} |
| 1704 |
} |
| 1705 |
|
| 1706 |
func (m *AggregationQuery_Aggregation) GetOperator() isAggregationQuery_Aggregation_Operator { |
| 1707 |
if m != nil { |
| 1708 |
return m.Operator |
| 1709 |
} |
| 1710 |
return nil |
| 1711 |
} |
| 1712 |
|
| 1713 |
func (x *AggregationQuery_Aggregation) GetCount() *AggregationQuery_Aggregation_Count { |
| 1714 |
if x, ok := x.GetOperator().(*AggregationQuery_Aggregation_Count_); ok { |
| 1715 |
return x.Count |
| 1716 |
} |
| 1717 |
return nil |
| 1718 |
} |
| 1719 |
|
| 1720 |
func (x *AggregationQuery_Aggregation) GetSum() *AggregationQuery_Aggregation_Sum { |
| 1721 |
if x, ok := x.GetOperator().(*AggregationQuery_Aggregation_Sum_); ok { |
| 1722 |
return x.Sum |
| 1723 |
} |
| 1724 |
return nil |
| 1725 |
} |
| 1726 |
|
| 1727 |
func (x *AggregationQuery_Aggregation) GetAvg() *AggregationQuery_Aggregation_Avg { |
| 1728 |
if x, ok := x.GetOperator().(*AggregationQuery_Aggregation_Avg_); ok { |
| 1729 |
return x.Avg |
| 1730 |
} |
| 1731 |
return nil |
| 1732 |
} |
| 1733 |
|
| 1734 |
func (x *AggregationQuery_Aggregation) GetAlias() string { |
| 1735 |
if x != nil { |
| 1736 |
return x.Alias |
| 1737 |
} |
| 1738 |
return "" |
| 1739 |
} |
| 1740 |
|
| 1741 |
type isAggregationQuery_Aggregation_Operator interface { |
| 1742 |
isAggregationQuery_Aggregation_Operator() |
| 1743 |
} |
| 1744 |
|
| 1745 |
type AggregationQuery_Aggregation_Count_ struct { |
| 1746 |
// Count aggregator. |
| 1747 |
Count *AggregationQuery_Aggregation_Count `protobuf:"bytes,1,opt,name=count,proto3,oneof"` |
| 1748 |
} |
| 1749 |
|
| 1750 |
type AggregationQuery_Aggregation_Sum_ struct { |
| 1751 |
// Sum aggregator. |
| 1752 |
Sum *AggregationQuery_Aggregation_Sum `protobuf:"bytes,2,opt,name=sum,proto3,oneof"` |
| 1753 |
} |
| 1754 |
|
| 1755 |
type AggregationQuery_Aggregation_Avg_ struct { |
| 1756 |
// Average aggregator. |
| 1757 |
Avg *AggregationQuery_Aggregation_Avg `protobuf:"bytes,3,opt,name=avg,proto3,oneof"` |
| 1758 |
} |
| 1759 |
|
| 1760 |
func (*AggregationQuery_Aggregation_Count_) isAggregationQuery_Aggregation_Operator() {} |
| 1761 |
|
| 1762 |
func (*AggregationQuery_Aggregation_Sum_) isAggregationQuery_Aggregation_Operator() {} |
| 1763 |
|
| 1764 |
func (*AggregationQuery_Aggregation_Avg_) isAggregationQuery_Aggregation_Operator() {} |
| 1765 |
|
| 1766 |
// Count of entities that match the query. |
| 1767 |
// |
| 1768 |
// The `COUNT(*)` aggregation function operates on the entire entity |
| 1769 |
// so it does not require a field reference. |
| 1770 |
type AggregationQuery_Aggregation_Count struct { |
| 1771 |
state protoimpl.MessageState |
| 1772 |
sizeCache protoimpl.SizeCache |
| 1773 |
unknownFields protoimpl.UnknownFields |
| 1774 |
|
| 1775 |
// Optional. Optional constraint on the maximum number of entities to |
| 1776 |
// count. |
| 1777 |
// |
| 1778 |
// This provides a way to set an upper bound on the number of entities |
| 1779 |
// to scan, limiting latency, and cost. |
| 1780 |
// |
| 1781 |
// Unspecified is interpreted as no bound. |
| 1782 |
// |
| 1783 |
// If a zero value is provided, a count result of zero should always be |
| 1784 |
// expected. |
| 1785 |
// |
| 1786 |
// High-Level Example: |
| 1787 |
// |
| 1788 |
// ``` |
| 1789 |
// AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); |
| 1790 |
// ``` |
| 1791 |
// |
| 1792 |
// Requires: |
| 1793 |
// |
| 1794 |
// * Must be non-negative when present. |
| 1795 |
UpTo *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=up_to,json=upTo,proto3" json:"up_to,omitempty"` |
| 1796 |
} |
| 1797 |
|
| 1798 |
func (x *AggregationQuery_Aggregation_Count) Reset() { |
| 1799 |
*x = AggregationQuery_Aggregation_Count{} |
| 1800 |
mi := &file_google_datastore_v1_query_proto_msgTypes[15] |
| 1801 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1802 |
ms.StoreMessageInfo(mi) |
| 1803 |
} |
| 1804 |
|
| 1805 |
func (x *AggregationQuery_Aggregation_Count) String() string { |
| 1806 |
return protoimpl.X.MessageStringOf(x) |
| 1807 |
} |
| 1808 |
|
| 1809 |
func (*AggregationQuery_Aggregation_Count) ProtoMessage() {} |
| 1810 |
|
| 1811 |
func (x *AggregationQuery_Aggregation_Count) ProtoReflect() protoreflect.Message { |
| 1812 |
mi := &file_google_datastore_v1_query_proto_msgTypes[15] |
| 1813 |
if x != nil { |
| 1814 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1815 |
if ms.LoadMessageInfo() == nil { |
| 1816 |
ms.StoreMessageInfo(mi) |
| 1817 |
} |
| 1818 |
return ms |
| 1819 |
} |
| 1820 |
return mi.MessageOf(x) |
| 1821 |
} |
| 1822 |
|
| 1823 |
// Deprecated: Use AggregationQuery_Aggregation_Count.ProtoReflect.Descriptor instead. |
| 1824 |
func (*AggregationQuery_Aggregation_Count) Descriptor() ([]byte, []int) { |
| 1825 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{2, 0, 0} |
| 1826 |
} |
| 1827 |
|
| 1828 |
func (x *AggregationQuery_Aggregation_Count) GetUpTo() *wrapperspb.Int64Value { |
| 1829 |
if x != nil { |
| 1830 |
return x.UpTo |
| 1831 |
} |
| 1832 |
return nil |
| 1833 |
} |
| 1834 |
|
| 1835 |
// Sum of the values of the requested property. |
| 1836 |
// |
| 1837 |
// * Only numeric values will be aggregated. All non-numeric values |
| 1838 |
// including `NULL` are skipped. |
| 1839 |
// |
| 1840 |
// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math |
| 1841 |
// follows IEEE-754 standards. |
| 1842 |
// |
| 1843 |
// * If the aggregated value set is empty, returns 0. |
| 1844 |
// |
| 1845 |
// * Returns a 64-bit integer if all aggregated numbers are integers and the |
| 1846 |
// sum result does not overflow. Otherwise, the result is returned as a |
| 1847 |
// double. Note that even if all the aggregated values are integers, the |
| 1848 |
// result is returned as a double if it cannot fit within a 64-bit signed |
| 1849 |
// integer. When this occurs, the returned value will lose precision. |
| 1850 |
// |
| 1851 |
// * When underflow occurs, floating-point aggregation is non-deterministic. |
| 1852 |
// This means that running the same query repeatedly without any changes to |
| 1853 |
// the underlying values could produce slightly different results each |
| 1854 |
// time. In those cases, values should be stored as integers over |
| 1855 |
// floating-point numbers. |
| 1856 |
type AggregationQuery_Aggregation_Sum struct { |
| 1857 |
state protoimpl.MessageState |
| 1858 |
sizeCache protoimpl.SizeCache |
| 1859 |
unknownFields protoimpl.UnknownFields |
| 1860 |
|
| 1861 |
// The property to aggregate on. |
| 1862 |
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` |
| 1863 |
} |
| 1864 |
|
| 1865 |
func (x *AggregationQuery_Aggregation_Sum) Reset() { |
| 1866 |
*x = AggregationQuery_Aggregation_Sum{} |
| 1867 |
mi := &file_google_datastore_v1_query_proto_msgTypes[16] |
| 1868 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1869 |
ms.StoreMessageInfo(mi) |
| 1870 |
} |
| 1871 |
|
| 1872 |
func (x *AggregationQuery_Aggregation_Sum) String() string { |
| 1873 |
return protoimpl.X.MessageStringOf(x) |
| 1874 |
} |
| 1875 |
|
| 1876 |
func (*AggregationQuery_Aggregation_Sum) ProtoMessage() {} |
| 1877 |
|
| 1878 |
func (x *AggregationQuery_Aggregation_Sum) ProtoReflect() protoreflect.Message { |
| 1879 |
mi := &file_google_datastore_v1_query_proto_msgTypes[16] |
| 1880 |
if x != nil { |
| 1881 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1882 |
if ms.LoadMessageInfo() == nil { |
| 1883 |
ms.StoreMessageInfo(mi) |
| 1884 |
} |
| 1885 |
return ms |
| 1886 |
} |
| 1887 |
return mi.MessageOf(x) |
| 1888 |
} |
| 1889 |
|
| 1890 |
// Deprecated: Use AggregationQuery_Aggregation_Sum.ProtoReflect.Descriptor instead. |
| 1891 |
func (*AggregationQuery_Aggregation_Sum) Descriptor() ([]byte, []int) { |
| 1892 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{2, 0, 1} |
| 1893 |
} |
| 1894 |
|
| 1895 |
func (x *AggregationQuery_Aggregation_Sum) GetProperty() *PropertyReference { |
| 1896 |
if x != nil { |
| 1897 |
return x.Property |
| 1898 |
} |
| 1899 |
return nil |
| 1900 |
} |
| 1901 |
|
| 1902 |
// Average of the values of the requested property. |
| 1903 |
// |
| 1904 |
// * Only numeric values will be aggregated. All non-numeric values |
| 1905 |
// including `NULL` are skipped. |
| 1906 |
// |
| 1907 |
// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math |
| 1908 |
// follows IEEE-754 standards. |
| 1909 |
// |
| 1910 |
// * If the aggregated value set is empty, returns `NULL`. |
| 1911 |
// |
| 1912 |
// * Always returns the result as a double. |
| 1913 |
type AggregationQuery_Aggregation_Avg struct { |
| 1914 |
state protoimpl.MessageState |
| 1915 |
sizeCache protoimpl.SizeCache |
| 1916 |
unknownFields protoimpl.UnknownFields |
| 1917 |
|
| 1918 |
// The property to aggregate on. |
| 1919 |
Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` |
| 1920 |
} |
| 1921 |
|
| 1922 |
func (x *AggregationQuery_Aggregation_Avg) Reset() { |
| 1923 |
*x = AggregationQuery_Aggregation_Avg{} |
| 1924 |
mi := &file_google_datastore_v1_query_proto_msgTypes[17] |
| 1925 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1926 |
ms.StoreMessageInfo(mi) |
| 1927 |
} |
| 1928 |
|
| 1929 |
func (x *AggregationQuery_Aggregation_Avg) String() string { |
| 1930 |
return protoimpl.X.MessageStringOf(x) |
| 1931 |
} |
| 1932 |
|
| 1933 |
func (*AggregationQuery_Aggregation_Avg) ProtoMessage() {} |
| 1934 |
|
| 1935 |
func (x *AggregationQuery_Aggregation_Avg) ProtoReflect() protoreflect.Message { |
| 1936 |
mi := &file_google_datastore_v1_query_proto_msgTypes[17] |
| 1937 |
if x != nil { |
| 1938 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1939 |
if ms.LoadMessageInfo() == nil { |
| 1940 |
ms.StoreMessageInfo(mi) |
| 1941 |
} |
| 1942 |
return ms |
| 1943 |
} |
| 1944 |
return mi.MessageOf(x) |
| 1945 |
} |
| 1946 |
|
| 1947 |
// Deprecated: Use AggregationQuery_Aggregation_Avg.ProtoReflect.Descriptor instead. |
| 1948 |
func (*AggregationQuery_Aggregation_Avg) Descriptor() ([]byte, []int) { |
| 1949 |
return file_google_datastore_v1_query_proto_rawDescGZIP(), []int{2, 0, 2} |
| 1950 |
} |
| 1951 |
|
| 1952 |
func (x *AggregationQuery_Aggregation_Avg) GetProperty() *PropertyReference { |
| 1953 |
if x != nil { |
| 1954 |
return x.Property |
| 1955 |
} |
| 1956 |
return nil |
| 1957 |
} |
| 1958 |
|
| 1959 |
var File_google_datastore_v1_query_proto protoreflect.FileDescriptor |
| 1960 |
|
| 1961 |
var file_google_datastore_v1_query_proto_rawDesc = []byte{ |
| 1962 |
0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, |
| 1963 |
0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 1964 |
0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, |
| 1965 |
0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, |
| 1966 |
0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, |
| 1967 |
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 1968 |
0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x74, |
| 1969 |
0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1970 |
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, |
| 1971 |
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, |
| 1972 |
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, |
| 1973 |
0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x02, 0x0a, 0x0c, 0x45, |
| 1974 |
0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, 0x06, 0x65, |
| 1975 |
0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, |
| 1976 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, |
| 1977 |
0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, |
| 1978 |
0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 1979 |
0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, |
| 1980 |
0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 1981 |
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 1982 |
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, |
| 1983 |
0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, |
| 1984 |
0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 1985 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, |
| 1986 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, |
| 1987 |
0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, |
| 1988 |
0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x0a, |
| 1989 |
0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, |
| 1990 |
0x53, 0x55, 0x4c, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, |
| 1991 |
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, |
| 1992 |
0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, |
| 1993 |
0x02, 0x12, 0x0c, 0x0a, 0x08, 0x4b, 0x45, 0x59, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x22, |
| 1994 |
0x90, 0x04, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3f, 0x0a, 0x0a, 0x70, 0x72, 0x6f, |
| 1995 |
0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, |
| 1996 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 1997 |
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, |
| 1998 |
0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x04, 0x6b, 0x69, |
| 1999 |
0x6e, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 2000 |
0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, |
| 2001 |
0x69, 0x6e, 0x64, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6b, |
| 2002 |
0x69, 0x6e, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, |
| 2003 |
0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, |
| 2004 |
0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, |
| 2005 |
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, |
| 2006 |
0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 2007 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 2008 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64, |
| 2009 |
0x65, 0x72, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x63, 0x74, 0x5f, 0x6f, |
| 2010 |
0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 2011 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 2012 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, |
| 2013 |
0x0a, 0x64, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x63, 0x74, 0x4f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, |
| 2014 |
0x74, 0x61, 0x72, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, |
| 2015 |
0x0c, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x1d, |
| 2016 |
0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x08, 0x20, 0x01, |
| 2017 |
0x28, 0x0c, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x16, 0x0a, |
| 2018 |
0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, |
| 2019 |
0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x0c, |
| 2020 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 2021 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, |
| 2022 |
0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, |
| 2023 |
0x5f, 0x6e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, |
| 2024 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, |
| 2025 |
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, |
| 2026 |
0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, |
| 2027 |
0x73, 0x74, 0x22, 0xb1, 0x05, 0x0a, 0x10, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, |
| 2028 |
0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3f, 0x0a, 0x0c, 0x6e, 0x65, 0x73, 0x74, 0x65, |
| 2029 |
0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 2030 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 2031 |
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x65, 0x73, |
| 2032 |
0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5a, 0x0a, 0x0c, 0x61, 0x67, 0x67, 0x72, |
| 2033 |
0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, |
| 2034 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, |
| 2035 |
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 2036 |
0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, |
| 2037 |
0x6e, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, |
| 2038 |
0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xf1, 0x03, 0x0a, 0x0b, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, |
| 2039 |
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, |
| 2040 |
0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, |
| 2041 |
0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, |
| 2042 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, |
| 2043 |
0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x05, |
| 2044 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, |
| 2045 |
0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, |
| 2046 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, |
| 2047 |
0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, |
| 2048 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x03, 0x73, 0x75, 0x6d, |
| 2049 |
0x12, 0x49, 0x0a, 0x03, 0x61, 0x76, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, |
| 2050 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 2051 |
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, |
| 2052 |
0x75, 0x65, 0x72, 0x79, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 2053 |
0x2e, 0x41, 0x76, 0x67, 0x48, 0x00, 0x52, 0x03, 0x61, 0x76, 0x67, 0x12, 0x19, 0x0a, 0x05, 0x61, |
| 2054 |
0x6c, 0x69, 0x61, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, |
| 2055 |
0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x1a, 0x3e, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, |
| 2056 |
0x35, 0x0a, 0x05, 0x75, 0x70, 0x5f, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, |
| 2057 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
| 2058 |
0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, |
| 2059 |
0x52, 0x04, 0x75, 0x70, 0x54, 0x6f, 0x1a, 0x49, 0x0a, 0x03, 0x53, 0x75, 0x6d, 0x12, 0x42, 0x0a, |
| 2060 |
0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 2061 |
0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, |
| 2062 |
0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, |
| 2063 |
0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, |
| 2064 |
0x79, 0x1a, 0x49, 0x0a, 0x03, 0x41, 0x76, 0x67, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, |
| 2065 |
0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, |
| 2066 |
0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, |
| 2067 |
0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, |
| 2068 |
0x63, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x42, 0x0a, 0x0a, 0x08, |
| 2069 |
0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, |
| 2070 |
0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x4b, 0x69, 0x6e, 0x64, 0x45, 0x78, |
| 2071 |
0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 2072 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x27, 0x0a, 0x11, |
| 2073 |
0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, |
| 2074 |
0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 2075 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, |
| 2076 |
0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, |
| 2077 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 2078 |
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, |
| 2079 |
0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x70, |
| 2080 |
0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0xe6, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, |
| 2081 |
0x65, 0x72, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, |
| 2082 |
0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, |
| 2083 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, |
| 2084 |
0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, |
| 2085 |
0x6e, 0x63, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x4a, 0x0a, |
| 2086 |
0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, |
| 2087 |
0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, |
| 2088 |
0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4f, |
| 2089 |
0x72, 0x64, 0x65, 0x72, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, |
| 2090 |
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x45, 0x0a, 0x09, 0x44, 0x69, 0x72, |
| 2091 |
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, |
| 2092 |
0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, |
| 2093 |
0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, |
| 2094 |
0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, |
| 2095 |
0x22, 0xba, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x10, 0x63, |
| 2096 |
0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, |
| 2097 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 2098 |
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, |
| 2099 |
0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x63, |
| 2100 |
0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4e, |
| 2101 |
0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, |
| 2102 |
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 2103 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 2104 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, |
| 2105 |
0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, |
| 2106 |
0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xbe, 0x01, |
| 2107 |
0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, |
| 2108 |
0x72, 0x12, 0x3d, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, |
| 2109 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 2110 |
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x46, 0x69, 0x6c, |
| 2111 |
0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x02, 0x6f, 0x70, |
| 2112 |
0x12, 0x35, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
| 2113 |
0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, |
| 2114 |
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, |
| 2115 |
0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x35, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, |
| 2116 |
0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, |
| 2117 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, |
| 2118 |
0x03, 0x41, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x02, 0x22, 0xff, |
| 2119 |
0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, |
| 2120 |
0x72, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x01, 0x20, |
| 2121 |
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, |
| 2122 |
0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, |
| 2123 |
0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, |
| 2124 |
0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x02, 0x6f, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 2125 |
0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, |
| 2126 |
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, |
| 2127 |
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, |
| 2128 |
0x02, 0x6f, 0x70, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, |
| 2129 |
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, |
| 2130 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, |
| 2131 |
0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, |
| 2132 |
0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, |
| 2133 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, |
| 2134 |
0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, |
| 2135 |
0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, |
| 2136 |
0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, |
| 2137 |
0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, |
| 2138 |
0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x04, |
| 2139 |
0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x05, 0x12, 0x06, 0x0a, 0x02, 0x49, |
| 2140 |
0x4e, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, |
| 2141 |
0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x48, 0x41, 0x53, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, |
| 2142 |
0x4f, 0x52, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x0d, |
| 2143 |
0x22, 0xb3, 0x04, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x65, 0x61, 0x72, 0x65, 0x73, 0x74, |
| 2144 |
0x12, 0x54, 0x0a, 0x0f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, |
| 2145 |
0x72, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 2146 |
0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, |
| 2147 |
0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, |
| 2148 |
0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x72, |
| 2149 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x42, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, |
| 2150 |
0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 2151 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, |
| 2152 |
0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x71, |
| 2153 |
0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x60, 0x0a, 0x10, 0x64, 0x69, |
| 2154 |
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, |
| 2155 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, |
| 2156 |
0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, |
| 2157 |
0x65, 0x61, 0x72, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, |
| 2158 |
0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x64, 0x69, 0x73, |
| 2159 |
0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x05, |
| 2160 |
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, |
| 2161 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, |
| 2162 |
0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6c, |
| 2163 |
0x69, 0x6d, 0x69, 0x74, 0x12, 0x3d, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, |
| 2164 |
0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, |
| 2165 |
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x16, 0x64, 0x69, 0x73, |
| 2166 |
0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, |
| 2167 |
0x72, 0x74, 0x79, 0x12, 0x50, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, |
| 2168 |
0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 2169 |
0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 2170 |
0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, |
| 2171 |
0x41, 0x01, 0x52, 0x11, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, |
| 2172 |
0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x5f, 0x0a, 0x0f, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, |
| 2173 |
0x65, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x53, 0x54, |
| 2174 |
0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x53, |
| 2175 |
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x55, |
| 2176 |
0x43, 0x4c, 0x49, 0x44, 0x45, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x53, |
| 2177 |
0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x4f, 0x54, 0x5f, 0x50, 0x52, 0x4f, |
| 2178 |
0x44, 0x55, 0x43, 0x54, 0x10, 0x03, 0x22, 0xf0, 0x02, 0x0a, 0x08, 0x47, 0x71, 0x6c, 0x51, 0x75, |
| 2179 |
0x65, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, |
| 2180 |
0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, |
| 2181 |
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, |
| 2182 |
0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, |
| 2183 |
0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x12, 0x57, 0x0a, |
| 2184 |
0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, |
| 2185 |
0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 2186 |
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x71, 0x6c, 0x51, |
| 2187 |
0x75, 0x65, 0x72, 0x79, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, |
| 2188 |
0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x42, 0x69, |
| 2189 |
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, |
| 2190 |
0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, |
| 2191 |
0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, |
| 2192 |
0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x71, 0x6c, 0x51, 0x75, 0x65, |
| 2193 |
0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x12, 0x70, 0x6f, 0x73, |
| 2194 |
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x1a, |
| 2195 |
0x68, 0x0a, 0x12, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, |
| 2196 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 2197 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 2198 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 2199 |
0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x71, 0x6c, |
| 2200 |
0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, |
| 2201 |
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x73, 0x0a, 0x11, 0x47, 0x71, 0x6c, |
| 2202 |
0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x32, |
| 2203 |
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 2204 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 2205 |
0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, |
| 2206 |
0x75, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, |
| 2207 |
0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x42, 0x10, 0x0a, 0x0e, |
| 2208 |
0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x80, |
| 2209 |
0x05, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x61, |
| 2210 |
0x74, 0x63, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72, |
| 2211 |
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x73, 0x6b, |
| 2212 |
0x69, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, |
| 2213 |
0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x03, |
| 2214 |
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x43, 0x75, 0x72, |
| 2215 |
0x73, 0x6f, 0x72, 0x12, 0x5a, 0x0a, 0x12, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, |
| 2216 |
0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, |
| 2217 |
0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, |
| 2218 |
0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x75, |
| 2219 |
0x6c, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x65, |
| 2220 |
0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, |
| 2221 |
0x48, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 2222 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 2223 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, |
| 2224 |
0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x65, 0x6e, 0x74, 0x69, |
| 2225 |
0x74, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64, |
| 2226 |
0x5f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, |
| 2227 |
0x6e, 0x64, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x58, 0x0a, 0x0c, 0x6d, 0x6f, 0x72, 0x65, |
| 2228 |
0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, |
| 2229 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, |
| 2230 |
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 2231 |
0x42, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x4d, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, |
| 2232 |
0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, |
| 2233 |
0x74, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x76, |
| 2234 |
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x73, 0x6e, |
| 2235 |
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, |
| 2236 |
0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, |
| 2237 |
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 2238 |
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x72, 0x65, |
| 2239 |
0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0f, 0x4d, 0x6f, 0x72, 0x65, 0x52, |
| 2240 |
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x4f, |
| 2241 |
0x52, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, |
| 2242 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, |
| 2243 |
0x0c, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x01, 0x12, |
| 2244 |
0x1c, 0x0a, 0x18, 0x4d, 0x4f, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, |
| 2245 |
0x41, 0x46, 0x54, 0x45, 0x52, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x12, 0x1d, 0x0a, |
| 2246 |
0x19, 0x4d, 0x4f, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x41, 0x46, |
| 2247 |
0x54, 0x45, 0x52, 0x5f, 0x43, 0x55, 0x52, 0x53, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, |
| 2248 |
0x4e, 0x4f, 0x5f, 0x4d, 0x4f, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x10, |
| 2249 |
0x03, 0x42, 0xbb, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 2250 |
0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, |
| 2251 |
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, |
| 2252 |
0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, |
| 2253 |
0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, |
| 2254 |
0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x74, |
| 2255 |
0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 2256 |
0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, |
| 2257 |
0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, |
| 2258 |
0x6f, 0x75, 0x64, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, |
| 2259 |
0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, |
| 2260 |
0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, |
| 2261 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 2262 |
} |
| 2263 |
|
| 2264 |
var ( |
| 2265 |
file_google_datastore_v1_query_proto_rawDescOnce sync.Once |
| 2266 |
file_google_datastore_v1_query_proto_rawDescData = file_google_datastore_v1_query_proto_rawDesc |
| 2267 |
) |
| 2268 |
|
| 2269 |
func file_google_datastore_v1_query_proto_rawDescGZIP() []byte { |
| 2270 |
file_google_datastore_v1_query_proto_rawDescOnce.Do(func() { |
| 2271 |
file_google_datastore_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_datastore_v1_query_proto_rawDescData) |
| 2272 |
}) |
| 2273 |
return file_google_datastore_v1_query_proto_rawDescData |
| 2274 |
} |
| 2275 |
|
| 2276 |
var file_google_datastore_v1_query_proto_enumTypes = make([]protoimpl.EnumInfo, 6) |
| 2277 |
var file_google_datastore_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 19) |
| 2278 |
var file_google_datastore_v1_query_proto_goTypes = []any{ |
| 2279 |
(EntityResult_ResultType)(0), // 0: google.datastore.v1.EntityResult.ResultType |
| 2280 |
(PropertyOrder_Direction)(0), // 1: google.datastore.v1.PropertyOrder.Direction |
| 2281 |
(CompositeFilter_Operator)(0), // 2: google.datastore.v1.CompositeFilter.Operator |
| 2282 |
(PropertyFilter_Operator)(0), // 3: google.datastore.v1.PropertyFilter.Operator |
| 2283 |
(FindNearest_DistanceMeasure)(0), // 4: google.datastore.v1.FindNearest.DistanceMeasure |
| 2284 |
(QueryResultBatch_MoreResultsType)(0), // 5: google.datastore.v1.QueryResultBatch.MoreResultsType |
| 2285 |
(*EntityResult)(nil), // 6: google.datastore.v1.EntityResult |
| 2286 |
(*Query)(nil), // 7: google.datastore.v1.Query |
| 2287 |
(*AggregationQuery)(nil), // 8: google.datastore.v1.AggregationQuery |
| 2288 |
(*KindExpression)(nil), // 9: google.datastore.v1.KindExpression |
| 2289 |
(*PropertyReference)(nil), // 10: google.datastore.v1.PropertyReference |
| 2290 |
(*Projection)(nil), // 11: google.datastore.v1.Projection |
| 2291 |
(*PropertyOrder)(nil), // 12: google.datastore.v1.PropertyOrder |
| 2292 |
(*Filter)(nil), // 13: google.datastore.v1.Filter |
| 2293 |
(*CompositeFilter)(nil), // 14: google.datastore.v1.CompositeFilter |
| 2294 |
(*PropertyFilter)(nil), // 15: google.datastore.v1.PropertyFilter |
| 2295 |
(*FindNearest)(nil), // 16: google.datastore.v1.FindNearest |
| 2296 |
(*GqlQuery)(nil), // 17: google.datastore.v1.GqlQuery |
| 2297 |
(*GqlQueryParameter)(nil), // 18: google.datastore.v1.GqlQueryParameter |
| 2298 |
(*QueryResultBatch)(nil), // 19: google.datastore.v1.QueryResultBatch |
| 2299 |
(*AggregationQuery_Aggregation)(nil), // 20: google.datastore.v1.AggregationQuery.Aggregation |
| 2300 |
(*AggregationQuery_Aggregation_Count)(nil), // 21: google.datastore.v1.AggregationQuery.Aggregation.Count |
| 2301 |
(*AggregationQuery_Aggregation_Sum)(nil), // 22: google.datastore.v1.AggregationQuery.Aggregation.Sum |
| 2302 |
(*AggregationQuery_Aggregation_Avg)(nil), // 23: google.datastore.v1.AggregationQuery.Aggregation.Avg |
| 2303 |
nil, // 24: google.datastore.v1.GqlQuery.NamedBindingsEntry |
| 2304 |
(*Entity)(nil), // 25: google.datastore.v1.Entity |
| 2305 |
(*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp |
| 2306 |
(*wrapperspb.Int32Value)(nil), // 27: google.protobuf.Int32Value |
| 2307 |
(*Value)(nil), // 28: google.datastore.v1.Value |
| 2308 |
(*wrapperspb.DoubleValue)(nil), // 29: google.protobuf.DoubleValue |
| 2309 |
(*wrapperspb.Int64Value)(nil), // 30: google.protobuf.Int64Value |
| 2310 |
} |
| 2311 |
var file_google_datastore_v1_query_proto_depIdxs = []int32{ |
| 2312 |
25, // 0: google.datastore.v1.EntityResult.entity:type_name -> google.datastore.v1.Entity |
| 2313 |
26, // 1: google.datastore.v1.EntityResult.create_time:type_name -> google.protobuf.Timestamp |
| 2314 |
26, // 2: google.datastore.v1.EntityResult.update_time:type_name -> google.protobuf.Timestamp |
| 2315 |
11, // 3: google.datastore.v1.Query.projection:type_name -> google.datastore.v1.Projection |
| 2316 |
9, // 4: google.datastore.v1.Query.kind:type_name -> google.datastore.v1.KindExpression |
| 2317 |
13, // 5: google.datastore.v1.Query.filter:type_name -> google.datastore.v1.Filter |
| 2318 |
12, // 6: google.datastore.v1.Query.order:type_name -> google.datastore.v1.PropertyOrder |
| 2319 |
10, // 7: google.datastore.v1.Query.distinct_on:type_name -> google.datastore.v1.PropertyReference |
| 2320 |
27, // 8: google.datastore.v1.Query.limit:type_name -> google.protobuf.Int32Value |
| 2321 |
16, // 9: google.datastore.v1.Query.find_nearest:type_name -> google.datastore.v1.FindNearest |
| 2322 |
7, // 10: google.datastore.v1.AggregationQuery.nested_query:type_name -> google.datastore.v1.Query |
| 2323 |
20, // 11: google.datastore.v1.AggregationQuery.aggregations:type_name -> google.datastore.v1.AggregationQuery.Aggregation |
| 2324 |
10, // 12: google.datastore.v1.Projection.property:type_name -> google.datastore.v1.PropertyReference |
| 2325 |
10, // 13: google.datastore.v1.PropertyOrder.property:type_name -> google.datastore.v1.PropertyReference |
| 2326 |
1, // 14: google.datastore.v1.PropertyOrder.direction:type_name -> google.datastore.v1.PropertyOrder.Direction |
| 2327 |
14, // 15: google.datastore.v1.Filter.composite_filter:type_name -> google.datastore.v1.CompositeFilter |
| 2328 |
15, // 16: google.datastore.v1.Filter.property_filter:type_name -> google.datastore.v1.PropertyFilter |
| 2329 |
2, // 17: google.datastore.v1.CompositeFilter.op:type_name -> google.datastore.v1.CompositeFilter.Operator |
| 2330 |
13, // 18: google.datastore.v1.CompositeFilter.filters:type_name -> google.datastore.v1.Filter |
| 2331 |
10, // 19: google.datastore.v1.PropertyFilter.property:type_name -> google.datastore.v1.PropertyReference |
| 2332 |
3, // 20: google.datastore.v1.PropertyFilter.op:type_name -> google.datastore.v1.PropertyFilter.Operator |
| 2333 |
28, // 21: google.datastore.v1.PropertyFilter.value:type_name -> google.datastore.v1.Value |
| 2334 |
10, // 22: google.datastore.v1.FindNearest.vector_property:type_name -> google.datastore.v1.PropertyReference |
| 2335 |
28, // 23: google.datastore.v1.FindNearest.query_vector:type_name -> google.datastore.v1.Value |
| 2336 |
4, // 24: google.datastore.v1.FindNearest.distance_measure:type_name -> google.datastore.v1.FindNearest.DistanceMeasure |
| 2337 |
27, // 25: google.datastore.v1.FindNearest.limit:type_name -> google.protobuf.Int32Value |
| 2338 |
29, // 26: google.datastore.v1.FindNearest.distance_threshold:type_name -> google.protobuf.DoubleValue |
| 2339 |
24, // 27: google.datastore.v1.GqlQuery.named_bindings:type_name -> google.datastore.v1.GqlQuery.NamedBindingsEntry |
| 2340 |
18, // 28: google.datastore.v1.GqlQuery.positional_bindings:type_name -> google.datastore.v1.GqlQueryParameter |
| 2341 |
28, // 29: google.datastore.v1.GqlQueryParameter.value:type_name -> google.datastore.v1.Value |
| 2342 |
0, // 30: google.datastore.v1.QueryResultBatch.entity_result_type:type_name -> google.datastore.v1.EntityResult.ResultType |
| 2343 |
6, // 31: google.datastore.v1.QueryResultBatch.entity_results:type_name -> google.datastore.v1.EntityResult |
| 2344 |
5, // 32: google.datastore.v1.QueryResultBatch.more_results:type_name -> google.datastore.v1.QueryResultBatch.MoreResultsType |
| 2345 |
26, // 33: google.datastore.v1.QueryResultBatch.read_time:type_name -> google.protobuf.Timestamp |
| 2346 |
21, // 34: google.datastore.v1.AggregationQuery.Aggregation.count:type_name -> google.datastore.v1.AggregationQuery.Aggregation.Count |
| 2347 |
22, // 35: google.datastore.v1.AggregationQuery.Aggregation.sum:type_name -> google.datastore.v1.AggregationQuery.Aggregation.Sum |
| 2348 |
23, // 36: google.datastore.v1.AggregationQuery.Aggregation.avg:type_name -> google.datastore.v1.AggregationQuery.Aggregation.Avg |
| 2349 |
30, // 37: google.datastore.v1.AggregationQuery.Aggregation.Count.up_to:type_name -> google.protobuf.Int64Value |
| 2350 |
10, // 38: google.datastore.v1.AggregationQuery.Aggregation.Sum.property:type_name -> google.datastore.v1.PropertyReference |
| 2351 |
10, // 39: google.datastore.v1.AggregationQuery.Aggregation.Avg.property:type_name -> google.datastore.v1.PropertyReference |
| 2352 |
18, // 40: google.datastore.v1.GqlQuery.NamedBindingsEntry.value:type_name -> google.datastore.v1.GqlQueryParameter |
| 2353 |
41, // [41:41] is the sub-list for method output_type |
| 2354 |
41, // [41:41] is the sub-list for method input_type |
| 2355 |
41, // [41:41] is the sub-list for extension type_name |
| 2356 |
41, // [41:41] is the sub-list for extension extendee |
| 2357 |
0, // [0:41] is the sub-list for field type_name |
| 2358 |
} |
| 2359 |
|
| 2360 |
func init() { file_google_datastore_v1_query_proto_init() } |
| 2361 |
func file_google_datastore_v1_query_proto_init() { |
| 2362 |
if File_google_datastore_v1_query_proto != nil { |
| 2363 |
return |
| 2364 |
} |
| 2365 |
file_google_datastore_v1_entity_proto_init() |
| 2366 |
file_google_datastore_v1_query_proto_msgTypes[2].OneofWrappers = []any{ |
| 2367 |
(*AggregationQuery_NestedQuery)(nil), |
| 2368 |
} |
| 2369 |
file_google_datastore_v1_query_proto_msgTypes[7].OneofWrappers = []any{ |
| 2370 |
(*Filter_CompositeFilter)(nil), |
| 2371 |
(*Filter_PropertyFilter)(nil), |
| 2372 |
} |
| 2373 |
file_google_datastore_v1_query_proto_msgTypes[12].OneofWrappers = []any{ |
| 2374 |
(*GqlQueryParameter_Value)(nil), |
| 2375 |
(*GqlQueryParameter_Cursor)(nil), |
| 2376 |
} |
| 2377 |
file_google_datastore_v1_query_proto_msgTypes[14].OneofWrappers = []any{ |
| 2378 |
(*AggregationQuery_Aggregation_Count_)(nil), |
| 2379 |
(*AggregationQuery_Aggregation_Sum_)(nil), |
| 2380 |
(*AggregationQuery_Aggregation_Avg_)(nil), |
| 2381 |
} |
| 2382 |
type x struct{} |
| 2383 |
out := protoimpl.TypeBuilder{ |
| 2384 |
File: protoimpl.DescBuilder{ |
| 2385 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 2386 |
RawDescriptor: file_google_datastore_v1_query_proto_rawDesc, |
| 2387 |
NumEnums: 6, |
| 2388 |
NumMessages: 19, |
| 2389 |
NumExtensions: 0, |
| 2390 |
NumServices: 0, |
| 2391 |
}, |
| 2392 |
GoTypes: file_google_datastore_v1_query_proto_goTypes, |
| 2393 |
DependencyIndexes: file_google_datastore_v1_query_proto_depIdxs, |
| 2394 |
EnumInfos: file_google_datastore_v1_query_proto_enumTypes, |
| 2395 |
MessageInfos: file_google_datastore_v1_query_proto_msgTypes, |
| 2396 |
}.Build() |
| 2397 |
File_google_datastore_v1_query_proto = out.File |
| 2398 |
file_google_datastore_v1_query_proto_rawDesc = nil |
| 2399 |
file_google_datastore_v1_query_proto_goTypes = nil |
| 2400 |
file_google_datastore_v1_query_proto_depIdxs = nil |
| 2401 |
} |