1// Code generated by protoc_gen_go. DO NOT EDIT. 2 3/* 4Package search is a generated protocol buffer package. 5 6It is generated from these files: 7 appengine_internal/search 8 9It has these top-level messages: 10 Scope 11 Entry 12 AccessControlList 13 FieldValue 14 Field 15 FieldTypes 16 IndexShardSettings 17 FacetValue 18 Facet 19 DocumentMetadata 20 Document 21 SearchServiceError 22 RequestStatus 23 IndexSpec 24 IndexMetadata 25 IndexDocumentParams 26 IndexDocumentRequest 27 IndexDocumentResponse 28 DeleteDocumentParams 29 DeleteDocumentRequest 30 DeleteDocumentResponse 31 ListDocumentsParams 32 ListDocumentsRequest 33 ListDocumentsResponse 34 DeleteIndexParams 35 DeleteIndexRequest 36 DeleteIndexResponse 37 CancelDeleteIndexParams 38 CancelDeleteIndexRequest 39 CancelDeleteIndexResponse 40 ListIndexesParams 41 ListIndexesRequest 42 ListIndexesResponse 43 DeleteSchemaParams 44 DeleteSchemaRequest 45 DeleteSchemaResponse 46 SortSpec 47 ScorerSpec 48 FieldSpec 49 FacetRange 50 FacetRequestParam 51 FacetAutoDetectParam 52 FacetRequest 53 FacetRefinement 54 SearchParams 55 SearchRequest 56 FacetResultValue 57 FacetResult 58 SearchResult 59 SearchResponse 60*/ 61package search 62 63import proto "appengine_internal/github.com/golang/protobuf/proto" 64import fmt "fmt" 65import math "math" 66 67// Reference imports to suppress errors if they are not otherwise used. 68var _ = proto.Marshal 69var _ = fmt.Errorf 70var _ = math.Inf 71 72// This is a compile-time assertion to ensure that this generated file 73// is compatible with the proto package it is being compiled against. 74// A compilation error at this line likely means your copy of the 75// proto package needs to be updated. 76const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 77 78type Scope_Type int32 79 80const ( 81 Scope_USER_BY_CANONICAL_ID Scope_Type = 1 82 Scope_USER_BY_EMAIL Scope_Type = 2 83 Scope_GROUP_BY_CANONICAL_ID Scope_Type = 3 84 Scope_GROUP_BY_EMAIL Scope_Type = 4 85 Scope_GROUP_BY_DOMAIN Scope_Type = 5 86 Scope_ALL_USERS Scope_Type = 6 87 Scope_ALL_AUTHENTICATED_USERS Scope_Type = 7 88) 89 90var Scope_Type_name = map[int32]string{ 91 1: "USER_BY_CANONICAL_ID", 92 2: "USER_BY_EMAIL", 93 3: "GROUP_BY_CANONICAL_ID", 94 4: "GROUP_BY_EMAIL", 95 5: "GROUP_BY_DOMAIN", 96 6: "ALL_USERS", 97 7: "ALL_AUTHENTICATED_USERS", 98} 99var Scope_Type_value = map[string]int32{ 100 "USER_BY_CANONICAL_ID": 1, 101 "USER_BY_EMAIL": 2, 102 "GROUP_BY_CANONICAL_ID": 3, 103 "GROUP_BY_EMAIL": 4, 104 "GROUP_BY_DOMAIN": 5, 105 "ALL_USERS": 6, 106 "ALL_AUTHENTICATED_USERS": 7, 107} 108 109func (x Scope_Type) Enum() *Scope_Type { 110 p := new(Scope_Type) 111 *p = x 112 return p 113} 114func (x Scope_Type) String() string { 115 return proto.EnumName(Scope_Type_name, int32(x)) 116} 117func (x *Scope_Type) UnmarshalJSON(data []byte) error { 118 value, err := proto.UnmarshalJSONEnum(Scope_Type_value, data, "Scope_Type") 119 if err != nil { 120 return err 121 } 122 *x = Scope_Type(value) 123 return nil 124} 125 126type Entry_Permission int32 127 128const ( 129 Entry_READ Entry_Permission = 1 130 Entry_WRITE Entry_Permission = 2 131 Entry_FULL_CONTROL Entry_Permission = 3 132) 133 134var Entry_Permission_name = map[int32]string{ 135 1: "READ", 136 2: "WRITE", 137 3: "FULL_CONTROL", 138} 139var Entry_Permission_value = map[string]int32{ 140 "READ": 1, 141 "WRITE": 2, 142 "FULL_CONTROL": 3, 143} 144 145func (x Entry_Permission) Enum() *Entry_Permission { 146 p := new(Entry_Permission) 147 *p = x 148 return p 149} 150func (x Entry_Permission) String() string { 151 return proto.EnumName(Entry_Permission_name, int32(x)) 152} 153func (x *Entry_Permission) UnmarshalJSON(data []byte) error { 154 value, err := proto.UnmarshalJSONEnum(Entry_Permission_value, data, "Entry_Permission") 155 if err != nil { 156 return err 157 } 158 *x = Entry_Permission(value) 159 return nil 160} 161 162type FieldValue_ContentType int32 163 164const ( 165 FieldValue_TEXT FieldValue_ContentType = 0 166 FieldValue_HTML FieldValue_ContentType = 1 167 FieldValue_ATOM FieldValue_ContentType = 2 168 FieldValue_DATE FieldValue_ContentType = 3 169 FieldValue_NUMBER FieldValue_ContentType = 4 170 FieldValue_GEO FieldValue_ContentType = 5 171 FieldValue_UNTOKENIZED_PREFIX FieldValue_ContentType = 6 172 FieldValue_TOKENIZED_PREFIX FieldValue_ContentType = 7 173 FieldValue_VECTOR FieldValue_ContentType = 8 174) 175 176var FieldValue_ContentType_name = map[int32]string{ 177 0: "TEXT", 178 1: "HTML", 179 2: "ATOM", 180 3: "DATE", 181 4: "NUMBER", 182 5: "GEO", 183 6: "UNTOKENIZED_PREFIX", 184 7: "TOKENIZED_PREFIX", 185 8: "VECTOR", 186} 187var FieldValue_ContentType_value = map[string]int32{ 188 "TEXT": 0, 189 "HTML": 1, 190 "ATOM": 2, 191 "DATE": 3, 192 "NUMBER": 4, 193 "GEO": 5, 194 "UNTOKENIZED_PREFIX": 6, 195 "TOKENIZED_PREFIX": 7, 196 "VECTOR": 8, 197} 198 199func (x FieldValue_ContentType) Enum() *FieldValue_ContentType { 200 p := new(FieldValue_ContentType) 201 *p = x 202 return p 203} 204func (x FieldValue_ContentType) String() string { 205 return proto.EnumName(FieldValue_ContentType_name, int32(x)) 206} 207func (x *FieldValue_ContentType) UnmarshalJSON(data []byte) error { 208 value, err := proto.UnmarshalJSONEnum(FieldValue_ContentType_value, data, "FieldValue_ContentType") 209 if err != nil { 210 return err 211 } 212 *x = FieldValue_ContentType(value) 213 return nil 214} 215 216type FacetValue_ContentType int32 217 218const ( 219 FacetValue_ATOM FacetValue_ContentType = 2 220 FacetValue_NUMBER FacetValue_ContentType = 4 221) 222 223var FacetValue_ContentType_name = map[int32]string{ 224 2: "ATOM", 225 4: "NUMBER", 226} 227var FacetValue_ContentType_value = map[string]int32{ 228 "ATOM": 2, 229 "NUMBER": 4, 230} 231 232func (x FacetValue_ContentType) Enum() *FacetValue_ContentType { 233 p := new(FacetValue_ContentType) 234 *p = x 235 return p 236} 237func (x FacetValue_ContentType) String() string { 238 return proto.EnumName(FacetValue_ContentType_name, int32(x)) 239} 240func (x *FacetValue_ContentType) UnmarshalJSON(data []byte) error { 241 value, err := proto.UnmarshalJSONEnum(FacetValue_ContentType_value, data, "FacetValue_ContentType") 242 if err != nil { 243 return err 244 } 245 *x = FacetValue_ContentType(value) 246 return nil 247} 248 249type Document_OrderIdSource int32 250 251const ( 252 Document_DEFAULTED Document_OrderIdSource = 0 253 Document_SUPPLIED Document_OrderIdSource = 1 254) 255 256var Document_OrderIdSource_name = map[int32]string{ 257 0: "DEFAULTED", 258 1: "SUPPLIED", 259} 260var Document_OrderIdSource_value = map[string]int32{ 261 "DEFAULTED": 0, 262 "SUPPLIED": 1, 263} 264 265func (x Document_OrderIdSource) Enum() *Document_OrderIdSource { 266 p := new(Document_OrderIdSource) 267 *p = x 268 return p 269} 270func (x Document_OrderIdSource) String() string { 271 return proto.EnumName(Document_OrderIdSource_name, int32(x)) 272} 273func (x *Document_OrderIdSource) UnmarshalJSON(data []byte) error { 274 value, err := proto.UnmarshalJSONEnum(Document_OrderIdSource_value, data, "Document_OrderIdSource") 275 if err != nil { 276 return err 277 } 278 *x = Document_OrderIdSource(value) 279 return nil 280} 281 282type Document_Storage int32 283 284const ( 285 Document_DISK Document_Storage = 0 286) 287 288var Document_Storage_name = map[int32]string{ 289 0: "DISK", 290} 291var Document_Storage_value = map[string]int32{ 292 "DISK": 0, 293} 294 295func (x Document_Storage) Enum() *Document_Storage { 296 p := new(Document_Storage) 297 *p = x 298 return p 299} 300func (x Document_Storage) String() string { 301 return proto.EnumName(Document_Storage_name, int32(x)) 302} 303func (x *Document_Storage) UnmarshalJSON(data []byte) error { 304 value, err := proto.UnmarshalJSONEnum(Document_Storage_value, data, "Document_Storage") 305 if err != nil { 306 return err 307 } 308 *x = Document_Storage(value) 309 return nil 310} 311 312type SearchServiceError_ErrorCode int32 313 314const ( 315 SearchServiceError_OK SearchServiceError_ErrorCode = 0 316 SearchServiceError_INVALID_REQUEST SearchServiceError_ErrorCode = 1 317 SearchServiceError_TRANSIENT_ERROR SearchServiceError_ErrorCode = 2 318 SearchServiceError_INTERNAL_ERROR SearchServiceError_ErrorCode = 3 319 SearchServiceError_PERMISSION_DENIED SearchServiceError_ErrorCode = 4 320 SearchServiceError_TIMEOUT SearchServiceError_ErrorCode = 5 321 SearchServiceError_CONCURRENT_TRANSACTION SearchServiceError_ErrorCode = 6 322) 323 324var SearchServiceError_ErrorCode_name = map[int32]string{ 325 0: "OK", 326 1: "INVALID_REQUEST", 327 2: "TRANSIENT_ERROR", 328 3: "INTERNAL_ERROR", 329 4: "PERMISSION_DENIED", 330 5: "TIMEOUT", 331 6: "CONCURRENT_TRANSACTION", 332} 333var SearchServiceError_ErrorCode_value = map[string]int32{ 334 "OK": 0, 335 "INVALID_REQUEST": 1, 336 "TRANSIENT_ERROR": 2, 337 "INTERNAL_ERROR": 3, 338 "PERMISSION_DENIED": 4, 339 "TIMEOUT": 5, 340 "CONCURRENT_TRANSACTION": 6, 341} 342 343func (x SearchServiceError_ErrorCode) Enum() *SearchServiceError_ErrorCode { 344 p := new(SearchServiceError_ErrorCode) 345 *p = x 346 return p 347} 348func (x SearchServiceError_ErrorCode) String() string { 349 return proto.EnumName(SearchServiceError_ErrorCode_name, int32(x)) 350} 351func (x *SearchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { 352 value, err := proto.UnmarshalJSONEnum(SearchServiceError_ErrorCode_value, data, "SearchServiceError_ErrorCode") 353 if err != nil { 354 return err 355 } 356 *x = SearchServiceError_ErrorCode(value) 357 return nil 358} 359 360type IndexSpec_Consistency int32 361 362const ( 363 IndexSpec_GLOBAL IndexSpec_Consistency = 0 364 IndexSpec_PER_DOCUMENT IndexSpec_Consistency = 1 365) 366 367var IndexSpec_Consistency_name = map[int32]string{ 368 0: "GLOBAL", 369 1: "PER_DOCUMENT", 370} 371var IndexSpec_Consistency_value = map[string]int32{ 372 "GLOBAL": 0, 373 "PER_DOCUMENT": 1, 374} 375 376func (x IndexSpec_Consistency) Enum() *IndexSpec_Consistency { 377 p := new(IndexSpec_Consistency) 378 *p = x 379 return p 380} 381func (x IndexSpec_Consistency) String() string { 382 return proto.EnumName(IndexSpec_Consistency_name, int32(x)) 383} 384func (x *IndexSpec_Consistency) UnmarshalJSON(data []byte) error { 385 value, err := proto.UnmarshalJSONEnum(IndexSpec_Consistency_value, data, "IndexSpec_Consistency") 386 if err != nil { 387 return err 388 } 389 *x = IndexSpec_Consistency(value) 390 return nil 391} 392 393type IndexSpec_Source int32 394 395const ( 396 IndexSpec_SEARCH IndexSpec_Source = 0 397 IndexSpec_DATASTORE IndexSpec_Source = 1 398 IndexSpec_CLOUD_STORAGE IndexSpec_Source = 2 399) 400 401var IndexSpec_Source_name = map[int32]string{ 402 0: "SEARCH", 403 1: "DATASTORE", 404 2: "CLOUD_STORAGE", 405} 406var IndexSpec_Source_value = map[string]int32{ 407 "SEARCH": 0, 408 "DATASTORE": 1, 409 "CLOUD_STORAGE": 2, 410} 411 412func (x IndexSpec_Source) Enum() *IndexSpec_Source { 413 p := new(IndexSpec_Source) 414 *p = x 415 return p 416} 417func (x IndexSpec_Source) String() string { 418 return proto.EnumName(IndexSpec_Source_name, int32(x)) 419} 420func (x *IndexSpec_Source) UnmarshalJSON(data []byte) error { 421 value, err := proto.UnmarshalJSONEnum(IndexSpec_Source_value, data, "IndexSpec_Source") 422 if err != nil { 423 return err 424 } 425 *x = IndexSpec_Source(value) 426 return nil 427} 428 429type IndexSpec_Mode int32 430 431const ( 432 IndexSpec_PRIORITY IndexSpec_Mode = 0 433 IndexSpec_BACKGROUND IndexSpec_Mode = 1 434) 435 436var IndexSpec_Mode_name = map[int32]string{ 437 0: "PRIORITY", 438 1: "BACKGROUND", 439} 440var IndexSpec_Mode_value = map[string]int32{ 441 "PRIORITY": 0, 442 "BACKGROUND": 1, 443} 444 445func (x IndexSpec_Mode) Enum() *IndexSpec_Mode { 446 p := new(IndexSpec_Mode) 447 *p = x 448 return p 449} 450func (x IndexSpec_Mode) String() string { 451 return proto.EnumName(IndexSpec_Mode_name, int32(x)) 452} 453func (x *IndexSpec_Mode) UnmarshalJSON(data []byte) error { 454 value, err := proto.UnmarshalJSONEnum(IndexSpec_Mode_value, data, "IndexSpec_Mode") 455 if err != nil { 456 return err 457 } 458 *x = IndexSpec_Mode(value) 459 return nil 460} 461 462type IndexMetadata_IndexState int32 463 464const ( 465 IndexMetadata_ACTIVE IndexMetadata_IndexState = 0 466 IndexMetadata_SOFT_DELETED IndexMetadata_IndexState = 1 467 IndexMetadata_PURGING IndexMetadata_IndexState = 2 468) 469 470var IndexMetadata_IndexState_name = map[int32]string{ 471 0: "ACTIVE", 472 1: "SOFT_DELETED", 473 2: "PURGING", 474} 475var IndexMetadata_IndexState_value = map[string]int32{ 476 "ACTIVE": 0, 477 "SOFT_DELETED": 1, 478 "PURGING": 2, 479} 480 481func (x IndexMetadata_IndexState) Enum() *IndexMetadata_IndexState { 482 p := new(IndexMetadata_IndexState) 483 *p = x 484 return p 485} 486func (x IndexMetadata_IndexState) String() string { 487 return proto.EnumName(IndexMetadata_IndexState_name, int32(x)) 488} 489func (x *IndexMetadata_IndexState) UnmarshalJSON(data []byte) error { 490 value, err := proto.UnmarshalJSONEnum(IndexMetadata_IndexState_value, data, "IndexMetadata_IndexState") 491 if err != nil { 492 return err 493 } 494 *x = IndexMetadata_IndexState(value) 495 return nil 496} 497 498type IndexDocumentParams_Freshness int32 499 500const ( 501 IndexDocumentParams_SYNCHRONOUSLY IndexDocumentParams_Freshness = 0 502 IndexDocumentParams_WHEN_CONVENIENT IndexDocumentParams_Freshness = 1 503) 504 505var IndexDocumentParams_Freshness_name = map[int32]string{ 506 0: "SYNCHRONOUSLY", 507 1: "WHEN_CONVENIENT", 508} 509var IndexDocumentParams_Freshness_value = map[string]int32{ 510 "SYNCHRONOUSLY": 0, 511 "WHEN_CONVENIENT": 1, 512} 513 514func (x IndexDocumentParams_Freshness) Enum() *IndexDocumentParams_Freshness { 515 p := new(IndexDocumentParams_Freshness) 516 *p = x 517 return p 518} 519func (x IndexDocumentParams_Freshness) String() string { 520 return proto.EnumName(IndexDocumentParams_Freshness_name, int32(x)) 521} 522func (x *IndexDocumentParams_Freshness) UnmarshalJSON(data []byte) error { 523 value, err := proto.UnmarshalJSONEnum(IndexDocumentParams_Freshness_value, data, "IndexDocumentParams_Freshness") 524 if err != nil { 525 return err 526 } 527 *x = IndexDocumentParams_Freshness(value) 528 return nil 529} 530 531type ScorerSpec_Scorer int32 532 533const ( 534 ScorerSpec_RESCORING_MATCH_SCORER ScorerSpec_Scorer = 0 535 ScorerSpec_MATCH_SCORER ScorerSpec_Scorer = 2 536) 537 538var ScorerSpec_Scorer_name = map[int32]string{ 539 0: "RESCORING_MATCH_SCORER", 540 2: "MATCH_SCORER", 541} 542var ScorerSpec_Scorer_value = map[string]int32{ 543 "RESCORING_MATCH_SCORER": 0, 544 "MATCH_SCORER": 2, 545} 546 547func (x ScorerSpec_Scorer) Enum() *ScorerSpec_Scorer { 548 p := new(ScorerSpec_Scorer) 549 *p = x 550 return p 551} 552func (x ScorerSpec_Scorer) String() string { 553 return proto.EnumName(ScorerSpec_Scorer_name, int32(x)) 554} 555func (x *ScorerSpec_Scorer) UnmarshalJSON(data []byte) error { 556 value, err := proto.UnmarshalJSONEnum(ScorerSpec_Scorer_value, data, "ScorerSpec_Scorer") 557 if err != nil { 558 return err 559 } 560 *x = ScorerSpec_Scorer(value) 561 return nil 562} 563 564type SearchParams_CursorType int32 565 566const ( 567 SearchParams_NONE SearchParams_CursorType = 0 568 SearchParams_SINGLE SearchParams_CursorType = 1 569 SearchParams_PER_RESULT SearchParams_CursorType = 2 570) 571 572var SearchParams_CursorType_name = map[int32]string{ 573 0: "NONE", 574 1: "SINGLE", 575 2: "PER_RESULT", 576} 577var SearchParams_CursorType_value = map[string]int32{ 578 "NONE": 0, 579 "SINGLE": 1, 580 "PER_RESULT": 2, 581} 582 583func (x SearchParams_CursorType) Enum() *SearchParams_CursorType { 584 p := new(SearchParams_CursorType) 585 *p = x 586 return p 587} 588func (x SearchParams_CursorType) String() string { 589 return proto.EnumName(SearchParams_CursorType_name, int32(x)) 590} 591func (x *SearchParams_CursorType) UnmarshalJSON(data []byte) error { 592 value, err := proto.UnmarshalJSONEnum(SearchParams_CursorType_value, data, "SearchParams_CursorType") 593 if err != nil { 594 return err 595 } 596 *x = SearchParams_CursorType(value) 597 return nil 598} 599 600type SearchParams_ParsingMode int32 601 602const ( 603 SearchParams_STRICT SearchParams_ParsingMode = 0 604 SearchParams_RELAXED SearchParams_ParsingMode = 1 605) 606 607var SearchParams_ParsingMode_name = map[int32]string{ 608 0: "STRICT", 609 1: "RELAXED", 610} 611var SearchParams_ParsingMode_value = map[string]int32{ 612 "STRICT": 0, 613 "RELAXED": 1, 614} 615 616func (x SearchParams_ParsingMode) Enum() *SearchParams_ParsingMode { 617 p := new(SearchParams_ParsingMode) 618 *p = x 619 return p 620} 621func (x SearchParams_ParsingMode) String() string { 622 return proto.EnumName(SearchParams_ParsingMode_name, int32(x)) 623} 624func (x *SearchParams_ParsingMode) UnmarshalJSON(data []byte) error { 625 value, err := proto.UnmarshalJSONEnum(SearchParams_ParsingMode_value, data, "SearchParams_ParsingMode") 626 if err != nil { 627 return err 628 } 629 *x = SearchParams_ParsingMode(value) 630 return nil 631} 632 633type Scope struct { 634 Type *Scope_Type `protobuf:"varint,1,opt,name=type,enum=search.Scope_Type" json:"type,omitempty"` 635 Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` 636 XXX_unrecognized []byte `json:"-"` 637} 638 639func (m *Scope) Reset() { *m = Scope{} } 640func (m *Scope) String() string { return proto.CompactTextString(m) } 641func (*Scope) ProtoMessage() {} 642 643func (m *Scope) GetType() Scope_Type { 644 if m != nil && m.Type != nil { 645 return *m.Type 646 } 647 return Scope_USER_BY_CANONICAL_ID 648} 649 650func (m *Scope) GetValue() string { 651 if m != nil && m.Value != nil { 652 return *m.Value 653 } 654 return "" 655} 656 657type Entry struct { 658 Scope *Scope `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"` 659 Permission *Entry_Permission `protobuf:"varint,2,opt,name=permission,enum=search.Entry_Permission" json:"permission,omitempty"` 660 DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"` 661 XXX_unrecognized []byte `json:"-"` 662} 663 664func (m *Entry) Reset() { *m = Entry{} } 665func (m *Entry) String() string { return proto.CompactTextString(m) } 666func (*Entry) ProtoMessage() {} 667 668func (m *Entry) GetScope() *Scope { 669 if m != nil { 670 return m.Scope 671 } 672 return nil 673} 674 675func (m *Entry) GetPermission() Entry_Permission { 676 if m != nil && m.Permission != nil { 677 return *m.Permission 678 } 679 return Entry_READ 680} 681 682func (m *Entry) GetDisplayName() string { 683 if m != nil && m.DisplayName != nil { 684 return *m.DisplayName 685 } 686 return "" 687} 688 689type AccessControlList struct { 690 Owner *string `protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"` 691 Entries []*Entry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` 692 XXX_unrecognized []byte `json:"-"` 693} 694 695func (m *AccessControlList) Reset() { *m = AccessControlList{} } 696func (m *AccessControlList) String() string { return proto.CompactTextString(m) } 697func (*AccessControlList) ProtoMessage() {} 698 699func (m *AccessControlList) GetOwner() string { 700 if m != nil && m.Owner != nil { 701 return *m.Owner 702 } 703 return "" 704} 705 706func (m *AccessControlList) GetEntries() []*Entry { 707 if m != nil { 708 return m.Entries 709 } 710 return nil 711} 712 713type FieldValue struct { 714 Type *FieldValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FieldValue_ContentType,def=0" json:"type,omitempty"` 715 Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"` 716 StringValue *string `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` 717 Geo *FieldValue_Geo `protobuf:"group,4,opt,name=Geo,json=geo" json:"geo,omitempty"` 718 VectorValue []float64 `protobuf:"fixed64,7,rep,name=vector_value,json=vectorValue" json:"vector_value,omitempty"` 719 XXX_unrecognized []byte `json:"-"` 720} 721 722func (m *FieldValue) Reset() { *m = FieldValue{} } 723func (m *FieldValue) String() string { return proto.CompactTextString(m) } 724func (*FieldValue) ProtoMessage() {} 725 726const Default_FieldValue_Type FieldValue_ContentType = FieldValue_TEXT 727const Default_FieldValue_Language string = "en" 728 729func (m *FieldValue) GetType() FieldValue_ContentType { 730 if m != nil && m.Type != nil { 731 return *m.Type 732 } 733 return Default_FieldValue_Type 734} 735 736func (m *FieldValue) GetLanguage() string { 737 if m != nil && m.Language != nil { 738 return *m.Language 739 } 740 return Default_FieldValue_Language 741} 742 743func (m *FieldValue) GetStringValue() string { 744 if m != nil && m.StringValue != nil { 745 return *m.StringValue 746 } 747 return "" 748} 749 750func (m *FieldValue) GetGeo() *FieldValue_Geo { 751 if m != nil { 752 return m.Geo 753 } 754 return nil 755} 756 757func (m *FieldValue) GetVectorValue() []float64 { 758 if m != nil { 759 return m.VectorValue 760 } 761 return nil 762} 763 764type FieldValue_Geo struct { 765 Lat *float64 `protobuf:"fixed64,5,req,name=lat" json:"lat,omitempty"` 766 Lng *float64 `protobuf:"fixed64,6,req,name=lng" json:"lng,omitempty"` 767 XXX_unrecognized []byte `json:"-"` 768} 769 770func (m *FieldValue_Geo) Reset() { *m = FieldValue_Geo{} } 771func (m *FieldValue_Geo) String() string { return proto.CompactTextString(m) } 772func (*FieldValue_Geo) ProtoMessage() {} 773 774func (m *FieldValue_Geo) GetLat() float64 { 775 if m != nil && m.Lat != nil { 776 return *m.Lat 777 } 778 return 0 779} 780 781func (m *FieldValue_Geo) GetLng() float64 { 782 if m != nil && m.Lng != nil { 783 return *m.Lng 784 } 785 return 0 786} 787 788type Field struct { 789 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 790 Value *FieldValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` 791 XXX_unrecognized []byte `json:"-"` 792} 793 794func (m *Field) Reset() { *m = Field{} } 795func (m *Field) String() string { return proto.CompactTextString(m) } 796func (*Field) ProtoMessage() {} 797 798func (m *Field) GetName() string { 799 if m != nil && m.Name != nil { 800 return *m.Name 801 } 802 return "" 803} 804 805func (m *Field) GetValue() *FieldValue { 806 if m != nil { 807 return m.Value 808 } 809 return nil 810} 811 812type FieldTypes struct { 813 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 814 Type []FieldValue_ContentType `protobuf:"varint,2,rep,name=type,enum=search.FieldValue_ContentType" json:"type,omitempty"` 815 XXX_unrecognized []byte `json:"-"` 816} 817 818func (m *FieldTypes) Reset() { *m = FieldTypes{} } 819func (m *FieldTypes) String() string { return proto.CompactTextString(m) } 820func (*FieldTypes) ProtoMessage() {} 821 822func (m *FieldTypes) GetName() string { 823 if m != nil && m.Name != nil { 824 return *m.Name 825 } 826 return "" 827} 828 829func (m *FieldTypes) GetType() []FieldValue_ContentType { 830 if m != nil { 831 return m.Type 832 } 833 return nil 834} 835 836type IndexShardSettings struct { 837 PrevNumShards []int32 `protobuf:"varint,1,rep,name=prev_num_shards,json=prevNumShards" json:"prev_num_shards,omitempty"` 838 NumShards *int32 `protobuf:"varint,2,req,name=num_shards,json=numShards,def=1" json:"num_shards,omitempty"` 839 PrevNumShardsSearchFalse []int32 `protobuf:"varint,3,rep,name=prev_num_shards_search_false,json=prevNumShardsSearchFalse" json:"prev_num_shards_search_false,omitempty"` 840 LocalReplica *string `protobuf:"bytes,4,opt,name=local_replica,json=localReplica,def=" json:"local_replica,omitempty"` 841 XXX_unrecognized []byte `json:"-"` 842} 843 844func (m *IndexShardSettings) Reset() { *m = IndexShardSettings{} } 845func (m *IndexShardSettings) String() string { return proto.CompactTextString(m) } 846func (*IndexShardSettings) ProtoMessage() {} 847 848const Default_IndexShardSettings_NumShards int32 = 1 849 850func (m *IndexShardSettings) GetPrevNumShards() []int32 { 851 if m != nil { 852 return m.PrevNumShards 853 } 854 return nil 855} 856 857func (m *IndexShardSettings) GetNumShards() int32 { 858 if m != nil && m.NumShards != nil { 859 return *m.NumShards 860 } 861 return Default_IndexShardSettings_NumShards 862} 863 864func (m *IndexShardSettings) GetPrevNumShardsSearchFalse() []int32 { 865 if m != nil { 866 return m.PrevNumShardsSearchFalse 867 } 868 return nil 869} 870 871func (m *IndexShardSettings) GetLocalReplica() string { 872 if m != nil && m.LocalReplica != nil { 873 return *m.LocalReplica 874 } 875 return "" 876} 877 878type FacetValue struct { 879 Type *FacetValue_ContentType `protobuf:"varint,1,opt,name=type,enum=search.FacetValue_ContentType,def=2" json:"type,omitempty"` 880 StringValue *string `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` 881 XXX_unrecognized []byte `json:"-"` 882} 883 884func (m *FacetValue) Reset() { *m = FacetValue{} } 885func (m *FacetValue) String() string { return proto.CompactTextString(m) } 886func (*FacetValue) ProtoMessage() {} 887 888const Default_FacetValue_Type FacetValue_ContentType = FacetValue_ATOM 889 890func (m *FacetValue) GetType() FacetValue_ContentType { 891 if m != nil && m.Type != nil { 892 return *m.Type 893 } 894 return Default_FacetValue_Type 895} 896 897func (m *FacetValue) GetStringValue() string { 898 if m != nil && m.StringValue != nil { 899 return *m.StringValue 900 } 901 return "" 902} 903 904type Facet struct { 905 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 906 Value *FacetValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` 907 XXX_unrecognized []byte `json:"-"` 908} 909 910func (m *Facet) Reset() { *m = Facet{} } 911func (m *Facet) String() string { return proto.CompactTextString(m) } 912func (*Facet) ProtoMessage() {} 913 914func (m *Facet) GetName() string { 915 if m != nil && m.Name != nil { 916 return *m.Name 917 } 918 return "" 919} 920 921func (m *Facet) GetValue() *FacetValue { 922 if m != nil { 923 return m.Value 924 } 925 return nil 926} 927 928type DocumentMetadata struct { 929 Version *int64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` 930 CommittedStVersion *int64 `protobuf:"varint,2,opt,name=committed_st_version,json=committedStVersion" json:"committed_st_version,omitempty"` 931 XXX_unrecognized []byte `json:"-"` 932} 933 934func (m *DocumentMetadata) Reset() { *m = DocumentMetadata{} } 935func (m *DocumentMetadata) String() string { return proto.CompactTextString(m) } 936func (*DocumentMetadata) ProtoMessage() {} 937 938func (m *DocumentMetadata) GetVersion() int64 { 939 if m != nil && m.Version != nil { 940 return *m.Version 941 } 942 return 0 943} 944 945func (m *DocumentMetadata) GetCommittedStVersion() int64 { 946 if m != nil && m.CommittedStVersion != nil { 947 return *m.CommittedStVersion 948 } 949 return 0 950} 951 952type Document struct { 953 Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` 954 Language *string `protobuf:"bytes,2,opt,name=language,def=en" json:"language,omitempty"` 955 Field []*Field `protobuf:"bytes,3,rep,name=field" json:"field,omitempty"` 956 OrderId *int32 `protobuf:"varint,4,opt,name=order_id,json=orderId" json:"order_id,omitempty"` 957 OrderIdSource *Document_OrderIdSource `protobuf:"varint,6,opt,name=order_id_source,json=orderIdSource,enum=search.Document_OrderIdSource,def=1" json:"order_id_source,omitempty"` 958 Storage *Document_Storage `protobuf:"varint,5,opt,name=storage,enum=search.Document_Storage,def=0" json:"storage,omitempty"` 959 Facet []*Facet `protobuf:"bytes,8,rep,name=facet" json:"facet,omitempty"` 960 XXX_unrecognized []byte `json:"-"` 961} 962 963func (m *Document) Reset() { *m = Document{} } 964func (m *Document) String() string { return proto.CompactTextString(m) } 965func (*Document) ProtoMessage() {} 966 967const Default_Document_Language string = "en" 968const Default_Document_OrderIdSource Document_OrderIdSource = Document_SUPPLIED 969const Default_Document_Storage Document_Storage = Document_DISK 970 971func (m *Document) GetId() string { 972 if m != nil && m.Id != nil { 973 return *m.Id 974 } 975 return "" 976} 977 978func (m *Document) GetLanguage() string { 979 if m != nil && m.Language != nil { 980 return *m.Language 981 } 982 return Default_Document_Language 983} 984 985func (m *Document) GetField() []*Field { 986 if m != nil { 987 return m.Field 988 } 989 return nil 990} 991 992func (m *Document) GetOrderId() int32 { 993 if m != nil && m.OrderId != nil { 994 return *m.OrderId 995 } 996 return 0 997} 998 999func (m *Document) GetOrderIdSource() Document_OrderIdSource { 1000 if m != nil && m.OrderIdSource != nil { 1001 return *m.OrderIdSource 1002 } 1003 return Default_Document_OrderIdSource 1004} 1005 1006func (m *Document) GetStorage() Document_Storage { 1007 if m != nil && m.Storage != nil { 1008 return *m.Storage 1009 } 1010 return Default_Document_Storage 1011} 1012 1013func (m *Document) GetFacet() []*Facet { 1014 if m != nil { 1015 return m.Facet 1016 } 1017 return nil 1018} 1019 1020type SearchServiceError struct { 1021 XXX_unrecognized []byte `json:"-"` 1022} 1023 1024func (m *SearchServiceError) Reset() { *m = SearchServiceError{} } 1025func (m *SearchServiceError) String() string { return proto.CompactTextString(m) } 1026func (*SearchServiceError) ProtoMessage() {} 1027 1028type RequestStatus struct { 1029 Code *SearchServiceError_ErrorCode `protobuf:"varint,1,req,name=code,enum=search.SearchServiceError_ErrorCode" json:"code,omitempty"` 1030 ErrorDetail *string `protobuf:"bytes,2,opt,name=error_detail,json=errorDetail" json:"error_detail,omitempty"` 1031 CanonicalCode *int32 `protobuf:"varint,3,opt,name=canonical_code,json=canonicalCode" json:"canonical_code,omitempty"` 1032 XXX_unrecognized []byte `json:"-"` 1033} 1034 1035func (m *RequestStatus) Reset() { *m = RequestStatus{} } 1036func (m *RequestStatus) String() string { return proto.CompactTextString(m) } 1037func (*RequestStatus) ProtoMessage() {} 1038 1039func (m *RequestStatus) GetCode() SearchServiceError_ErrorCode { 1040 if m != nil && m.Code != nil { 1041 return *m.Code 1042 } 1043 return SearchServiceError_OK 1044} 1045 1046func (m *RequestStatus) GetErrorDetail() string { 1047 if m != nil && m.ErrorDetail != nil { 1048 return *m.ErrorDetail 1049 } 1050 return "" 1051} 1052 1053func (m *RequestStatus) GetCanonicalCode() int32 { 1054 if m != nil && m.CanonicalCode != nil { 1055 return *m.CanonicalCode 1056 } 1057 return 0 1058} 1059 1060type IndexSpec struct { 1061 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1062 Consistency *IndexSpec_Consistency `protobuf:"varint,2,opt,name=consistency,enum=search.IndexSpec_Consistency,def=1" json:"consistency,omitempty"` 1063 Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"` 1064 Version *int32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"` 1065 Source *IndexSpec_Source `protobuf:"varint,5,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` 1066 Mode *IndexSpec_Mode `protobuf:"varint,6,opt,name=mode,enum=search.IndexSpec_Mode,def=0" json:"mode,omitempty"` 1067 XXX_unrecognized []byte `json:"-"` 1068} 1069 1070func (m *IndexSpec) Reset() { *m = IndexSpec{} } 1071func (m *IndexSpec) String() string { return proto.CompactTextString(m) } 1072func (*IndexSpec) ProtoMessage() {} 1073 1074const Default_IndexSpec_Consistency IndexSpec_Consistency = IndexSpec_PER_DOCUMENT 1075const Default_IndexSpec_Source IndexSpec_Source = IndexSpec_SEARCH 1076const Default_IndexSpec_Mode IndexSpec_Mode = IndexSpec_PRIORITY 1077 1078func (m *IndexSpec) GetName() string { 1079 if m != nil && m.Name != nil { 1080 return *m.Name 1081 } 1082 return "" 1083} 1084 1085func (m *IndexSpec) GetConsistency() IndexSpec_Consistency { 1086 if m != nil && m.Consistency != nil { 1087 return *m.Consistency 1088 } 1089 return Default_IndexSpec_Consistency 1090} 1091 1092func (m *IndexSpec) GetNamespace() string { 1093 if m != nil && m.Namespace != nil { 1094 return *m.Namespace 1095 } 1096 return "" 1097} 1098 1099func (m *IndexSpec) GetVersion() int32 { 1100 if m != nil && m.Version != nil { 1101 return *m.Version 1102 } 1103 return 0 1104} 1105 1106func (m *IndexSpec) GetSource() IndexSpec_Source { 1107 if m != nil && m.Source != nil { 1108 return *m.Source 1109 } 1110 return Default_IndexSpec_Source 1111} 1112 1113func (m *IndexSpec) GetMode() IndexSpec_Mode { 1114 if m != nil && m.Mode != nil { 1115 return *m.Mode 1116 } 1117 return Default_IndexSpec_Mode 1118} 1119 1120type IndexMetadata struct { 1121 IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1122 Field []*FieldTypes `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` 1123 Storage *IndexMetadata_Storage `protobuf:"bytes,3,opt,name=storage" json:"storage,omitempty"` 1124 IndexState *IndexMetadata_IndexState `protobuf:"varint,4,opt,name=index_state,json=indexState,enum=search.IndexMetadata_IndexState,def=0" json:"index_state,omitempty"` 1125 IndexDeleteTime *int64 `protobuf:"varint,5,opt,name=index_delete_time,json=indexDeleteTime" json:"index_delete_time,omitempty"` 1126 NumShards *int32 `protobuf:"varint,6,opt,name=num_shards,json=numShards,def=1" json:"num_shards,omitempty"` 1127 XXX_unrecognized []byte `json:"-"` 1128} 1129 1130func (m *IndexMetadata) Reset() { *m = IndexMetadata{} } 1131func (m *IndexMetadata) String() string { return proto.CompactTextString(m) } 1132func (*IndexMetadata) ProtoMessage() {} 1133 1134const Default_IndexMetadata_IndexState IndexMetadata_IndexState = IndexMetadata_ACTIVE 1135const Default_IndexMetadata_NumShards int32 = 1 1136 1137func (m *IndexMetadata) GetIndexSpec() *IndexSpec { 1138 if m != nil { 1139 return m.IndexSpec 1140 } 1141 return nil 1142} 1143 1144func (m *IndexMetadata) GetField() []*FieldTypes { 1145 if m != nil { 1146 return m.Field 1147 } 1148 return nil 1149} 1150 1151func (m *IndexMetadata) GetStorage() *IndexMetadata_Storage { 1152 if m != nil { 1153 return m.Storage 1154 } 1155 return nil 1156} 1157 1158func (m *IndexMetadata) GetIndexState() IndexMetadata_IndexState { 1159 if m != nil && m.IndexState != nil { 1160 return *m.IndexState 1161 } 1162 return Default_IndexMetadata_IndexState 1163} 1164 1165func (m *IndexMetadata) GetIndexDeleteTime() int64 { 1166 if m != nil && m.IndexDeleteTime != nil { 1167 return *m.IndexDeleteTime 1168 } 1169 return 0 1170} 1171 1172func (m *IndexMetadata) GetNumShards() int32 { 1173 if m != nil && m.NumShards != nil { 1174 return *m.NumShards 1175 } 1176 return Default_IndexMetadata_NumShards 1177} 1178 1179type IndexMetadata_Storage struct { 1180 AmountUsed *int64 `protobuf:"varint,1,opt,name=amount_used,json=amountUsed" json:"amount_used,omitempty"` 1181 Limit *int64 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` 1182 XXX_unrecognized []byte `json:"-"` 1183} 1184 1185func (m *IndexMetadata_Storage) Reset() { *m = IndexMetadata_Storage{} } 1186func (m *IndexMetadata_Storage) String() string { return proto.CompactTextString(m) } 1187func (*IndexMetadata_Storage) ProtoMessage() {} 1188 1189func (m *IndexMetadata_Storage) GetAmountUsed() int64 { 1190 if m != nil && m.AmountUsed != nil { 1191 return *m.AmountUsed 1192 } 1193 return 0 1194} 1195 1196func (m *IndexMetadata_Storage) GetLimit() int64 { 1197 if m != nil && m.Limit != nil { 1198 return *m.Limit 1199 } 1200 return 0 1201} 1202 1203type IndexDocumentParams struct { 1204 Document []*Document `protobuf:"bytes,1,rep,name=document" json:"document,omitempty"` 1205 Freshness *IndexDocumentParams_Freshness `protobuf:"varint,2,opt,name=freshness,enum=search.IndexDocumentParams_Freshness,def=0" json:"freshness,omitempty"` 1206 IndexSpec *IndexSpec `protobuf:"bytes,3,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1207 XXX_unrecognized []byte `json:"-"` 1208} 1209 1210func (m *IndexDocumentParams) Reset() { *m = IndexDocumentParams{} } 1211func (m *IndexDocumentParams) String() string { return proto.CompactTextString(m) } 1212func (*IndexDocumentParams) ProtoMessage() {} 1213 1214const Default_IndexDocumentParams_Freshness IndexDocumentParams_Freshness = IndexDocumentParams_SYNCHRONOUSLY 1215 1216func (m *IndexDocumentParams) GetDocument() []*Document { 1217 if m != nil { 1218 return m.Document 1219 } 1220 return nil 1221} 1222 1223func (m *IndexDocumentParams) GetFreshness() IndexDocumentParams_Freshness { 1224 if m != nil && m.Freshness != nil { 1225 return *m.Freshness 1226 } 1227 return Default_IndexDocumentParams_Freshness 1228} 1229 1230func (m *IndexDocumentParams) GetIndexSpec() *IndexSpec { 1231 if m != nil { 1232 return m.IndexSpec 1233 } 1234 return nil 1235} 1236 1237type IndexDocumentRequest struct { 1238 Params *IndexDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1239 AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1240 XXX_unrecognized []byte `json:"-"` 1241} 1242 1243func (m *IndexDocumentRequest) Reset() { *m = IndexDocumentRequest{} } 1244func (m *IndexDocumentRequest) String() string { return proto.CompactTextString(m) } 1245func (*IndexDocumentRequest) ProtoMessage() {} 1246 1247func (m *IndexDocumentRequest) GetParams() *IndexDocumentParams { 1248 if m != nil { 1249 return m.Params 1250 } 1251 return nil 1252} 1253 1254func (m *IndexDocumentRequest) GetAppId() []byte { 1255 if m != nil { 1256 return m.AppId 1257 } 1258 return nil 1259} 1260 1261type IndexDocumentResponse struct { 1262 Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` 1263 DocId []string `protobuf:"bytes,2,rep,name=doc_id,json=docId" json:"doc_id,omitempty"` 1264 XXX_unrecognized []byte `json:"-"` 1265} 1266 1267func (m *IndexDocumentResponse) Reset() { *m = IndexDocumentResponse{} } 1268func (m *IndexDocumentResponse) String() string { return proto.CompactTextString(m) } 1269func (*IndexDocumentResponse) ProtoMessage() {} 1270 1271func (m *IndexDocumentResponse) GetStatus() []*RequestStatus { 1272 if m != nil { 1273 return m.Status 1274 } 1275 return nil 1276} 1277 1278func (m *IndexDocumentResponse) GetDocId() []string { 1279 if m != nil { 1280 return m.DocId 1281 } 1282 return nil 1283} 1284 1285type DeleteDocumentParams struct { 1286 DocId []string `protobuf:"bytes,1,rep,name=doc_id,json=docId" json:"doc_id,omitempty"` 1287 IndexSpec *IndexSpec `protobuf:"bytes,2,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1288 XXX_unrecognized []byte `json:"-"` 1289} 1290 1291func (m *DeleteDocumentParams) Reset() { *m = DeleteDocumentParams{} } 1292func (m *DeleteDocumentParams) String() string { return proto.CompactTextString(m) } 1293func (*DeleteDocumentParams) ProtoMessage() {} 1294 1295func (m *DeleteDocumentParams) GetDocId() []string { 1296 if m != nil { 1297 return m.DocId 1298 } 1299 return nil 1300} 1301 1302func (m *DeleteDocumentParams) GetIndexSpec() *IndexSpec { 1303 if m != nil { 1304 return m.IndexSpec 1305 } 1306 return nil 1307} 1308 1309type DeleteDocumentRequest struct { 1310 Params *DeleteDocumentParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1311 AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1312 XXX_unrecognized []byte `json:"-"` 1313} 1314 1315func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} } 1316func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) } 1317func (*DeleteDocumentRequest) ProtoMessage() {} 1318 1319func (m *DeleteDocumentRequest) GetParams() *DeleteDocumentParams { 1320 if m != nil { 1321 return m.Params 1322 } 1323 return nil 1324} 1325 1326func (m *DeleteDocumentRequest) GetAppId() []byte { 1327 if m != nil { 1328 return m.AppId 1329 } 1330 return nil 1331} 1332 1333type DeleteDocumentResponse struct { 1334 Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` 1335 XXX_unrecognized []byte `json:"-"` 1336} 1337 1338func (m *DeleteDocumentResponse) Reset() { *m = DeleteDocumentResponse{} } 1339func (m *DeleteDocumentResponse) String() string { return proto.CompactTextString(m) } 1340func (*DeleteDocumentResponse) ProtoMessage() {} 1341 1342func (m *DeleteDocumentResponse) GetStatus() []*RequestStatus { 1343 if m != nil { 1344 return m.Status 1345 } 1346 return nil 1347} 1348 1349type ListDocumentsParams struct { 1350 IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1351 StartDocId *string `protobuf:"bytes,2,opt,name=start_doc_id,json=startDocId" json:"start_doc_id,omitempty"` 1352 IncludeStartDoc *bool `protobuf:"varint,3,opt,name=include_start_doc,json=includeStartDoc,def=1" json:"include_start_doc,omitempty"` 1353 Limit *int32 `protobuf:"varint,4,opt,name=limit,def=100" json:"limit,omitempty"` 1354 KeysOnly *bool `protobuf:"varint,5,opt,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` 1355 XXX_unrecognized []byte `json:"-"` 1356} 1357 1358func (m *ListDocumentsParams) Reset() { *m = ListDocumentsParams{} } 1359func (m *ListDocumentsParams) String() string { return proto.CompactTextString(m) } 1360func (*ListDocumentsParams) ProtoMessage() {} 1361 1362const Default_ListDocumentsParams_IncludeStartDoc bool = true 1363const Default_ListDocumentsParams_Limit int32 = 100 1364 1365func (m *ListDocumentsParams) GetIndexSpec() *IndexSpec { 1366 if m != nil { 1367 return m.IndexSpec 1368 } 1369 return nil 1370} 1371 1372func (m *ListDocumentsParams) GetStartDocId() string { 1373 if m != nil && m.StartDocId != nil { 1374 return *m.StartDocId 1375 } 1376 return "" 1377} 1378 1379func (m *ListDocumentsParams) GetIncludeStartDoc() bool { 1380 if m != nil && m.IncludeStartDoc != nil { 1381 return *m.IncludeStartDoc 1382 } 1383 return Default_ListDocumentsParams_IncludeStartDoc 1384} 1385 1386func (m *ListDocumentsParams) GetLimit() int32 { 1387 if m != nil && m.Limit != nil { 1388 return *m.Limit 1389 } 1390 return Default_ListDocumentsParams_Limit 1391} 1392 1393func (m *ListDocumentsParams) GetKeysOnly() bool { 1394 if m != nil && m.KeysOnly != nil { 1395 return *m.KeysOnly 1396 } 1397 return false 1398} 1399 1400type ListDocumentsRequest struct { 1401 Params *ListDocumentsParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1402 AppId []byte `protobuf:"bytes,2,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1403 XXX_unrecognized []byte `json:"-"` 1404} 1405 1406func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} } 1407func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) } 1408func (*ListDocumentsRequest) ProtoMessage() {} 1409 1410func (m *ListDocumentsRequest) GetParams() *ListDocumentsParams { 1411 if m != nil { 1412 return m.Params 1413 } 1414 return nil 1415} 1416 1417func (m *ListDocumentsRequest) GetAppId() []byte { 1418 if m != nil { 1419 return m.AppId 1420 } 1421 return nil 1422} 1423 1424type ListDocumentsResponse struct { 1425 Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` 1426 Document []*Document `protobuf:"bytes,2,rep,name=document" json:"document,omitempty"` 1427 XXX_unrecognized []byte `json:"-"` 1428} 1429 1430func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} } 1431func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) } 1432func (*ListDocumentsResponse) ProtoMessage() {} 1433 1434func (m *ListDocumentsResponse) GetStatus() *RequestStatus { 1435 if m != nil { 1436 return m.Status 1437 } 1438 return nil 1439} 1440 1441func (m *ListDocumentsResponse) GetDocument() []*Document { 1442 if m != nil { 1443 return m.Document 1444 } 1445 return nil 1446} 1447 1448type DeleteIndexParams struct { 1449 IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1450 XXX_unrecognized []byte `json:"-"` 1451} 1452 1453func (m *DeleteIndexParams) Reset() { *m = DeleteIndexParams{} } 1454func (m *DeleteIndexParams) String() string { return proto.CompactTextString(m) } 1455func (*DeleteIndexParams) ProtoMessage() {} 1456 1457func (m *DeleteIndexParams) GetIndexSpec() *IndexSpec { 1458 if m != nil { 1459 return m.IndexSpec 1460 } 1461 return nil 1462} 1463 1464type DeleteIndexRequest struct { 1465 Params *DeleteIndexParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1466 AppId []byte `protobuf:"bytes,2,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1467 XXX_unrecognized []byte `json:"-"` 1468} 1469 1470func (m *DeleteIndexRequest) Reset() { *m = DeleteIndexRequest{} } 1471func (m *DeleteIndexRequest) String() string { return proto.CompactTextString(m) } 1472func (*DeleteIndexRequest) ProtoMessage() {} 1473 1474func (m *DeleteIndexRequest) GetParams() *DeleteIndexParams { 1475 if m != nil { 1476 return m.Params 1477 } 1478 return nil 1479} 1480 1481func (m *DeleteIndexRequest) GetAppId() []byte { 1482 if m != nil { 1483 return m.AppId 1484 } 1485 return nil 1486} 1487 1488type DeleteIndexResponse struct { 1489 Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` 1490 XXX_unrecognized []byte `json:"-"` 1491} 1492 1493func (m *DeleteIndexResponse) Reset() { *m = DeleteIndexResponse{} } 1494func (m *DeleteIndexResponse) String() string { return proto.CompactTextString(m) } 1495func (*DeleteIndexResponse) ProtoMessage() {} 1496 1497func (m *DeleteIndexResponse) GetStatus() *RequestStatus { 1498 if m != nil { 1499 return m.Status 1500 } 1501 return nil 1502} 1503 1504type CancelDeleteIndexParams struct { 1505 IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1506 XXX_unrecognized []byte `json:"-"` 1507} 1508 1509func (m *CancelDeleteIndexParams) Reset() { *m = CancelDeleteIndexParams{} } 1510func (m *CancelDeleteIndexParams) String() string { return proto.CompactTextString(m) } 1511func (*CancelDeleteIndexParams) ProtoMessage() {} 1512 1513func (m *CancelDeleteIndexParams) GetIndexSpec() *IndexSpec { 1514 if m != nil { 1515 return m.IndexSpec 1516 } 1517 return nil 1518} 1519 1520type CancelDeleteIndexRequest struct { 1521 Params *CancelDeleteIndexParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1522 AppId []byte `protobuf:"bytes,2,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1523 XXX_unrecognized []byte `json:"-"` 1524} 1525 1526func (m *CancelDeleteIndexRequest) Reset() { *m = CancelDeleteIndexRequest{} } 1527func (m *CancelDeleteIndexRequest) String() string { return proto.CompactTextString(m) } 1528func (*CancelDeleteIndexRequest) ProtoMessage() {} 1529 1530func (m *CancelDeleteIndexRequest) GetParams() *CancelDeleteIndexParams { 1531 if m != nil { 1532 return m.Params 1533 } 1534 return nil 1535} 1536 1537func (m *CancelDeleteIndexRequest) GetAppId() []byte { 1538 if m != nil { 1539 return m.AppId 1540 } 1541 return nil 1542} 1543 1544type CancelDeleteIndexResponse struct { 1545 Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` 1546 XXX_unrecognized []byte `json:"-"` 1547} 1548 1549func (m *CancelDeleteIndexResponse) Reset() { *m = CancelDeleteIndexResponse{} } 1550func (m *CancelDeleteIndexResponse) String() string { return proto.CompactTextString(m) } 1551func (*CancelDeleteIndexResponse) ProtoMessage() {} 1552 1553func (m *CancelDeleteIndexResponse) GetStatus() *RequestStatus { 1554 if m != nil { 1555 return m.Status 1556 } 1557 return nil 1558} 1559 1560type ListIndexesParams struct { 1561 FetchSchema *bool `protobuf:"varint,1,opt,name=fetch_schema,json=fetchSchema" json:"fetch_schema,omitempty"` 1562 Limit *int32 `protobuf:"varint,2,opt,name=limit,def=20" json:"limit,omitempty"` 1563 Namespace *string `protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"` 1564 StartIndexName *string `protobuf:"bytes,4,opt,name=start_index_name,json=startIndexName" json:"start_index_name,omitempty"` 1565 IncludeStartIndex *bool `protobuf:"varint,5,opt,name=include_start_index,json=includeStartIndex,def=1" json:"include_start_index,omitempty"` 1566 IndexNamePrefix *string `protobuf:"bytes,6,opt,name=index_name_prefix,json=indexNamePrefix" json:"index_name_prefix,omitempty"` 1567 Offset *int32 `protobuf:"varint,7,opt,name=offset" json:"offset,omitempty"` 1568 Source *IndexSpec_Source `protobuf:"varint,8,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` 1569 XXX_unrecognized []byte `json:"-"` 1570} 1571 1572func (m *ListIndexesParams) Reset() { *m = ListIndexesParams{} } 1573func (m *ListIndexesParams) String() string { return proto.CompactTextString(m) } 1574func (*ListIndexesParams) ProtoMessage() {} 1575 1576const Default_ListIndexesParams_Limit int32 = 20 1577const Default_ListIndexesParams_IncludeStartIndex bool = true 1578const Default_ListIndexesParams_Source IndexSpec_Source = IndexSpec_SEARCH 1579 1580func (m *ListIndexesParams) GetFetchSchema() bool { 1581 if m != nil && m.FetchSchema != nil { 1582 return *m.FetchSchema 1583 } 1584 return false 1585} 1586 1587func (m *ListIndexesParams) GetLimit() int32 { 1588 if m != nil && m.Limit != nil { 1589 return *m.Limit 1590 } 1591 return Default_ListIndexesParams_Limit 1592} 1593 1594func (m *ListIndexesParams) GetNamespace() string { 1595 if m != nil && m.Namespace != nil { 1596 return *m.Namespace 1597 } 1598 return "" 1599} 1600 1601func (m *ListIndexesParams) GetStartIndexName() string { 1602 if m != nil && m.StartIndexName != nil { 1603 return *m.StartIndexName 1604 } 1605 return "" 1606} 1607 1608func (m *ListIndexesParams) GetIncludeStartIndex() bool { 1609 if m != nil && m.IncludeStartIndex != nil { 1610 return *m.IncludeStartIndex 1611 } 1612 return Default_ListIndexesParams_IncludeStartIndex 1613} 1614 1615func (m *ListIndexesParams) GetIndexNamePrefix() string { 1616 if m != nil && m.IndexNamePrefix != nil { 1617 return *m.IndexNamePrefix 1618 } 1619 return "" 1620} 1621 1622func (m *ListIndexesParams) GetOffset() int32 { 1623 if m != nil && m.Offset != nil { 1624 return *m.Offset 1625 } 1626 return 0 1627} 1628 1629func (m *ListIndexesParams) GetSource() IndexSpec_Source { 1630 if m != nil && m.Source != nil { 1631 return *m.Source 1632 } 1633 return Default_ListIndexesParams_Source 1634} 1635 1636type ListIndexesRequest struct { 1637 Params *ListIndexesParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1638 AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1639 XXX_unrecognized []byte `json:"-"` 1640} 1641 1642func (m *ListIndexesRequest) Reset() { *m = ListIndexesRequest{} } 1643func (m *ListIndexesRequest) String() string { return proto.CompactTextString(m) } 1644func (*ListIndexesRequest) ProtoMessage() {} 1645 1646func (m *ListIndexesRequest) GetParams() *ListIndexesParams { 1647 if m != nil { 1648 return m.Params 1649 } 1650 return nil 1651} 1652 1653func (m *ListIndexesRequest) GetAppId() []byte { 1654 if m != nil { 1655 return m.AppId 1656 } 1657 return nil 1658} 1659 1660type ListIndexesResponse struct { 1661 Status *RequestStatus `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` 1662 IndexMetadata []*IndexMetadata `protobuf:"bytes,2,rep,name=index_metadata,json=indexMetadata" json:"index_metadata,omitempty"` 1663 XXX_unrecognized []byte `json:"-"` 1664} 1665 1666func (m *ListIndexesResponse) Reset() { *m = ListIndexesResponse{} } 1667func (m *ListIndexesResponse) String() string { return proto.CompactTextString(m) } 1668func (*ListIndexesResponse) ProtoMessage() {} 1669 1670func (m *ListIndexesResponse) GetStatus() *RequestStatus { 1671 if m != nil { 1672 return m.Status 1673 } 1674 return nil 1675} 1676 1677func (m *ListIndexesResponse) GetIndexMetadata() []*IndexMetadata { 1678 if m != nil { 1679 return m.IndexMetadata 1680 } 1681 return nil 1682} 1683 1684type DeleteSchemaParams struct { 1685 Source *IndexSpec_Source `protobuf:"varint,1,opt,name=source,enum=search.IndexSpec_Source,def=0" json:"source,omitempty"` 1686 IndexSpec []*IndexSpec `protobuf:"bytes,2,rep,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 1687 XXX_unrecognized []byte `json:"-"` 1688} 1689 1690func (m *DeleteSchemaParams) Reset() { *m = DeleteSchemaParams{} } 1691func (m *DeleteSchemaParams) String() string { return proto.CompactTextString(m) } 1692func (*DeleteSchemaParams) ProtoMessage() {} 1693 1694const Default_DeleteSchemaParams_Source IndexSpec_Source = IndexSpec_SEARCH 1695 1696func (m *DeleteSchemaParams) GetSource() IndexSpec_Source { 1697 if m != nil && m.Source != nil { 1698 return *m.Source 1699 } 1700 return Default_DeleteSchemaParams_Source 1701} 1702 1703func (m *DeleteSchemaParams) GetIndexSpec() []*IndexSpec { 1704 if m != nil { 1705 return m.IndexSpec 1706 } 1707 return nil 1708} 1709 1710type DeleteSchemaRequest struct { 1711 Params *DeleteSchemaParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 1712 AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` 1713 XXX_unrecognized []byte `json:"-"` 1714} 1715 1716func (m *DeleteSchemaRequest) Reset() { *m = DeleteSchemaRequest{} } 1717func (m *DeleteSchemaRequest) String() string { return proto.CompactTextString(m) } 1718func (*DeleteSchemaRequest) ProtoMessage() {} 1719 1720func (m *DeleteSchemaRequest) GetParams() *DeleteSchemaParams { 1721 if m != nil { 1722 return m.Params 1723 } 1724 return nil 1725} 1726 1727func (m *DeleteSchemaRequest) GetAppId() []byte { 1728 if m != nil { 1729 return m.AppId 1730 } 1731 return nil 1732} 1733 1734type DeleteSchemaResponse struct { 1735 Status []*RequestStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` 1736 XXX_unrecognized []byte `json:"-"` 1737} 1738 1739func (m *DeleteSchemaResponse) Reset() { *m = DeleteSchemaResponse{} } 1740func (m *DeleteSchemaResponse) String() string { return proto.CompactTextString(m) } 1741func (*DeleteSchemaResponse) ProtoMessage() {} 1742 1743func (m *DeleteSchemaResponse) GetStatus() []*RequestStatus { 1744 if m != nil { 1745 return m.Status 1746 } 1747 return nil 1748} 1749 1750type SortSpec struct { 1751 SortExpression *string `protobuf:"bytes,1,req,name=sort_expression,json=sortExpression" json:"sort_expression,omitempty"` 1752 SortDescending *bool `protobuf:"varint,2,opt,name=sort_descending,json=sortDescending,def=1" json:"sort_descending,omitempty"` 1753 DefaultValueText *string `protobuf:"bytes,4,opt,name=default_value_text,json=defaultValueText" json:"default_value_text,omitempty"` 1754 DefaultValueNumeric *float64 `protobuf:"fixed64,5,opt,name=default_value_numeric,json=defaultValueNumeric" json:"default_value_numeric,omitempty"` 1755 XXX_unrecognized []byte `json:"-"` 1756} 1757 1758func (m *SortSpec) Reset() { *m = SortSpec{} } 1759func (m *SortSpec) String() string { return proto.CompactTextString(m) } 1760func (*SortSpec) ProtoMessage() {} 1761 1762const Default_SortSpec_SortDescending bool = true 1763 1764func (m *SortSpec) GetSortExpression() string { 1765 if m != nil && m.SortExpression != nil { 1766 return *m.SortExpression 1767 } 1768 return "" 1769} 1770 1771func (m *SortSpec) GetSortDescending() bool { 1772 if m != nil && m.SortDescending != nil { 1773 return *m.SortDescending 1774 } 1775 return Default_SortSpec_SortDescending 1776} 1777 1778func (m *SortSpec) GetDefaultValueText() string { 1779 if m != nil && m.DefaultValueText != nil { 1780 return *m.DefaultValueText 1781 } 1782 return "" 1783} 1784 1785func (m *SortSpec) GetDefaultValueNumeric() float64 { 1786 if m != nil && m.DefaultValueNumeric != nil { 1787 return *m.DefaultValueNumeric 1788 } 1789 return 0 1790} 1791 1792type ScorerSpec struct { 1793 Scorer *ScorerSpec_Scorer `protobuf:"varint,1,opt,name=scorer,enum=search.ScorerSpec_Scorer,def=2" json:"scorer,omitempty"` 1794 Limit *int32 `protobuf:"varint,2,opt,name=limit,def=1000" json:"limit,omitempty"` 1795 MatchScorerParameters *string `protobuf:"bytes,9,opt,name=match_scorer_parameters,json=matchScorerParameters" json:"match_scorer_parameters,omitempty"` 1796 XXX_unrecognized []byte `json:"-"` 1797} 1798 1799func (m *ScorerSpec) Reset() { *m = ScorerSpec{} } 1800func (m *ScorerSpec) String() string { return proto.CompactTextString(m) } 1801func (*ScorerSpec) ProtoMessage() {} 1802 1803const Default_ScorerSpec_Scorer ScorerSpec_Scorer = ScorerSpec_MATCH_SCORER 1804const Default_ScorerSpec_Limit int32 = 1000 1805 1806func (m *ScorerSpec) GetScorer() ScorerSpec_Scorer { 1807 if m != nil && m.Scorer != nil { 1808 return *m.Scorer 1809 } 1810 return Default_ScorerSpec_Scorer 1811} 1812 1813func (m *ScorerSpec) GetLimit() int32 { 1814 if m != nil && m.Limit != nil { 1815 return *m.Limit 1816 } 1817 return Default_ScorerSpec_Limit 1818} 1819 1820func (m *ScorerSpec) GetMatchScorerParameters() string { 1821 if m != nil && m.MatchScorerParameters != nil { 1822 return *m.MatchScorerParameters 1823 } 1824 return "" 1825} 1826 1827type FieldSpec struct { 1828 Name []string `protobuf:"bytes,1,rep,name=name" json:"name,omitempty"` 1829 Expression []*FieldSpec_Expression `protobuf:"group,2,rep,name=Expression,json=expression" json:"expression,omitempty"` 1830 XXX_unrecognized []byte `json:"-"` 1831} 1832 1833func (m *FieldSpec) Reset() { *m = FieldSpec{} } 1834func (m *FieldSpec) String() string { return proto.CompactTextString(m) } 1835func (*FieldSpec) ProtoMessage() {} 1836 1837func (m *FieldSpec) GetName() []string { 1838 if m != nil { 1839 return m.Name 1840 } 1841 return nil 1842} 1843 1844func (m *FieldSpec) GetExpression() []*FieldSpec_Expression { 1845 if m != nil { 1846 return m.Expression 1847 } 1848 return nil 1849} 1850 1851type FieldSpec_Expression struct { 1852 Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` 1853 Expression *string `protobuf:"bytes,4,req,name=expression" json:"expression,omitempty"` 1854 XXX_unrecognized []byte `json:"-"` 1855} 1856 1857func (m *FieldSpec_Expression) Reset() { *m = FieldSpec_Expression{} } 1858func (m *FieldSpec_Expression) String() string { return proto.CompactTextString(m) } 1859func (*FieldSpec_Expression) ProtoMessage() {} 1860 1861func (m *FieldSpec_Expression) GetName() string { 1862 if m != nil && m.Name != nil { 1863 return *m.Name 1864 } 1865 return "" 1866} 1867 1868func (m *FieldSpec_Expression) GetExpression() string { 1869 if m != nil && m.Expression != nil { 1870 return *m.Expression 1871 } 1872 return "" 1873} 1874 1875type FacetRange struct { 1876 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 1877 Start *string `protobuf:"bytes,2,opt,name=start" json:"start,omitempty"` 1878 End *string `protobuf:"bytes,3,opt,name=end" json:"end,omitempty"` 1879 XXX_unrecognized []byte `json:"-"` 1880} 1881 1882func (m *FacetRange) Reset() { *m = FacetRange{} } 1883func (m *FacetRange) String() string { return proto.CompactTextString(m) } 1884func (*FacetRange) ProtoMessage() {} 1885 1886func (m *FacetRange) GetName() string { 1887 if m != nil && m.Name != nil { 1888 return *m.Name 1889 } 1890 return "" 1891} 1892 1893func (m *FacetRange) GetStart() string { 1894 if m != nil && m.Start != nil { 1895 return *m.Start 1896 } 1897 return "" 1898} 1899 1900func (m *FacetRange) GetEnd() string { 1901 if m != nil && m.End != nil { 1902 return *m.End 1903 } 1904 return "" 1905} 1906 1907type FacetRequestParam struct { 1908 ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit,json=valueLimit" json:"value_limit,omitempty"` 1909 Range []*FacetRange `protobuf:"bytes,2,rep,name=range" json:"range,omitempty"` 1910 ValueConstraint []string `protobuf:"bytes,3,rep,name=value_constraint,json=valueConstraint" json:"value_constraint,omitempty"` 1911 XXX_unrecognized []byte `json:"-"` 1912} 1913 1914func (m *FacetRequestParam) Reset() { *m = FacetRequestParam{} } 1915func (m *FacetRequestParam) String() string { return proto.CompactTextString(m) } 1916func (*FacetRequestParam) ProtoMessage() {} 1917 1918func (m *FacetRequestParam) GetValueLimit() int32 { 1919 if m != nil && m.ValueLimit != nil { 1920 return *m.ValueLimit 1921 } 1922 return 0 1923} 1924 1925func (m *FacetRequestParam) GetRange() []*FacetRange { 1926 if m != nil { 1927 return m.Range 1928 } 1929 return nil 1930} 1931 1932func (m *FacetRequestParam) GetValueConstraint() []string { 1933 if m != nil { 1934 return m.ValueConstraint 1935 } 1936 return nil 1937} 1938 1939type FacetAutoDetectParam struct { 1940 ValueLimit *int32 `protobuf:"varint,1,opt,name=value_limit,json=valueLimit,def=10" json:"value_limit,omitempty"` 1941 XXX_unrecognized []byte `json:"-"` 1942} 1943 1944func (m *FacetAutoDetectParam) Reset() { *m = FacetAutoDetectParam{} } 1945func (m *FacetAutoDetectParam) String() string { return proto.CompactTextString(m) } 1946func (*FacetAutoDetectParam) ProtoMessage() {} 1947 1948const Default_FacetAutoDetectParam_ValueLimit int32 = 10 1949 1950func (m *FacetAutoDetectParam) GetValueLimit() int32 { 1951 if m != nil && m.ValueLimit != nil { 1952 return *m.ValueLimit 1953 } 1954 return Default_FacetAutoDetectParam_ValueLimit 1955} 1956 1957type FacetRequest struct { 1958 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1959 Params *FacetRequestParam `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"` 1960 XXX_unrecognized []byte `json:"-"` 1961} 1962 1963func (m *FacetRequest) Reset() { *m = FacetRequest{} } 1964func (m *FacetRequest) String() string { return proto.CompactTextString(m) } 1965func (*FacetRequest) ProtoMessage() {} 1966 1967func (m *FacetRequest) GetName() string { 1968 if m != nil && m.Name != nil { 1969 return *m.Name 1970 } 1971 return "" 1972} 1973 1974func (m *FacetRequest) GetParams() *FacetRequestParam { 1975 if m != nil { 1976 return m.Params 1977 } 1978 return nil 1979} 1980 1981type FacetRefinement struct { 1982 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1983 Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` 1984 Range *FacetRefinement_Range `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"` 1985 XXX_unrecognized []byte `json:"-"` 1986} 1987 1988func (m *FacetRefinement) Reset() { *m = FacetRefinement{} } 1989func (m *FacetRefinement) String() string { return proto.CompactTextString(m) } 1990func (*FacetRefinement) ProtoMessage() {} 1991 1992func (m *FacetRefinement) GetName() string { 1993 if m != nil && m.Name != nil { 1994 return *m.Name 1995 } 1996 return "" 1997} 1998 1999func (m *FacetRefinement) GetValue() string { 2000 if m != nil && m.Value != nil { 2001 return *m.Value 2002 } 2003 return "" 2004} 2005 2006func (m *FacetRefinement) GetRange() *FacetRefinement_Range { 2007 if m != nil { 2008 return m.Range 2009 } 2010 return nil 2011} 2012 2013type FacetRefinement_Range struct { 2014 Start *string `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"` 2015 End *string `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"` 2016 XXX_unrecognized []byte `json:"-"` 2017} 2018 2019func (m *FacetRefinement_Range) Reset() { *m = FacetRefinement_Range{} } 2020func (m *FacetRefinement_Range) String() string { return proto.CompactTextString(m) } 2021func (*FacetRefinement_Range) ProtoMessage() {} 2022 2023func (m *FacetRefinement_Range) GetStart() string { 2024 if m != nil && m.Start != nil { 2025 return *m.Start 2026 } 2027 return "" 2028} 2029 2030func (m *FacetRefinement_Range) GetEnd() string { 2031 if m != nil && m.End != nil { 2032 return *m.End 2033 } 2034 return "" 2035} 2036 2037type SearchParams struct { 2038 IndexSpec *IndexSpec `protobuf:"bytes,1,req,name=index_spec,json=indexSpec" json:"index_spec,omitempty"` 2039 Query *string `protobuf:"bytes,2,req,name=query" json:"query,omitempty"` 2040 Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"` 2041 Offset *int32 `protobuf:"varint,11,opt,name=offset" json:"offset,omitempty"` 2042 CursorType *SearchParams_CursorType `protobuf:"varint,5,opt,name=cursor_type,json=cursorType,enum=search.SearchParams_CursorType,def=0" json:"cursor_type,omitempty"` 2043 Limit *int32 `protobuf:"varint,6,opt,name=limit,def=20" json:"limit,omitempty"` 2044 MatchedCountAccuracy *int32 `protobuf:"varint,7,opt,name=matched_count_accuracy,json=matchedCountAccuracy" json:"matched_count_accuracy,omitempty"` 2045 SortSpec []*SortSpec `protobuf:"bytes,8,rep,name=sort_spec,json=sortSpec" json:"sort_spec,omitempty"` 2046 ScorerSpec *ScorerSpec `protobuf:"bytes,9,opt,name=scorer_spec,json=scorerSpec" json:"scorer_spec,omitempty"` 2047 FieldSpec *FieldSpec `protobuf:"bytes,10,opt,name=field_spec,json=fieldSpec" json:"field_spec,omitempty"` 2048 KeysOnly *bool `protobuf:"varint,12,opt,name=keys_only,json=keysOnly" json:"keys_only,omitempty"` 2049 ParsingMode *SearchParams_ParsingMode `protobuf:"varint,13,opt,name=parsing_mode,json=parsingMode,enum=search.SearchParams_ParsingMode,def=0" json:"parsing_mode,omitempty"` 2050 AutoDiscoverFacetCount *int32 `protobuf:"varint,15,opt,name=auto_discover_facet_count,json=autoDiscoverFacetCount,def=0" json:"auto_discover_facet_count,omitempty"` 2051 IncludeFacet []*FacetRequest `protobuf:"bytes,16,rep,name=include_facet,json=includeFacet" json:"include_facet,omitempty"` 2052 FacetRefinement []*FacetRefinement `protobuf:"bytes,17,rep,name=facet_refinement,json=facetRefinement" json:"facet_refinement,omitempty"` 2053 FacetAutoDetectParam *FacetAutoDetectParam `protobuf:"bytes,18,opt,name=facet_auto_detect_param,json=facetAutoDetectParam" json:"facet_auto_detect_param,omitempty"` 2054 FacetDepth *int32 `protobuf:"varint,19,opt,name=facet_depth,json=facetDepth,def=1000" json:"facet_depth,omitempty"` 2055 EnableQueryRewrite *bool `protobuf:"varint,20,opt,name=enable_query_rewrite,json=enableQueryRewrite,def=0" json:"enable_query_rewrite,omitempty"` 2056 XXX_unrecognized []byte `json:"-"` 2057} 2058 2059func (m *SearchParams) Reset() { *m = SearchParams{} } 2060func (m *SearchParams) String() string { return proto.CompactTextString(m) } 2061func (*SearchParams) ProtoMessage() {} 2062 2063const Default_SearchParams_CursorType SearchParams_CursorType = SearchParams_NONE 2064const Default_SearchParams_Limit int32 = 20 2065const Default_SearchParams_ParsingMode SearchParams_ParsingMode = SearchParams_STRICT 2066const Default_SearchParams_AutoDiscoverFacetCount int32 = 0 2067const Default_SearchParams_FacetDepth int32 = 1000 2068const Default_SearchParams_EnableQueryRewrite bool = false 2069 2070func (m *SearchParams) GetIndexSpec() *IndexSpec { 2071 if m != nil { 2072 return m.IndexSpec 2073 } 2074 return nil 2075} 2076 2077func (m *SearchParams) GetQuery() string { 2078 if m != nil && m.Query != nil { 2079 return *m.Query 2080 } 2081 return "" 2082} 2083 2084func (m *SearchParams) GetCursor() string { 2085 if m != nil && m.Cursor != nil { 2086 return *m.Cursor 2087 } 2088 return "" 2089} 2090 2091func (m *SearchParams) GetOffset() int32 { 2092 if m != nil && m.Offset != nil { 2093 return *m.Offset 2094 } 2095 return 0 2096} 2097 2098func (m *SearchParams) GetCursorType() SearchParams_CursorType { 2099 if m != nil && m.CursorType != nil { 2100 return *m.CursorType 2101 } 2102 return Default_SearchParams_CursorType 2103} 2104 2105func (m *SearchParams) GetLimit() int32 { 2106 if m != nil && m.Limit != nil { 2107 return *m.Limit 2108 } 2109 return Default_SearchParams_Limit 2110} 2111 2112func (m *SearchParams) GetMatchedCountAccuracy() int32 { 2113 if m != nil && m.MatchedCountAccuracy != nil { 2114 return *m.MatchedCountAccuracy 2115 } 2116 return 0 2117} 2118 2119func (m *SearchParams) GetSortSpec() []*SortSpec { 2120 if m != nil { 2121 return m.SortSpec 2122 } 2123 return nil 2124} 2125 2126func (m *SearchParams) GetScorerSpec() *ScorerSpec { 2127 if m != nil { 2128 return m.ScorerSpec 2129 } 2130 return nil 2131} 2132 2133func (m *SearchParams) GetFieldSpec() *FieldSpec { 2134 if m != nil { 2135 return m.FieldSpec 2136 } 2137 return nil 2138} 2139 2140func (m *SearchParams) GetKeysOnly() bool { 2141 if m != nil && m.KeysOnly != nil { 2142 return *m.KeysOnly 2143 } 2144 return false 2145} 2146 2147func (m *SearchParams) GetParsingMode() SearchParams_ParsingMode { 2148 if m != nil && m.ParsingMode != nil { 2149 return *m.ParsingMode 2150 } 2151 return Default_SearchParams_ParsingMode 2152} 2153 2154func (m *SearchParams) GetAutoDiscoverFacetCount() int32 { 2155 if m != nil && m.AutoDiscoverFacetCount != nil { 2156 return *m.AutoDiscoverFacetCount 2157 } 2158 return Default_SearchParams_AutoDiscoverFacetCount 2159} 2160 2161func (m *SearchParams) GetIncludeFacet() []*FacetRequest { 2162 if m != nil { 2163 return m.IncludeFacet 2164 } 2165 return nil 2166} 2167 2168func (m *SearchParams) GetFacetRefinement() []*FacetRefinement { 2169 if m != nil { 2170 return m.FacetRefinement 2171 } 2172 return nil 2173} 2174 2175func (m *SearchParams) GetFacetAutoDetectParam() *FacetAutoDetectParam { 2176 if m != nil { 2177 return m.FacetAutoDetectParam 2178 } 2179 return nil 2180} 2181 2182func (m *SearchParams) GetFacetDepth() int32 { 2183 if m != nil && m.FacetDepth != nil { 2184 return *m.FacetDepth 2185 } 2186 return Default_SearchParams_FacetDepth 2187} 2188 2189func (m *SearchParams) GetEnableQueryRewrite() bool { 2190 if m != nil && m.EnableQueryRewrite != nil { 2191 return *m.EnableQueryRewrite 2192 } 2193 return Default_SearchParams_EnableQueryRewrite 2194} 2195 2196type SearchRequest struct { 2197 Params *SearchParams `protobuf:"bytes,1,req,name=params" json:"params,omitempty"` 2198 AppId []byte `protobuf:"bytes,3,opt,name=app_id,json=appId" json:"app_id,omitempty"` 2199 XXX_unrecognized []byte `json:"-"` 2200} 2201 2202func (m *SearchRequest) Reset() { *m = SearchRequest{} } 2203func (m *SearchRequest) String() string { return proto.CompactTextString(m) } 2204func (*SearchRequest) ProtoMessage() {} 2205 2206func (m *SearchRequest) GetParams() *SearchParams { 2207 if m != nil { 2208 return m.Params 2209 } 2210 return nil 2211} 2212 2213func (m *SearchRequest) GetAppId() []byte { 2214 if m != nil { 2215 return m.AppId 2216 } 2217 return nil 2218} 2219 2220type FacetResultValue struct { 2221 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 2222 Count *int32 `protobuf:"varint,2,req,name=count" json:"count,omitempty"` 2223 Refinement *FacetRefinement `protobuf:"bytes,3,req,name=refinement" json:"refinement,omitempty"` 2224 XXX_unrecognized []byte `json:"-"` 2225} 2226 2227func (m *FacetResultValue) Reset() { *m = FacetResultValue{} } 2228func (m *FacetResultValue) String() string { return proto.CompactTextString(m) } 2229func (*FacetResultValue) ProtoMessage() {} 2230 2231func (m *FacetResultValue) GetName() string { 2232 if m != nil && m.Name != nil { 2233 return *m.Name 2234 } 2235 return "" 2236} 2237 2238func (m *FacetResultValue) GetCount() int32 { 2239 if m != nil && m.Count != nil { 2240 return *m.Count 2241 } 2242 return 0 2243} 2244 2245func (m *FacetResultValue) GetRefinement() *FacetRefinement { 2246 if m != nil { 2247 return m.Refinement 2248 } 2249 return nil 2250} 2251 2252type FacetResult struct { 2253 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 2254 Value []*FacetResultValue `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` 2255 XXX_unrecognized []byte `json:"-"` 2256} 2257 2258func (m *FacetResult) Reset() { *m = FacetResult{} } 2259func (m *FacetResult) String() string { return proto.CompactTextString(m) } 2260func (*FacetResult) ProtoMessage() {} 2261 2262func (m *FacetResult) GetName() string { 2263 if m != nil && m.Name != nil { 2264 return *m.Name 2265 } 2266 return "" 2267} 2268 2269func (m *FacetResult) GetValue() []*FacetResultValue { 2270 if m != nil { 2271 return m.Value 2272 } 2273 return nil 2274} 2275 2276type SearchResult struct { 2277 Document *Document `protobuf:"bytes,1,req,name=document" json:"document,omitempty"` 2278 Expression []*Field `protobuf:"bytes,4,rep,name=expression" json:"expression,omitempty"` 2279 Score []float64 `protobuf:"fixed64,2,rep,name=score" json:"score,omitempty"` 2280 Cursor *string `protobuf:"bytes,3,opt,name=cursor" json:"cursor,omitempty"` 2281 XXX_unrecognized []byte `json:"-"` 2282} 2283 2284func (m *SearchResult) Reset() { *m = SearchResult{} } 2285func (m *SearchResult) String() string { return proto.CompactTextString(m) } 2286func (*SearchResult) ProtoMessage() {} 2287 2288func (m *SearchResult) GetDocument() *Document { 2289 if m != nil { 2290 return m.Document 2291 } 2292 return nil 2293} 2294 2295func (m *SearchResult) GetExpression() []*Field { 2296 if m != nil { 2297 return m.Expression 2298 } 2299 return nil 2300} 2301 2302func (m *SearchResult) GetScore() []float64 { 2303 if m != nil { 2304 return m.Score 2305 } 2306 return nil 2307} 2308 2309func (m *SearchResult) GetCursor() string { 2310 if m != nil && m.Cursor != nil { 2311 return *m.Cursor 2312 } 2313 return "" 2314} 2315 2316type SearchResponse struct { 2317 Result []*SearchResult `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"` 2318 MatchedCount *int64 `protobuf:"varint,2,req,name=matched_count,json=matchedCount" json:"matched_count,omitempty"` 2319 Status *RequestStatus `protobuf:"bytes,3,req,name=status" json:"status,omitempty"` 2320 Cursor *string `protobuf:"bytes,4,opt,name=cursor" json:"cursor,omitempty"` 2321 FacetResult []*FacetResult `protobuf:"bytes,5,rep,name=facet_result,json=facetResult" json:"facet_result,omitempty"` 2322 DocsScored *int32 `protobuf:"varint,6,opt,name=docs_scored,json=docsScored" json:"docs_scored,omitempty"` 2323 proto.XXX_InternalExtensions `json:"-"` 2324 XXX_unrecognized []byte `json:"-"` 2325} 2326 2327func (m *SearchResponse) Reset() { *m = SearchResponse{} } 2328func (m *SearchResponse) String() string { return proto.CompactTextString(m) } 2329func (*SearchResponse) ProtoMessage() {} 2330 2331var extRange_SearchResponse = []proto.ExtensionRange{ 2332 {1000, 9999}, 2333} 2334 2335func (*SearchResponse) ExtensionRangeArray() []proto.ExtensionRange { 2336 return extRange_SearchResponse 2337} 2338 2339func (m *SearchResponse) GetResult() []*SearchResult { 2340 if m != nil { 2341 return m.Result 2342 } 2343 return nil 2344} 2345 2346func (m *SearchResponse) GetMatchedCount() int64 { 2347 if m != nil && m.MatchedCount != nil { 2348 return *m.MatchedCount 2349 } 2350 return 0 2351} 2352 2353func (m *SearchResponse) GetStatus() *RequestStatus { 2354 if m != nil { 2355 return m.Status 2356 } 2357 return nil 2358} 2359 2360func (m *SearchResponse) GetCursor() string { 2361 if m != nil && m.Cursor != nil { 2362 return *m.Cursor 2363 } 2364 return "" 2365} 2366 2367func (m *SearchResponse) GetFacetResult() []*FacetResult { 2368 if m != nil { 2369 return m.FacetResult 2370 } 2371 return nil 2372} 2373 2374func (m *SearchResponse) GetDocsScored() int32 { 2375 if m != nil && m.DocsScored != nil { 2376 return *m.DocsScored 2377 } 2378 return 0 2379} 2380 2381func init() { 2382 proto.RegisterType((*Scope)(nil), "search.Scope") 2383 proto.RegisterType((*Entry)(nil), "search.Entry") 2384 proto.RegisterType((*AccessControlList)(nil), "search.AccessControlList") 2385 proto.RegisterType((*FieldValue)(nil), "search.FieldValue") 2386 proto.RegisterType((*FieldValue_Geo)(nil), "search.FieldValue.Geo") 2387 proto.RegisterType((*Field)(nil), "search.Field") 2388 proto.RegisterType((*FieldTypes)(nil), "search.FieldTypes") 2389 proto.RegisterType((*IndexShardSettings)(nil), "search.IndexShardSettings") 2390 proto.RegisterType((*FacetValue)(nil), "search.FacetValue") 2391 proto.RegisterType((*Facet)(nil), "search.Facet") 2392 proto.RegisterType((*DocumentMetadata)(nil), "search.DocumentMetadata") 2393 proto.RegisterType((*Document)(nil), "search.Document") 2394 proto.RegisterType((*SearchServiceError)(nil), "search.SearchServiceError") 2395 proto.RegisterType((*RequestStatus)(nil), "search.RequestStatus") 2396 proto.RegisterType((*IndexSpec)(nil), "search.IndexSpec") 2397 proto.RegisterType((*IndexMetadata)(nil), "search.IndexMetadata") 2398 proto.RegisterType((*IndexMetadata_Storage)(nil), "search.IndexMetadata.Storage") 2399 proto.RegisterType((*IndexDocumentParams)(nil), "search.IndexDocumentParams") 2400 proto.RegisterType((*IndexDocumentRequest)(nil), "search.IndexDocumentRequest") 2401 proto.RegisterType((*IndexDocumentResponse)(nil), "search.IndexDocumentResponse") 2402 proto.RegisterType((*DeleteDocumentParams)(nil), "search.DeleteDocumentParams") 2403 proto.RegisterType((*DeleteDocumentRequest)(nil), "search.DeleteDocumentRequest") 2404 proto.RegisterType((*DeleteDocumentResponse)(nil), "search.DeleteDocumentResponse") 2405 proto.RegisterType((*ListDocumentsParams)(nil), "search.ListDocumentsParams") 2406 proto.RegisterType((*ListDocumentsRequest)(nil), "search.ListDocumentsRequest") 2407 proto.RegisterType((*ListDocumentsResponse)(nil), "search.ListDocumentsResponse") 2408 proto.RegisterType((*DeleteIndexParams)(nil), "search.DeleteIndexParams") 2409 proto.RegisterType((*DeleteIndexRequest)(nil), "search.DeleteIndexRequest") 2410 proto.RegisterType((*DeleteIndexResponse)(nil), "search.DeleteIndexResponse") 2411 proto.RegisterType((*CancelDeleteIndexParams)(nil), "search.CancelDeleteIndexParams") 2412 proto.RegisterType((*CancelDeleteIndexRequest)(nil), "search.CancelDeleteIndexRequest") 2413 proto.RegisterType((*CancelDeleteIndexResponse)(nil), "search.CancelDeleteIndexResponse") 2414 proto.RegisterType((*ListIndexesParams)(nil), "search.ListIndexesParams") 2415 proto.RegisterType((*ListIndexesRequest)(nil), "search.ListIndexesRequest") 2416 proto.RegisterType((*ListIndexesResponse)(nil), "search.ListIndexesResponse") 2417 proto.RegisterType((*DeleteSchemaParams)(nil), "search.DeleteSchemaParams") 2418 proto.RegisterType((*DeleteSchemaRequest)(nil), "search.DeleteSchemaRequest") 2419 proto.RegisterType((*DeleteSchemaResponse)(nil), "search.DeleteSchemaResponse") 2420 proto.RegisterType((*SortSpec)(nil), "search.SortSpec") 2421 proto.RegisterType((*ScorerSpec)(nil), "search.ScorerSpec") 2422 proto.RegisterType((*FieldSpec)(nil), "search.FieldSpec") 2423 proto.RegisterType((*FieldSpec_Expression)(nil), "search.FieldSpec.Expression") 2424 proto.RegisterType((*FacetRange)(nil), "search.FacetRange") 2425 proto.RegisterType((*FacetRequestParam)(nil), "search.FacetRequestParam") 2426 proto.RegisterType((*FacetAutoDetectParam)(nil), "search.FacetAutoDetectParam") 2427 proto.RegisterType((*FacetRequest)(nil), "search.FacetRequest") 2428 proto.RegisterType((*FacetRefinement)(nil), "search.FacetRefinement") 2429 proto.RegisterType((*FacetRefinement_Range)(nil), "search.FacetRefinement.Range") 2430 proto.RegisterType((*SearchParams)(nil), "search.SearchParams") 2431 proto.RegisterType((*SearchRequest)(nil), "search.SearchRequest") 2432 proto.RegisterType((*FacetResultValue)(nil), "search.FacetResultValue") 2433 proto.RegisterType((*FacetResult)(nil), "search.FacetResult") 2434 proto.RegisterType((*SearchResult)(nil), "search.SearchResult") 2435 proto.RegisterType((*SearchResponse)(nil), "search.SearchResponse") 2436 proto.RegisterEnum("search.Scope_Type", Scope_Type_name, Scope_Type_value) 2437 proto.RegisterEnum("search.Entry_Permission", Entry_Permission_name, Entry_Permission_value) 2438 proto.RegisterEnum("search.FieldValue_ContentType", FieldValue_ContentType_name, FieldValue_ContentType_value) 2439 proto.RegisterEnum("search.FacetValue_ContentType", FacetValue_ContentType_name, FacetValue_ContentType_value) 2440 proto.RegisterEnum("search.Document_OrderIdSource", Document_OrderIdSource_name, Document_OrderIdSource_value) 2441 proto.RegisterEnum("search.Document_Storage", Document_Storage_name, Document_Storage_value) 2442 proto.RegisterEnum("search.SearchServiceError_ErrorCode", SearchServiceError_ErrorCode_name, SearchServiceError_ErrorCode_value) 2443 proto.RegisterEnum("search.IndexSpec_Consistency", IndexSpec_Consistency_name, IndexSpec_Consistency_value) 2444 proto.RegisterEnum("search.IndexSpec_Source", IndexSpec_Source_name, IndexSpec_Source_value) 2445 proto.RegisterEnum("search.IndexSpec_Mode", IndexSpec_Mode_name, IndexSpec_Mode_value) 2446 proto.RegisterEnum("search.IndexMetadata_IndexState", IndexMetadata_IndexState_name, IndexMetadata_IndexState_value) 2447 proto.RegisterEnum("search.IndexDocumentParams_Freshness", IndexDocumentParams_Freshness_name, IndexDocumentParams_Freshness_value) 2448 proto.RegisterEnum("search.ScorerSpec_Scorer", ScorerSpec_Scorer_name, ScorerSpec_Scorer_value) 2449 proto.RegisterEnum("search.SearchParams_CursorType", SearchParams_CursorType_name, SearchParams_CursorType_value) 2450 proto.RegisterEnum("search.SearchParams_ParsingMode", SearchParams_ParsingMode_name, SearchParams_ParsingMode_value) 2451} 2452 2453func init() { 2454} 2455