search.pb.go 60 KB

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