1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/datastore/v1beta3/query.proto 3 4package datastore // import "google.golang.org/genproto/googleapis/datastore/v1beta3" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import wrappers "github.com/golang/protobuf/ptypes/wrappers" 10import _ "google.golang.org/genproto/googleapis/api/annotations" 11import _ "google.golang.org/genproto/googleapis/type/latlng" 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 23 24// Specifies what data the 'entity' field contains. 25// A `ResultType` is either implied (for example, in `LookupResponse.missing` 26// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context 27// (for example, in message `QueryResultBatch`, field `entity_result_type` 28// specifies a `ResultType` for all the values in field `entity_results`). 29type EntityResult_ResultType int32 30 31const ( 32 // Unspecified. This value is never used. 33 EntityResult_RESULT_TYPE_UNSPECIFIED EntityResult_ResultType = 0 34 // The key and properties. 35 EntityResult_FULL EntityResult_ResultType = 1 36 // A projected subset of properties. The entity may have no key. 37 EntityResult_PROJECTION EntityResult_ResultType = 2 38 // Only the key. 39 EntityResult_KEY_ONLY EntityResult_ResultType = 3 40) 41 42var EntityResult_ResultType_name = map[int32]string{ 43 0: "RESULT_TYPE_UNSPECIFIED", 44 1: "FULL", 45 2: "PROJECTION", 46 3: "KEY_ONLY", 47} 48var EntityResult_ResultType_value = map[string]int32{ 49 "RESULT_TYPE_UNSPECIFIED": 0, 50 "FULL": 1, 51 "PROJECTION": 2, 52 "KEY_ONLY": 3, 53} 54 55func (x EntityResult_ResultType) String() string { 56 return proto.EnumName(EntityResult_ResultType_name, int32(x)) 57} 58func (EntityResult_ResultType) EnumDescriptor() ([]byte, []int) { 59 return fileDescriptor_query_756a9031b51ce9dc, []int{0, 0} 60} 61 62// The sort direction. 63type PropertyOrder_Direction int32 64 65const ( 66 // Unspecified. This value must not be used. 67 PropertyOrder_DIRECTION_UNSPECIFIED PropertyOrder_Direction = 0 68 // Ascending. 69 PropertyOrder_ASCENDING PropertyOrder_Direction = 1 70 // Descending. 71 PropertyOrder_DESCENDING PropertyOrder_Direction = 2 72) 73 74var PropertyOrder_Direction_name = map[int32]string{ 75 0: "DIRECTION_UNSPECIFIED", 76 1: "ASCENDING", 77 2: "DESCENDING", 78} 79var PropertyOrder_Direction_value = map[string]int32{ 80 "DIRECTION_UNSPECIFIED": 0, 81 "ASCENDING": 1, 82 "DESCENDING": 2, 83} 84 85func (x PropertyOrder_Direction) String() string { 86 return proto.EnumName(PropertyOrder_Direction_name, int32(x)) 87} 88func (PropertyOrder_Direction) EnumDescriptor() ([]byte, []int) { 89 return fileDescriptor_query_756a9031b51ce9dc, []int{5, 0} 90} 91 92// A composite filter operator. 93type CompositeFilter_Operator int32 94 95const ( 96 // Unspecified. This value must not be used. 97 CompositeFilter_OPERATOR_UNSPECIFIED CompositeFilter_Operator = 0 98 // The results are required to satisfy each of the combined filters. 99 CompositeFilter_AND CompositeFilter_Operator = 1 100) 101 102var CompositeFilter_Operator_name = map[int32]string{ 103 0: "OPERATOR_UNSPECIFIED", 104 1: "AND", 105} 106var CompositeFilter_Operator_value = map[string]int32{ 107 "OPERATOR_UNSPECIFIED": 0, 108 "AND": 1, 109} 110 111func (x CompositeFilter_Operator) String() string { 112 return proto.EnumName(CompositeFilter_Operator_name, int32(x)) 113} 114func (CompositeFilter_Operator) EnumDescriptor() ([]byte, []int) { 115 return fileDescriptor_query_756a9031b51ce9dc, []int{7, 0} 116} 117 118// A property filter operator. 119type PropertyFilter_Operator int32 120 121const ( 122 // Unspecified. This value must not be used. 123 PropertyFilter_OPERATOR_UNSPECIFIED PropertyFilter_Operator = 0 124 // Less than. 125 PropertyFilter_LESS_THAN PropertyFilter_Operator = 1 126 // Less than or equal. 127 PropertyFilter_LESS_THAN_OR_EQUAL PropertyFilter_Operator = 2 128 // Greater than. 129 PropertyFilter_GREATER_THAN PropertyFilter_Operator = 3 130 // Greater than or equal. 131 PropertyFilter_GREATER_THAN_OR_EQUAL PropertyFilter_Operator = 4 132 // Equal. 133 PropertyFilter_EQUAL PropertyFilter_Operator = 5 134 // Has ancestor. 135 PropertyFilter_HAS_ANCESTOR PropertyFilter_Operator = 11 136) 137 138var PropertyFilter_Operator_name = map[int32]string{ 139 0: "OPERATOR_UNSPECIFIED", 140 1: "LESS_THAN", 141 2: "LESS_THAN_OR_EQUAL", 142 3: "GREATER_THAN", 143 4: "GREATER_THAN_OR_EQUAL", 144 5: "EQUAL", 145 11: "HAS_ANCESTOR", 146} 147var PropertyFilter_Operator_value = map[string]int32{ 148 "OPERATOR_UNSPECIFIED": 0, 149 "LESS_THAN": 1, 150 "LESS_THAN_OR_EQUAL": 2, 151 "GREATER_THAN": 3, 152 "GREATER_THAN_OR_EQUAL": 4, 153 "EQUAL": 5, 154 "HAS_ANCESTOR": 11, 155} 156 157func (x PropertyFilter_Operator) String() string { 158 return proto.EnumName(PropertyFilter_Operator_name, int32(x)) 159} 160func (PropertyFilter_Operator) EnumDescriptor() ([]byte, []int) { 161 return fileDescriptor_query_756a9031b51ce9dc, []int{8, 0} 162} 163 164// The possible values for the `more_results` field. 165type QueryResultBatch_MoreResultsType int32 166 167const ( 168 // Unspecified. This value is never used. 169 QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED QueryResultBatch_MoreResultsType = 0 170 // There may be additional batches to fetch from this query. 171 QueryResultBatch_NOT_FINISHED QueryResultBatch_MoreResultsType = 1 172 // The query is finished, but there may be more results after the limit. 173 QueryResultBatch_MORE_RESULTS_AFTER_LIMIT QueryResultBatch_MoreResultsType = 2 174 // The query is finished, but there may be more results after the end 175 // cursor. 176 QueryResultBatch_MORE_RESULTS_AFTER_CURSOR QueryResultBatch_MoreResultsType = 4 177 // The query is finished, and there are no more results. 178 QueryResultBatch_NO_MORE_RESULTS QueryResultBatch_MoreResultsType = 3 179) 180 181var QueryResultBatch_MoreResultsType_name = map[int32]string{ 182 0: "MORE_RESULTS_TYPE_UNSPECIFIED", 183 1: "NOT_FINISHED", 184 2: "MORE_RESULTS_AFTER_LIMIT", 185 4: "MORE_RESULTS_AFTER_CURSOR", 186 3: "NO_MORE_RESULTS", 187} 188var QueryResultBatch_MoreResultsType_value = map[string]int32{ 189 "MORE_RESULTS_TYPE_UNSPECIFIED": 0, 190 "NOT_FINISHED": 1, 191 "MORE_RESULTS_AFTER_LIMIT": 2, 192 "MORE_RESULTS_AFTER_CURSOR": 4, 193 "NO_MORE_RESULTS": 3, 194} 195 196func (x QueryResultBatch_MoreResultsType) String() string { 197 return proto.EnumName(QueryResultBatch_MoreResultsType_name, int32(x)) 198} 199func (QueryResultBatch_MoreResultsType) EnumDescriptor() ([]byte, []int) { 200 return fileDescriptor_query_756a9031b51ce9dc, []int{11, 0} 201} 202 203// The result of fetching an entity from Datastore. 204type EntityResult struct { 205 // The resulting entity. 206 Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` 207 // The version of the entity, a strictly positive number that monotonically 208 // increases with changes to the entity. 209 // 210 // This field is set for [`FULL`][google.datastore.v1beta3.EntityResult.ResultType.FULL] entity 211 // results. 212 // 213 // For [missing][google.datastore.v1beta3.LookupResponse.missing] entities in `LookupResponse`, this 214 // is the version of the snapshot that was used to look up the entity, and it 215 // is always set except for eventually consistent reads. 216 Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` 217 // A cursor that points to the position after the result entity. 218 // Set only when the `EntityResult` is part of a `QueryResultBatch` message. 219 Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"` 220 XXX_NoUnkeyedLiteral struct{} `json:"-"` 221 XXX_unrecognized []byte `json:"-"` 222 XXX_sizecache int32 `json:"-"` 223} 224 225func (m *EntityResult) Reset() { *m = EntityResult{} } 226func (m *EntityResult) String() string { return proto.CompactTextString(m) } 227func (*EntityResult) ProtoMessage() {} 228func (*EntityResult) Descriptor() ([]byte, []int) { 229 return fileDescriptor_query_756a9031b51ce9dc, []int{0} 230} 231func (m *EntityResult) XXX_Unmarshal(b []byte) error { 232 return xxx_messageInfo_EntityResult.Unmarshal(m, b) 233} 234func (m *EntityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 235 return xxx_messageInfo_EntityResult.Marshal(b, m, deterministic) 236} 237func (dst *EntityResult) XXX_Merge(src proto.Message) { 238 xxx_messageInfo_EntityResult.Merge(dst, src) 239} 240func (m *EntityResult) XXX_Size() int { 241 return xxx_messageInfo_EntityResult.Size(m) 242} 243func (m *EntityResult) XXX_DiscardUnknown() { 244 xxx_messageInfo_EntityResult.DiscardUnknown(m) 245} 246 247var xxx_messageInfo_EntityResult proto.InternalMessageInfo 248 249func (m *EntityResult) GetEntity() *Entity { 250 if m != nil { 251 return m.Entity 252 } 253 return nil 254} 255 256func (m *EntityResult) GetVersion() int64 { 257 if m != nil { 258 return m.Version 259 } 260 return 0 261} 262 263func (m *EntityResult) GetCursor() []byte { 264 if m != nil { 265 return m.Cursor 266 } 267 return nil 268} 269 270// A query for entities. 271type Query struct { 272 // The projection to return. Defaults to returning all properties. 273 Projection []*Projection `protobuf:"bytes,2,rep,name=projection,proto3" json:"projection,omitempty"` 274 // The kinds to query (if empty, returns entities of all kinds). 275 // Currently at most 1 kind may be specified. 276 Kind []*KindExpression `protobuf:"bytes,3,rep,name=kind,proto3" json:"kind,omitempty"` 277 // The filter to apply. 278 Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` 279 // The order to apply to the query results (if empty, order is unspecified). 280 Order []*PropertyOrder `protobuf:"bytes,5,rep,name=order,proto3" json:"order,omitempty"` 281 // The properties to make distinct. The query results will contain the first 282 // result for each distinct combination of values for the given properties 283 // (if empty, all results are returned). 284 DistinctOn []*PropertyReference `protobuf:"bytes,6,rep,name=distinct_on,json=distinctOn,proto3" json:"distinct_on,omitempty"` 285 // A starting point for the query results. Query cursors are 286 // returned in query result batches and 287 // [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). 288 StartCursor []byte `protobuf:"bytes,7,opt,name=start_cursor,json=startCursor,proto3" json:"start_cursor,omitempty"` 289 // An ending point for the query results. Query cursors are 290 // returned in query result batches and 291 // [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). 292 EndCursor []byte `protobuf:"bytes,8,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"` 293 // The number of results to skip. Applies before limit, but after all other 294 // constraints. Optional. Must be >= 0 if specified. 295 Offset int32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` 296 // The maximum number of results to return. Applies after all other 297 // constraints. Optional. 298 // Unspecified is interpreted as no limit. 299 // Must be >= 0 if specified. 300 Limit *wrappers.Int32Value `protobuf:"bytes,12,opt,name=limit,proto3" json:"limit,omitempty"` 301 XXX_NoUnkeyedLiteral struct{} `json:"-"` 302 XXX_unrecognized []byte `json:"-"` 303 XXX_sizecache int32 `json:"-"` 304} 305 306func (m *Query) Reset() { *m = Query{} } 307func (m *Query) String() string { return proto.CompactTextString(m) } 308func (*Query) ProtoMessage() {} 309func (*Query) Descriptor() ([]byte, []int) { 310 return fileDescriptor_query_756a9031b51ce9dc, []int{1} 311} 312func (m *Query) XXX_Unmarshal(b []byte) error { 313 return xxx_messageInfo_Query.Unmarshal(m, b) 314} 315func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 316 return xxx_messageInfo_Query.Marshal(b, m, deterministic) 317} 318func (dst *Query) XXX_Merge(src proto.Message) { 319 xxx_messageInfo_Query.Merge(dst, src) 320} 321func (m *Query) XXX_Size() int { 322 return xxx_messageInfo_Query.Size(m) 323} 324func (m *Query) XXX_DiscardUnknown() { 325 xxx_messageInfo_Query.DiscardUnknown(m) 326} 327 328var xxx_messageInfo_Query proto.InternalMessageInfo 329 330func (m *Query) GetProjection() []*Projection { 331 if m != nil { 332 return m.Projection 333 } 334 return nil 335} 336 337func (m *Query) GetKind() []*KindExpression { 338 if m != nil { 339 return m.Kind 340 } 341 return nil 342} 343 344func (m *Query) GetFilter() *Filter { 345 if m != nil { 346 return m.Filter 347 } 348 return nil 349} 350 351func (m *Query) GetOrder() []*PropertyOrder { 352 if m != nil { 353 return m.Order 354 } 355 return nil 356} 357 358func (m *Query) GetDistinctOn() []*PropertyReference { 359 if m != nil { 360 return m.DistinctOn 361 } 362 return nil 363} 364 365func (m *Query) GetStartCursor() []byte { 366 if m != nil { 367 return m.StartCursor 368 } 369 return nil 370} 371 372func (m *Query) GetEndCursor() []byte { 373 if m != nil { 374 return m.EndCursor 375 } 376 return nil 377} 378 379func (m *Query) GetOffset() int32 { 380 if m != nil { 381 return m.Offset 382 } 383 return 0 384} 385 386func (m *Query) GetLimit() *wrappers.Int32Value { 387 if m != nil { 388 return m.Limit 389 } 390 return nil 391} 392 393// A representation of a kind. 394type KindExpression struct { 395 // The name of the kind. 396 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 397 XXX_NoUnkeyedLiteral struct{} `json:"-"` 398 XXX_unrecognized []byte `json:"-"` 399 XXX_sizecache int32 `json:"-"` 400} 401 402func (m *KindExpression) Reset() { *m = KindExpression{} } 403func (m *KindExpression) String() string { return proto.CompactTextString(m) } 404func (*KindExpression) ProtoMessage() {} 405func (*KindExpression) Descriptor() ([]byte, []int) { 406 return fileDescriptor_query_756a9031b51ce9dc, []int{2} 407} 408func (m *KindExpression) XXX_Unmarshal(b []byte) error { 409 return xxx_messageInfo_KindExpression.Unmarshal(m, b) 410} 411func (m *KindExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 412 return xxx_messageInfo_KindExpression.Marshal(b, m, deterministic) 413} 414func (dst *KindExpression) XXX_Merge(src proto.Message) { 415 xxx_messageInfo_KindExpression.Merge(dst, src) 416} 417func (m *KindExpression) XXX_Size() int { 418 return xxx_messageInfo_KindExpression.Size(m) 419} 420func (m *KindExpression) XXX_DiscardUnknown() { 421 xxx_messageInfo_KindExpression.DiscardUnknown(m) 422} 423 424var xxx_messageInfo_KindExpression proto.InternalMessageInfo 425 426func (m *KindExpression) GetName() string { 427 if m != nil { 428 return m.Name 429 } 430 return "" 431} 432 433// A reference to a property relative to the kind expressions. 434type PropertyReference struct { 435 // The name of the property. 436 // If name includes "."s, it may be interpreted as a property name path. 437 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 438 XXX_NoUnkeyedLiteral struct{} `json:"-"` 439 XXX_unrecognized []byte `json:"-"` 440 XXX_sizecache int32 `json:"-"` 441} 442 443func (m *PropertyReference) Reset() { *m = PropertyReference{} } 444func (m *PropertyReference) String() string { return proto.CompactTextString(m) } 445func (*PropertyReference) ProtoMessage() {} 446func (*PropertyReference) Descriptor() ([]byte, []int) { 447 return fileDescriptor_query_756a9031b51ce9dc, []int{3} 448} 449func (m *PropertyReference) XXX_Unmarshal(b []byte) error { 450 return xxx_messageInfo_PropertyReference.Unmarshal(m, b) 451} 452func (m *PropertyReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 453 return xxx_messageInfo_PropertyReference.Marshal(b, m, deterministic) 454} 455func (dst *PropertyReference) XXX_Merge(src proto.Message) { 456 xxx_messageInfo_PropertyReference.Merge(dst, src) 457} 458func (m *PropertyReference) XXX_Size() int { 459 return xxx_messageInfo_PropertyReference.Size(m) 460} 461func (m *PropertyReference) XXX_DiscardUnknown() { 462 xxx_messageInfo_PropertyReference.DiscardUnknown(m) 463} 464 465var xxx_messageInfo_PropertyReference proto.InternalMessageInfo 466 467func (m *PropertyReference) GetName() string { 468 if m != nil { 469 return m.Name 470 } 471 return "" 472} 473 474// A representation of a property in a projection. 475type Projection struct { 476 // The property to project. 477 Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 478 XXX_NoUnkeyedLiteral struct{} `json:"-"` 479 XXX_unrecognized []byte `json:"-"` 480 XXX_sizecache int32 `json:"-"` 481} 482 483func (m *Projection) Reset() { *m = Projection{} } 484func (m *Projection) String() string { return proto.CompactTextString(m) } 485func (*Projection) ProtoMessage() {} 486func (*Projection) Descriptor() ([]byte, []int) { 487 return fileDescriptor_query_756a9031b51ce9dc, []int{4} 488} 489func (m *Projection) XXX_Unmarshal(b []byte) error { 490 return xxx_messageInfo_Projection.Unmarshal(m, b) 491} 492func (m *Projection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 493 return xxx_messageInfo_Projection.Marshal(b, m, deterministic) 494} 495func (dst *Projection) XXX_Merge(src proto.Message) { 496 xxx_messageInfo_Projection.Merge(dst, src) 497} 498func (m *Projection) XXX_Size() int { 499 return xxx_messageInfo_Projection.Size(m) 500} 501func (m *Projection) XXX_DiscardUnknown() { 502 xxx_messageInfo_Projection.DiscardUnknown(m) 503} 504 505var xxx_messageInfo_Projection proto.InternalMessageInfo 506 507func (m *Projection) GetProperty() *PropertyReference { 508 if m != nil { 509 return m.Property 510 } 511 return nil 512} 513 514// The desired order for a specific property. 515type PropertyOrder struct { 516 // The property to order by. 517 Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 518 // The direction to order by. Defaults to `ASCENDING`. 519 Direction PropertyOrder_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.v1beta3.PropertyOrder_Direction" json:"direction,omitempty"` 520 XXX_NoUnkeyedLiteral struct{} `json:"-"` 521 XXX_unrecognized []byte `json:"-"` 522 XXX_sizecache int32 `json:"-"` 523} 524 525func (m *PropertyOrder) Reset() { *m = PropertyOrder{} } 526func (m *PropertyOrder) String() string { return proto.CompactTextString(m) } 527func (*PropertyOrder) ProtoMessage() {} 528func (*PropertyOrder) Descriptor() ([]byte, []int) { 529 return fileDescriptor_query_756a9031b51ce9dc, []int{5} 530} 531func (m *PropertyOrder) XXX_Unmarshal(b []byte) error { 532 return xxx_messageInfo_PropertyOrder.Unmarshal(m, b) 533} 534func (m *PropertyOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 535 return xxx_messageInfo_PropertyOrder.Marshal(b, m, deterministic) 536} 537func (dst *PropertyOrder) XXX_Merge(src proto.Message) { 538 xxx_messageInfo_PropertyOrder.Merge(dst, src) 539} 540func (m *PropertyOrder) XXX_Size() int { 541 return xxx_messageInfo_PropertyOrder.Size(m) 542} 543func (m *PropertyOrder) XXX_DiscardUnknown() { 544 xxx_messageInfo_PropertyOrder.DiscardUnknown(m) 545} 546 547var xxx_messageInfo_PropertyOrder proto.InternalMessageInfo 548 549func (m *PropertyOrder) GetProperty() *PropertyReference { 550 if m != nil { 551 return m.Property 552 } 553 return nil 554} 555 556func (m *PropertyOrder) GetDirection() PropertyOrder_Direction { 557 if m != nil { 558 return m.Direction 559 } 560 return PropertyOrder_DIRECTION_UNSPECIFIED 561} 562 563// A holder for any type of filter. 564type Filter struct { 565 // The type of filter. 566 // 567 // Types that are valid to be assigned to FilterType: 568 // *Filter_CompositeFilter 569 // *Filter_PropertyFilter 570 FilterType isFilter_FilterType `protobuf_oneof:"filter_type"` 571 XXX_NoUnkeyedLiteral struct{} `json:"-"` 572 XXX_unrecognized []byte `json:"-"` 573 XXX_sizecache int32 `json:"-"` 574} 575 576func (m *Filter) Reset() { *m = Filter{} } 577func (m *Filter) String() string { return proto.CompactTextString(m) } 578func (*Filter) ProtoMessage() {} 579func (*Filter) Descriptor() ([]byte, []int) { 580 return fileDescriptor_query_756a9031b51ce9dc, []int{6} 581} 582func (m *Filter) XXX_Unmarshal(b []byte) error { 583 return xxx_messageInfo_Filter.Unmarshal(m, b) 584} 585func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 586 return xxx_messageInfo_Filter.Marshal(b, m, deterministic) 587} 588func (dst *Filter) XXX_Merge(src proto.Message) { 589 xxx_messageInfo_Filter.Merge(dst, src) 590} 591func (m *Filter) XXX_Size() int { 592 return xxx_messageInfo_Filter.Size(m) 593} 594func (m *Filter) XXX_DiscardUnknown() { 595 xxx_messageInfo_Filter.DiscardUnknown(m) 596} 597 598var xxx_messageInfo_Filter proto.InternalMessageInfo 599 600type isFilter_FilterType interface { 601 isFilter_FilterType() 602} 603 604type Filter_CompositeFilter struct { 605 CompositeFilter *CompositeFilter `protobuf:"bytes,1,opt,name=composite_filter,json=compositeFilter,proto3,oneof"` 606} 607 608type Filter_PropertyFilter struct { 609 PropertyFilter *PropertyFilter `protobuf:"bytes,2,opt,name=property_filter,json=propertyFilter,proto3,oneof"` 610} 611 612func (*Filter_CompositeFilter) isFilter_FilterType() {} 613 614func (*Filter_PropertyFilter) isFilter_FilterType() {} 615 616func (m *Filter) GetFilterType() isFilter_FilterType { 617 if m != nil { 618 return m.FilterType 619 } 620 return nil 621} 622 623func (m *Filter) GetCompositeFilter() *CompositeFilter { 624 if x, ok := m.GetFilterType().(*Filter_CompositeFilter); ok { 625 return x.CompositeFilter 626 } 627 return nil 628} 629 630func (m *Filter) GetPropertyFilter() *PropertyFilter { 631 if x, ok := m.GetFilterType().(*Filter_PropertyFilter); ok { 632 return x.PropertyFilter 633 } 634 return nil 635} 636 637// XXX_OneofFuncs is for the internal use of the proto package. 638func (*Filter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 639 return _Filter_OneofMarshaler, _Filter_OneofUnmarshaler, _Filter_OneofSizer, []interface{}{ 640 (*Filter_CompositeFilter)(nil), 641 (*Filter_PropertyFilter)(nil), 642 } 643} 644 645func _Filter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 646 m := msg.(*Filter) 647 // filter_type 648 switch x := m.FilterType.(type) { 649 case *Filter_CompositeFilter: 650 b.EncodeVarint(1<<3 | proto.WireBytes) 651 if err := b.EncodeMessage(x.CompositeFilter); err != nil { 652 return err 653 } 654 case *Filter_PropertyFilter: 655 b.EncodeVarint(2<<3 | proto.WireBytes) 656 if err := b.EncodeMessage(x.PropertyFilter); err != nil { 657 return err 658 } 659 case nil: 660 default: 661 return fmt.Errorf("Filter.FilterType has unexpected type %T", x) 662 } 663 return nil 664} 665 666func _Filter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 667 m := msg.(*Filter) 668 switch tag { 669 case 1: // filter_type.composite_filter 670 if wire != proto.WireBytes { 671 return true, proto.ErrInternalBadWireType 672 } 673 msg := new(CompositeFilter) 674 err := b.DecodeMessage(msg) 675 m.FilterType = &Filter_CompositeFilter{msg} 676 return true, err 677 case 2: // filter_type.property_filter 678 if wire != proto.WireBytes { 679 return true, proto.ErrInternalBadWireType 680 } 681 msg := new(PropertyFilter) 682 err := b.DecodeMessage(msg) 683 m.FilterType = &Filter_PropertyFilter{msg} 684 return true, err 685 default: 686 return false, nil 687 } 688} 689 690func _Filter_OneofSizer(msg proto.Message) (n int) { 691 m := msg.(*Filter) 692 // filter_type 693 switch x := m.FilterType.(type) { 694 case *Filter_CompositeFilter: 695 s := proto.Size(x.CompositeFilter) 696 n += 1 // tag and wire 697 n += proto.SizeVarint(uint64(s)) 698 n += s 699 case *Filter_PropertyFilter: 700 s := proto.Size(x.PropertyFilter) 701 n += 1 // tag and wire 702 n += proto.SizeVarint(uint64(s)) 703 n += s 704 case nil: 705 default: 706 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 707 } 708 return n 709} 710 711// A filter that merges multiple other filters using the given operator. 712type CompositeFilter struct { 713 // The operator for combining multiple filters. 714 Op CompositeFilter_Operator `protobuf:"varint,1,opt,name=op,proto3,enum=google.datastore.v1beta3.CompositeFilter_Operator" json:"op,omitempty"` 715 // The list of filters to combine. 716 // Must contain at least one filter. 717 Filters []*Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` 718 XXX_NoUnkeyedLiteral struct{} `json:"-"` 719 XXX_unrecognized []byte `json:"-"` 720 XXX_sizecache int32 `json:"-"` 721} 722 723func (m *CompositeFilter) Reset() { *m = CompositeFilter{} } 724func (m *CompositeFilter) String() string { return proto.CompactTextString(m) } 725func (*CompositeFilter) ProtoMessage() {} 726func (*CompositeFilter) Descriptor() ([]byte, []int) { 727 return fileDescriptor_query_756a9031b51ce9dc, []int{7} 728} 729func (m *CompositeFilter) XXX_Unmarshal(b []byte) error { 730 return xxx_messageInfo_CompositeFilter.Unmarshal(m, b) 731} 732func (m *CompositeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 733 return xxx_messageInfo_CompositeFilter.Marshal(b, m, deterministic) 734} 735func (dst *CompositeFilter) XXX_Merge(src proto.Message) { 736 xxx_messageInfo_CompositeFilter.Merge(dst, src) 737} 738func (m *CompositeFilter) XXX_Size() int { 739 return xxx_messageInfo_CompositeFilter.Size(m) 740} 741func (m *CompositeFilter) XXX_DiscardUnknown() { 742 xxx_messageInfo_CompositeFilter.DiscardUnknown(m) 743} 744 745var xxx_messageInfo_CompositeFilter proto.InternalMessageInfo 746 747func (m *CompositeFilter) GetOp() CompositeFilter_Operator { 748 if m != nil { 749 return m.Op 750 } 751 return CompositeFilter_OPERATOR_UNSPECIFIED 752} 753 754func (m *CompositeFilter) GetFilters() []*Filter { 755 if m != nil { 756 return m.Filters 757 } 758 return nil 759} 760 761// A filter on a specific property. 762type PropertyFilter struct { 763 // The property to filter by. 764 Property *PropertyReference `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"` 765 // The operator to filter by. 766 Op PropertyFilter_Operator `protobuf:"varint,2,opt,name=op,proto3,enum=google.datastore.v1beta3.PropertyFilter_Operator" json:"op,omitempty"` 767 // The value to compare the property to. 768 Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 769 XXX_NoUnkeyedLiteral struct{} `json:"-"` 770 XXX_unrecognized []byte `json:"-"` 771 XXX_sizecache int32 `json:"-"` 772} 773 774func (m *PropertyFilter) Reset() { *m = PropertyFilter{} } 775func (m *PropertyFilter) String() string { return proto.CompactTextString(m) } 776func (*PropertyFilter) ProtoMessage() {} 777func (*PropertyFilter) Descriptor() ([]byte, []int) { 778 return fileDescriptor_query_756a9031b51ce9dc, []int{8} 779} 780func (m *PropertyFilter) XXX_Unmarshal(b []byte) error { 781 return xxx_messageInfo_PropertyFilter.Unmarshal(m, b) 782} 783func (m *PropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 784 return xxx_messageInfo_PropertyFilter.Marshal(b, m, deterministic) 785} 786func (dst *PropertyFilter) XXX_Merge(src proto.Message) { 787 xxx_messageInfo_PropertyFilter.Merge(dst, src) 788} 789func (m *PropertyFilter) XXX_Size() int { 790 return xxx_messageInfo_PropertyFilter.Size(m) 791} 792func (m *PropertyFilter) XXX_DiscardUnknown() { 793 xxx_messageInfo_PropertyFilter.DiscardUnknown(m) 794} 795 796var xxx_messageInfo_PropertyFilter proto.InternalMessageInfo 797 798func (m *PropertyFilter) GetProperty() *PropertyReference { 799 if m != nil { 800 return m.Property 801 } 802 return nil 803} 804 805func (m *PropertyFilter) GetOp() PropertyFilter_Operator { 806 if m != nil { 807 return m.Op 808 } 809 return PropertyFilter_OPERATOR_UNSPECIFIED 810} 811 812func (m *PropertyFilter) GetValue() *Value { 813 if m != nil { 814 return m.Value 815 } 816 return nil 817} 818 819// A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). 820type GqlQuery struct { 821 // A string of the format described 822 // [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). 823 QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"` 824 // When false, the query string must not contain any literals and instead must 825 // bind all values. For example, 826 // `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while 827 // `SELECT * FROM Kind WHERE a = @value` is. 828 AllowLiterals bool `protobuf:"varint,2,opt,name=allow_literals,json=allowLiterals,proto3" json:"allow_literals,omitempty"` 829 // For each non-reserved named binding site in the query string, there must be 830 // a named parameter with that name, but not necessarily the inverse. 831 // 832 // Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex 833 // `__.*__`, and must not be `""`. 834 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"` 835 // Numbered binding site @1 references the first numbered parameter, 836 // effectively using 1-based indexing, rather than the usual 0. 837 // 838 // For each binding site numbered i in `query_string`, there must be an i-th 839 // numbered parameter. The inverse must also be true. 840 PositionalBindings []*GqlQueryParameter `protobuf:"bytes,4,rep,name=positional_bindings,json=positionalBindings,proto3" json:"positional_bindings,omitempty"` 841 XXX_NoUnkeyedLiteral struct{} `json:"-"` 842 XXX_unrecognized []byte `json:"-"` 843 XXX_sizecache int32 `json:"-"` 844} 845 846func (m *GqlQuery) Reset() { *m = GqlQuery{} } 847func (m *GqlQuery) String() string { return proto.CompactTextString(m) } 848func (*GqlQuery) ProtoMessage() {} 849func (*GqlQuery) Descriptor() ([]byte, []int) { 850 return fileDescriptor_query_756a9031b51ce9dc, []int{9} 851} 852func (m *GqlQuery) XXX_Unmarshal(b []byte) error { 853 return xxx_messageInfo_GqlQuery.Unmarshal(m, b) 854} 855func (m *GqlQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 856 return xxx_messageInfo_GqlQuery.Marshal(b, m, deterministic) 857} 858func (dst *GqlQuery) XXX_Merge(src proto.Message) { 859 xxx_messageInfo_GqlQuery.Merge(dst, src) 860} 861func (m *GqlQuery) XXX_Size() int { 862 return xxx_messageInfo_GqlQuery.Size(m) 863} 864func (m *GqlQuery) XXX_DiscardUnknown() { 865 xxx_messageInfo_GqlQuery.DiscardUnknown(m) 866} 867 868var xxx_messageInfo_GqlQuery proto.InternalMessageInfo 869 870func (m *GqlQuery) GetQueryString() string { 871 if m != nil { 872 return m.QueryString 873 } 874 return "" 875} 876 877func (m *GqlQuery) GetAllowLiterals() bool { 878 if m != nil { 879 return m.AllowLiterals 880 } 881 return false 882} 883 884func (m *GqlQuery) GetNamedBindings() map[string]*GqlQueryParameter { 885 if m != nil { 886 return m.NamedBindings 887 } 888 return nil 889} 890 891func (m *GqlQuery) GetPositionalBindings() []*GqlQueryParameter { 892 if m != nil { 893 return m.PositionalBindings 894 } 895 return nil 896} 897 898// A binding parameter for a GQL query. 899type GqlQueryParameter struct { 900 // The type of parameter. 901 // 902 // Types that are valid to be assigned to ParameterType: 903 // *GqlQueryParameter_Value 904 // *GqlQueryParameter_Cursor 905 ParameterType isGqlQueryParameter_ParameterType `protobuf_oneof:"parameter_type"` 906 XXX_NoUnkeyedLiteral struct{} `json:"-"` 907 XXX_unrecognized []byte `json:"-"` 908 XXX_sizecache int32 `json:"-"` 909} 910 911func (m *GqlQueryParameter) Reset() { *m = GqlQueryParameter{} } 912func (m *GqlQueryParameter) String() string { return proto.CompactTextString(m) } 913func (*GqlQueryParameter) ProtoMessage() {} 914func (*GqlQueryParameter) Descriptor() ([]byte, []int) { 915 return fileDescriptor_query_756a9031b51ce9dc, []int{10} 916} 917func (m *GqlQueryParameter) XXX_Unmarshal(b []byte) error { 918 return xxx_messageInfo_GqlQueryParameter.Unmarshal(m, b) 919} 920func (m *GqlQueryParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 921 return xxx_messageInfo_GqlQueryParameter.Marshal(b, m, deterministic) 922} 923func (dst *GqlQueryParameter) XXX_Merge(src proto.Message) { 924 xxx_messageInfo_GqlQueryParameter.Merge(dst, src) 925} 926func (m *GqlQueryParameter) XXX_Size() int { 927 return xxx_messageInfo_GqlQueryParameter.Size(m) 928} 929func (m *GqlQueryParameter) XXX_DiscardUnknown() { 930 xxx_messageInfo_GqlQueryParameter.DiscardUnknown(m) 931} 932 933var xxx_messageInfo_GqlQueryParameter proto.InternalMessageInfo 934 935type isGqlQueryParameter_ParameterType interface { 936 isGqlQueryParameter_ParameterType() 937} 938 939type GqlQueryParameter_Value struct { 940 Value *Value `protobuf:"bytes,2,opt,name=value,proto3,oneof"` 941} 942 943type GqlQueryParameter_Cursor struct { 944 Cursor []byte `protobuf:"bytes,3,opt,name=cursor,proto3,oneof"` 945} 946 947func (*GqlQueryParameter_Value) isGqlQueryParameter_ParameterType() {} 948 949func (*GqlQueryParameter_Cursor) isGqlQueryParameter_ParameterType() {} 950 951func (m *GqlQueryParameter) GetParameterType() isGqlQueryParameter_ParameterType { 952 if m != nil { 953 return m.ParameterType 954 } 955 return nil 956} 957 958func (m *GqlQueryParameter) GetValue() *Value { 959 if x, ok := m.GetParameterType().(*GqlQueryParameter_Value); ok { 960 return x.Value 961 } 962 return nil 963} 964 965func (m *GqlQueryParameter) GetCursor() []byte { 966 if x, ok := m.GetParameterType().(*GqlQueryParameter_Cursor); ok { 967 return x.Cursor 968 } 969 return nil 970} 971 972// XXX_OneofFuncs is for the internal use of the proto package. 973func (*GqlQueryParameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 974 return _GqlQueryParameter_OneofMarshaler, _GqlQueryParameter_OneofUnmarshaler, _GqlQueryParameter_OneofSizer, []interface{}{ 975 (*GqlQueryParameter_Value)(nil), 976 (*GqlQueryParameter_Cursor)(nil), 977 } 978} 979 980func _GqlQueryParameter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 981 m := msg.(*GqlQueryParameter) 982 // parameter_type 983 switch x := m.ParameterType.(type) { 984 case *GqlQueryParameter_Value: 985 b.EncodeVarint(2<<3 | proto.WireBytes) 986 if err := b.EncodeMessage(x.Value); err != nil { 987 return err 988 } 989 case *GqlQueryParameter_Cursor: 990 b.EncodeVarint(3<<3 | proto.WireBytes) 991 b.EncodeRawBytes(x.Cursor) 992 case nil: 993 default: 994 return fmt.Errorf("GqlQueryParameter.ParameterType has unexpected type %T", x) 995 } 996 return nil 997} 998 999func _GqlQueryParameter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 1000 m := msg.(*GqlQueryParameter) 1001 switch tag { 1002 case 2: // parameter_type.value 1003 if wire != proto.WireBytes { 1004 return true, proto.ErrInternalBadWireType 1005 } 1006 msg := new(Value) 1007 err := b.DecodeMessage(msg) 1008 m.ParameterType = &GqlQueryParameter_Value{msg} 1009 return true, err 1010 case 3: // parameter_type.cursor 1011 if wire != proto.WireBytes { 1012 return true, proto.ErrInternalBadWireType 1013 } 1014 x, err := b.DecodeRawBytes(true) 1015 m.ParameterType = &GqlQueryParameter_Cursor{x} 1016 return true, err 1017 default: 1018 return false, nil 1019 } 1020} 1021 1022func _GqlQueryParameter_OneofSizer(msg proto.Message) (n int) { 1023 m := msg.(*GqlQueryParameter) 1024 // parameter_type 1025 switch x := m.ParameterType.(type) { 1026 case *GqlQueryParameter_Value: 1027 s := proto.Size(x.Value) 1028 n += 1 // tag and wire 1029 n += proto.SizeVarint(uint64(s)) 1030 n += s 1031 case *GqlQueryParameter_Cursor: 1032 n += 1 // tag and wire 1033 n += proto.SizeVarint(uint64(len(x.Cursor))) 1034 n += len(x.Cursor) 1035 case nil: 1036 default: 1037 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 1038 } 1039 return n 1040} 1041 1042// A batch of results produced by a query. 1043type QueryResultBatch struct { 1044 // The number of results skipped, typically because of an offset. 1045 SkippedResults int32 `protobuf:"varint,6,opt,name=skipped_results,json=skippedResults,proto3" json:"skipped_results,omitempty"` 1046 // A cursor that points to the position after the last skipped result. 1047 // Will be set when `skipped_results` != 0. 1048 SkippedCursor []byte `protobuf:"bytes,3,opt,name=skipped_cursor,json=skippedCursor,proto3" json:"skipped_cursor,omitempty"` 1049 // The result type for every entity in `entity_results`. 1050 EntityResultType EntityResult_ResultType `protobuf:"varint,1,opt,name=entity_result_type,json=entityResultType,proto3,enum=google.datastore.v1beta3.EntityResult_ResultType" json:"entity_result_type,omitempty"` 1051 // The results for this batch. 1052 EntityResults []*EntityResult `protobuf:"bytes,2,rep,name=entity_results,json=entityResults,proto3" json:"entity_results,omitempty"` 1053 // A cursor that points to the position after the last result in the batch. 1054 EndCursor []byte `protobuf:"bytes,4,opt,name=end_cursor,json=endCursor,proto3" json:"end_cursor,omitempty"` 1055 // The state of the query after the current batch. 1056 MoreResults QueryResultBatch_MoreResultsType `protobuf:"varint,5,opt,name=more_results,json=moreResults,proto3,enum=google.datastore.v1beta3.QueryResultBatch_MoreResultsType" json:"more_results,omitempty"` 1057 // The version number of the snapshot this batch was returned from. 1058 // This applies to the range of results from the query's `start_cursor` (or 1059 // the beginning of the query if no cursor was given) to this batch's 1060 // `end_cursor` (not the query's `end_cursor`). 1061 // 1062 // In a single transaction, subsequent query result batches for the same query 1063 // can have a greater snapshot version number. Each batch's snapshot version 1064 // is valid for all preceding batches. 1065 // The value will be zero for eventually consistent queries. 1066 SnapshotVersion int64 `protobuf:"varint,7,opt,name=snapshot_version,json=snapshotVersion,proto3" json:"snapshot_version,omitempty"` 1067 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1068 XXX_unrecognized []byte `json:"-"` 1069 XXX_sizecache int32 `json:"-"` 1070} 1071 1072func (m *QueryResultBatch) Reset() { *m = QueryResultBatch{} } 1073func (m *QueryResultBatch) String() string { return proto.CompactTextString(m) } 1074func (*QueryResultBatch) ProtoMessage() {} 1075func (*QueryResultBatch) Descriptor() ([]byte, []int) { 1076 return fileDescriptor_query_756a9031b51ce9dc, []int{11} 1077} 1078func (m *QueryResultBatch) XXX_Unmarshal(b []byte) error { 1079 return xxx_messageInfo_QueryResultBatch.Unmarshal(m, b) 1080} 1081func (m *QueryResultBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1082 return xxx_messageInfo_QueryResultBatch.Marshal(b, m, deterministic) 1083} 1084func (dst *QueryResultBatch) XXX_Merge(src proto.Message) { 1085 xxx_messageInfo_QueryResultBatch.Merge(dst, src) 1086} 1087func (m *QueryResultBatch) XXX_Size() int { 1088 return xxx_messageInfo_QueryResultBatch.Size(m) 1089} 1090func (m *QueryResultBatch) XXX_DiscardUnknown() { 1091 xxx_messageInfo_QueryResultBatch.DiscardUnknown(m) 1092} 1093 1094var xxx_messageInfo_QueryResultBatch proto.InternalMessageInfo 1095 1096func (m *QueryResultBatch) GetSkippedResults() int32 { 1097 if m != nil { 1098 return m.SkippedResults 1099 } 1100 return 0 1101} 1102 1103func (m *QueryResultBatch) GetSkippedCursor() []byte { 1104 if m != nil { 1105 return m.SkippedCursor 1106 } 1107 return nil 1108} 1109 1110func (m *QueryResultBatch) GetEntityResultType() EntityResult_ResultType { 1111 if m != nil { 1112 return m.EntityResultType 1113 } 1114 return EntityResult_RESULT_TYPE_UNSPECIFIED 1115} 1116 1117func (m *QueryResultBatch) GetEntityResults() []*EntityResult { 1118 if m != nil { 1119 return m.EntityResults 1120 } 1121 return nil 1122} 1123 1124func (m *QueryResultBatch) GetEndCursor() []byte { 1125 if m != nil { 1126 return m.EndCursor 1127 } 1128 return nil 1129} 1130 1131func (m *QueryResultBatch) GetMoreResults() QueryResultBatch_MoreResultsType { 1132 if m != nil { 1133 return m.MoreResults 1134 } 1135 return QueryResultBatch_MORE_RESULTS_TYPE_UNSPECIFIED 1136} 1137 1138func (m *QueryResultBatch) GetSnapshotVersion() int64 { 1139 if m != nil { 1140 return m.SnapshotVersion 1141 } 1142 return 0 1143} 1144 1145func init() { 1146 proto.RegisterType((*EntityResult)(nil), "google.datastore.v1beta3.EntityResult") 1147 proto.RegisterType((*Query)(nil), "google.datastore.v1beta3.Query") 1148 proto.RegisterType((*KindExpression)(nil), "google.datastore.v1beta3.KindExpression") 1149 proto.RegisterType((*PropertyReference)(nil), "google.datastore.v1beta3.PropertyReference") 1150 proto.RegisterType((*Projection)(nil), "google.datastore.v1beta3.Projection") 1151 proto.RegisterType((*PropertyOrder)(nil), "google.datastore.v1beta3.PropertyOrder") 1152 proto.RegisterType((*Filter)(nil), "google.datastore.v1beta3.Filter") 1153 proto.RegisterType((*CompositeFilter)(nil), "google.datastore.v1beta3.CompositeFilter") 1154 proto.RegisterType((*PropertyFilter)(nil), "google.datastore.v1beta3.PropertyFilter") 1155 proto.RegisterType((*GqlQuery)(nil), "google.datastore.v1beta3.GqlQuery") 1156 proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQuery.NamedBindingsEntry") 1157 proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQueryParameter") 1158 proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1beta3.QueryResultBatch") 1159 proto.RegisterEnum("google.datastore.v1beta3.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value) 1160 proto.RegisterEnum("google.datastore.v1beta3.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value) 1161 proto.RegisterEnum("google.datastore.v1beta3.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value) 1162 proto.RegisterEnum("google.datastore.v1beta3.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value) 1163 proto.RegisterEnum("google.datastore.v1beta3.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value) 1164} 1165 1166func init() { 1167 proto.RegisterFile("google/datastore/v1beta3/query.proto", fileDescriptor_query_756a9031b51ce9dc) 1168} 1169 1170var fileDescriptor_query_756a9031b51ce9dc = []byte{ 1171 // 1323 bytes of a gzipped FileDescriptorProto 1172 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46, 1173 0x14, 0x35, 0xa9, 0x87, 0xa5, 0xab, 0x17, 0x33, 0x69, 0x53, 0xc6, 0x79, 0xd4, 0x21, 0x92, 0x46, 1174 0x41, 0x51, 0x09, 0x56, 0x10, 0x34, 0x48, 0xdb, 0x85, 0x1e, 0xb4, 0xad, 0x46, 0x16, 0x95, 0x91, 1175 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0x2e, 0xdc, 0x27, 0x01, 0x3d, 0x37, 0x22, 0x38, 0xe6, 0x2c, 0xd4, 0x81, 1198 0xdc, 0xc8, 0x0e, 0xa9, 0xed, 0x0e, 0xa9, 0xe9, 0xb9, 0x6a, 0x9a, 0x89, 0x7c, 0xbe, 0x5e, 0x04, 1199 0x93, 0x53, 0x12, 0x10, 0x77, 0x48, 0x30, 0xc4, 0x7c, 0xc3, 0x45, 0x77, 0x20, 0x1f, 0x52, 0x2b, 1200 0xa0, 0xa6, 0xf8, 0x8a, 0x9b, 0xec, 0x2b, 0xe6, 0x58, 0xac, 0xc9, 0x42, 0xe8, 0x16, 0x00, 0x71, 1201 0x47, 0x31, 0x20, 0xc3, 0x00, 0x59, 0xe2, 0x8e, 0xc4, 0xf4, 0x35, 0x48, 0x7b, 0xa7, 0xa7, 0x21, 1202 0xa1, 0x2a, 0x6c, 0x4b, 0xe5, 0x14, 0x16, 0x23, 0xb4, 0x03, 0x29, 0xc7, 0x9e, 0xd8, 0x54, 0xcd, 1203 0x33, 0x7f, 0x6e, 0xc4, 0x2b, 0x8c, 0x0b, 0xb9, 0xd2, 0x76, 0xe9, 0xc3, 0xda, 0x91, 0xe5, 0x9c, 1204 0x11, 0xcc, 0x91, 0xda, 0x5d, 0x28, 0x2e, 0x7a, 0x8d, 0x10, 0x24, 0x5d, 0x6b, 0x42, 0x58, 0xc1, 1205 0x66, 0x31, 0xfb, 0xad, 0xdd, 0x87, 0x2b, 0x17, 0xf6, 0x34, 0x05, 0xca, 0x73, 0xc0, 0x43, 0x80, 1206 0xd9, 0xa7, 0x47, 0x7b, 0x90, 0xf1, 0x05, 0x4d, 0xd4, 0xff, 0xff, 0x32, 0x6d, 0x4a, 0xd6, 0xfe, 1207 0x91, 0xa0, 0xb0, 0xf0, 0x65, 0x3e, 0x98, 0x34, 0x32, 0x20, 0x3b, 0xb2, 0x83, 0x69, 0x5d, 0x4b, 1208 0xe5, 0x62, 0x6d, 0xe7, 0x92, 0xe5, 0x51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bb, 0x9c, 0x78, 0x04, 0xa9, 0xd7, 0xd1, 0x89, 1220 0x66, 0xaf, 0x41, 0xae, 0xf6, 0xe9, 0x6a, 0x15, 0x71, 0xf0, 0x19, 0x5a, 0xfb, 0x51, 0xba, 0x94, 1221 0x0b, 0x05, 0xc8, 0x76, 0xf4, 0x7e, 0xdf, 0x1c, 0xec, 0xd7, 0xbb, 0x8a, 0x84, 0xae, 0x01, 0x9a, 1222 0x0e, 0x4d, 0x03, 0x9b, 0xfa, 0xb3, 0xc3, 0x7a, 0x47, 0x91, 0x91, 0x02, 0xf9, 0x3d, 0xac, 0xd7, 1223 0x07, 0x3a, 0xe6, 0xc8, 0x44, 0x54, 0xf9, 0xf3, 0x91, 0x19, 0x38, 0x89, 0xb2, 0x90, 0xe2, 0x3f, 1224 0x53, 0x11, 0x6f, 0xbf, 0xde, 0x37, 0xeb, 0xdd, 0xa6, 0xde, 0x1f, 0x18, 0x58, 0xc9, 0x69, 0xff, 1225 0xca, 0x90, 0xd9, 0x7b, 0xe5, 0xf0, 0x57, 0xe7, 0x0e, 0xe4, 0xd9, 0xbb, 0x6f, 0x86, 0x34, 0xb0, 1226 0xdd, 0xb1, 0xb8, 0x93, 0x72, 0x2c, 0xd6, 0x67, 0x21, 0x74, 0x0f, 0x8a, 0x96, 0xe3, 0x78, 0x6f, 1227 0x4c, 0xc7, 0xa6, 0x24, 0xb0, 0x9c, 0x90, 0xb9, 0x99, 0xc1, 0x05, 0x16, 0xed, 0x88, 0x20, 0x3a, 1228 0x86, 0x62, 0x74, 0x41, 0x8d, 0xcc, 0x13, 0xdb, 0x1d, 0xd9, 0xee, 0x38, 0x14, 0x4f, 0xc1, 0xa3, 1229 0xd5, 0x76, 0xc5, 0xab, 0xa8, 0x74, 0x23, 0x62, 0x43, 0xf0, 0x74, 0x97, 0x06, 0xe7, 0xb8, 0xe0, 1230 0xce, 0xc7, 0xd0, 0x31, 0x5c, 0x65, 0xa5, 0x6a, 0x7b, 0xae, 0xe5, 0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0, 1253 0x31, 0x03, 0x1c, 0x4f, 0x01, 0xc7, 0x47, 0x5c, 0xeb, 0x24, 0xcd, 0xf2, 0x3d, 0xfc, 0x2f, 0x00, 1254 0x00, 0xff, 0xff, 0x61, 0xdf, 0x90, 0xd9, 0x13, 0x0d, 0x00, 0x00, 1255} 1256