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