@google-cloud/vectorsearch 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +22 -0
  2. package/build/protos/google/cloud/vectorsearch/v1/common.proto +37 -0
  3. package/build/protos/google/cloud/vectorsearch/v1/data_object.proto +95 -0
  4. package/build/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto +449 -0
  5. package/build/protos/google/cloud/vectorsearch/v1/data_object_service.proto +242 -0
  6. package/build/protos/google/cloud/vectorsearch/v1/embedding_config.proto +74 -0
  7. package/build/protos/google/cloud/vectorsearch/v1/vectorsearch_service.proto +707 -0
  8. package/build/protos/protos.d.ts +7118 -0
  9. package/build/protos/protos.js +17345 -0
  10. package/build/protos/protos.json +2110 -0
  11. package/build/src/index.d.ts +12 -10
  12. package/build/src/index.js +7 -5
  13. package/build/src/index.js.map +1 -1
  14. package/build/src/v1/data_object_search_service_client.d.ts +583 -0
  15. package/build/src/v1/data_object_search_service_client.js +855 -0
  16. package/build/src/v1/data_object_search_service_client.js.map +1 -0
  17. package/build/src/v1/data_object_search_service_client_config.json +58 -0
  18. package/build/src/v1/data_object_search_service_proto_list.json +8 -0
  19. package/build/src/v1/data_object_service_client.d.ts +490 -0
  20. package/build/src/v1/data_object_service_client.js +767 -0
  21. package/build/src/v1/data_object_service_client.js.map +1 -0
  22. package/build/src/v1/data_object_service_client_config.json +73 -0
  23. package/build/src/v1/data_object_service_proto_list.json +8 -0
  24. package/build/src/v1/gapic_metadata.json +277 -0
  25. package/build/src/v1/index.d.ts +3 -0
  26. package/build/src/v1/index.js +27 -0
  27. package/build/src/v1/index.js.map +1 -0
  28. package/build/src/v1/vector_search_service_client.d.ts +1021 -0
  29. package/build/src/v1/vector_search_service_client.js +1387 -0
  30. package/build/src/v1/vector_search_service_client.js.map +1 -0
  31. package/build/src/v1/vector_search_service_client_config.json +88 -0
  32. package/build/src/v1/vector_search_service_proto_list.json +8 -0
  33. package/package.json +1 -1
@@ -6,6 +6,2116 @@
6
6
  "nested": {
7
7
  "vectorsearch": {
8
8
  "nested": {
9
+ "v1": {
10
+ "options": {
11
+ "csharp_namespace": "Google.Cloud.VectorSearch.V1",
12
+ "go_package": "cloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb",
13
+ "java_multiple_files": true,
14
+ "java_outer_classname": "VectorSearchServiceProto",
15
+ "java_package": "com.google.cloud.vectorsearch.v1",
16
+ "php_namespace": "Google\\Cloud\\VectorSearch\\V1",
17
+ "ruby_package": "Google::Cloud::VectorSearch::V1"
18
+ },
19
+ "nested": {
20
+ "DistanceMetric": {
21
+ "values": {
22
+ "DISTANCE_METRIC_UNSPECIFIED": 0,
23
+ "DOT_PRODUCT": 1,
24
+ "COSINE_DISTANCE": 2
25
+ }
26
+ },
27
+ "DataObject": {
28
+ "options": {
29
+ "(google.api.resource).type": "vectorsearch.googleapis.com/DataObject",
30
+ "(google.api.resource).pattern": "projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}",
31
+ "(google.api.resource).plural": "dataObjects",
32
+ "(google.api.resource).singular": "dataObject"
33
+ },
34
+ "fields": {
35
+ "name": {
36
+ "type": "string",
37
+ "id": 1,
38
+ "options": {
39
+ "(google.api.field_behavior)": "IDENTIFIER"
40
+ }
41
+ },
42
+ "dataObjectId": {
43
+ "type": "string",
44
+ "id": 2,
45
+ "options": {
46
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
47
+ }
48
+ },
49
+ "createTime": {
50
+ "type": "google.protobuf.Timestamp",
51
+ "id": 4,
52
+ "options": {
53
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
54
+ }
55
+ },
56
+ "updateTime": {
57
+ "type": "google.protobuf.Timestamp",
58
+ "id": 5,
59
+ "options": {
60
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
61
+ }
62
+ },
63
+ "data": {
64
+ "type": "google.protobuf.Struct",
65
+ "id": 6,
66
+ "options": {
67
+ "(google.api.field_behavior)": "OPTIONAL"
68
+ }
69
+ },
70
+ "vectors": {
71
+ "keyType": "string",
72
+ "type": "Vector",
73
+ "id": 7,
74
+ "options": {
75
+ "(google.api.field_behavior)": "OPTIONAL"
76
+ }
77
+ },
78
+ "etag": {
79
+ "type": "string",
80
+ "id": 8,
81
+ "options": {
82
+ "(google.api.field_behavior)": "OPTIONAL"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "Vector": {
88
+ "oneofs": {
89
+ "vectorType": {
90
+ "oneof": [
91
+ "dense",
92
+ "sparse"
93
+ ]
94
+ }
95
+ },
96
+ "fields": {
97
+ "dense": {
98
+ "type": "DenseVector",
99
+ "id": 2
100
+ },
101
+ "sparse": {
102
+ "type": "SparseVector",
103
+ "id": 3
104
+ }
105
+ }
106
+ },
107
+ "DenseVector": {
108
+ "fields": {
109
+ "values": {
110
+ "rule": "repeated",
111
+ "type": "float",
112
+ "id": 1,
113
+ "options": {
114
+ "(google.api.field_behavior)": "REQUIRED"
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "SparseVector": {
120
+ "fields": {
121
+ "values": {
122
+ "rule": "repeated",
123
+ "type": "float",
124
+ "id": 1,
125
+ "options": {
126
+ "(google.api.field_behavior)": "REQUIRED"
127
+ }
128
+ },
129
+ "indices": {
130
+ "rule": "repeated",
131
+ "type": "int32",
132
+ "id": 2,
133
+ "options": {
134
+ "(google.api.field_behavior)": "REQUIRED"
135
+ }
136
+ }
137
+ }
138
+ },
139
+ "DataObjectSearchService": {
140
+ "options": {
141
+ "(google.api.default_host)": "vectorsearch.googleapis.com",
142
+ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
143
+ },
144
+ "methods": {
145
+ "SearchDataObjects": {
146
+ "requestType": "SearchDataObjectsRequest",
147
+ "responseType": "SearchDataObjectsResponse",
148
+ "options": {
149
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:search",
150
+ "(google.api.http).body": "*"
151
+ },
152
+ "parsedOptions": [
153
+ {
154
+ "(google.api.http)": {
155
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:search",
156
+ "body": "*"
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ "QueryDataObjects": {
162
+ "requestType": "QueryDataObjectsRequest",
163
+ "responseType": "QueryDataObjectsResponse",
164
+ "options": {
165
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:query",
166
+ "(google.api.http).body": "*"
167
+ },
168
+ "parsedOptions": [
169
+ {
170
+ "(google.api.http)": {
171
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:query",
172
+ "body": "*"
173
+ }
174
+ }
175
+ ]
176
+ },
177
+ "AggregateDataObjects": {
178
+ "requestType": "AggregateDataObjectsRequest",
179
+ "responseType": "AggregateDataObjectsResponse",
180
+ "options": {
181
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:aggregate",
182
+ "(google.api.http).body": "*"
183
+ },
184
+ "parsedOptions": [
185
+ {
186
+ "(google.api.http)": {
187
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:aggregate",
188
+ "body": "*"
189
+ }
190
+ }
191
+ ]
192
+ },
193
+ "BatchSearchDataObjects": {
194
+ "requestType": "BatchSearchDataObjectsRequest",
195
+ "responseType": "BatchSearchDataObjectsResponse",
196
+ "options": {
197
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchSearch",
198
+ "(google.api.http).body": "*"
199
+ },
200
+ "parsedOptions": [
201
+ {
202
+ "(google.api.http)": {
203
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchSearch",
204
+ "body": "*"
205
+ }
206
+ }
207
+ ]
208
+ }
209
+ }
210
+ },
211
+ "AggregationMethod": {
212
+ "values": {
213
+ "AGGREGATION_METHOD_UNSPECIFIED": 0,
214
+ "COUNT": 1
215
+ }
216
+ },
217
+ "OutputFields": {
218
+ "fields": {
219
+ "dataFields": {
220
+ "rule": "repeated",
221
+ "type": "string",
222
+ "id": 1,
223
+ "options": {
224
+ "(google.api.field_behavior)": "OPTIONAL"
225
+ }
226
+ },
227
+ "vectorFields": {
228
+ "rule": "repeated",
229
+ "type": "string",
230
+ "id": 2,
231
+ "options": {
232
+ "(google.api.field_behavior)": "OPTIONAL"
233
+ }
234
+ },
235
+ "metadataFields": {
236
+ "rule": "repeated",
237
+ "type": "string",
238
+ "id": 3,
239
+ "options": {
240
+ "(google.api.field_behavior)": "OPTIONAL"
241
+ }
242
+ }
243
+ }
244
+ },
245
+ "SearchHint": {
246
+ "oneofs": {
247
+ "indexType": {
248
+ "oneof": [
249
+ "knnHint",
250
+ "indexHint"
251
+ ]
252
+ }
253
+ },
254
+ "fields": {
255
+ "knnHint": {
256
+ "type": "KnnHint",
257
+ "id": 3,
258
+ "options": {
259
+ "(google.api.field_behavior)": "OPTIONAL"
260
+ }
261
+ },
262
+ "indexHint": {
263
+ "type": "IndexHint",
264
+ "id": 4,
265
+ "options": {
266
+ "(google.api.field_behavior)": "OPTIONAL"
267
+ }
268
+ }
269
+ },
270
+ "nested": {
271
+ "IndexHint": {
272
+ "oneofs": {
273
+ "params": {
274
+ "oneof": [
275
+ "denseScannParams"
276
+ ]
277
+ }
278
+ },
279
+ "fields": {
280
+ "denseScannParams": {
281
+ "type": "DenseScannParams",
282
+ "id": 2,
283
+ "options": {
284
+ "(google.api.field_behavior)": "OPTIONAL"
285
+ }
286
+ },
287
+ "name": {
288
+ "type": "string",
289
+ "id": 1,
290
+ "options": {
291
+ "(google.api.field_behavior)": "REQUIRED",
292
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Index"
293
+ }
294
+ }
295
+ },
296
+ "nested": {
297
+ "DenseScannParams": {
298
+ "fields": {
299
+ "searchLeavesPct": {
300
+ "type": "int32",
301
+ "id": 1,
302
+ "options": {
303
+ "(google.api.field_behavior)": "OPTIONAL"
304
+ }
305
+ },
306
+ "initialCandidateCount": {
307
+ "type": "int32",
308
+ "id": 2,
309
+ "options": {
310
+ "(google.api.field_behavior)": "OPTIONAL"
311
+ }
312
+ }
313
+ }
314
+ }
315
+ }
316
+ },
317
+ "KnnHint": {
318
+ "fields": {}
319
+ }
320
+ }
321
+ },
322
+ "Search": {
323
+ "oneofs": {
324
+ "searchType": {
325
+ "oneof": [
326
+ "vectorSearch",
327
+ "semanticSearch",
328
+ "textSearch"
329
+ ]
330
+ }
331
+ },
332
+ "fields": {
333
+ "vectorSearch": {
334
+ "type": "VectorSearch",
335
+ "id": 1
336
+ },
337
+ "semanticSearch": {
338
+ "type": "SemanticSearch",
339
+ "id": 2
340
+ },
341
+ "textSearch": {
342
+ "type": "TextSearch",
343
+ "id": 3
344
+ }
345
+ }
346
+ },
347
+ "VectorSearch": {
348
+ "oneofs": {
349
+ "vectorType": {
350
+ "oneof": [
351
+ "vector",
352
+ "sparseVector"
353
+ ]
354
+ },
355
+ "_topK": {
356
+ "oneof": [
357
+ "topK"
358
+ ]
359
+ }
360
+ },
361
+ "fields": {
362
+ "vector": {
363
+ "type": "DenseVector",
364
+ "id": 1
365
+ },
366
+ "sparseVector": {
367
+ "type": "SparseVector",
368
+ "id": 2
369
+ },
370
+ "searchField": {
371
+ "type": "string",
372
+ "id": 8,
373
+ "options": {
374
+ "(google.api.field_behavior)": "REQUIRED"
375
+ }
376
+ },
377
+ "filter": {
378
+ "type": "google.protobuf.Struct",
379
+ "id": 4,
380
+ "options": {
381
+ "(google.api.field_behavior)": "OPTIONAL"
382
+ }
383
+ },
384
+ "topK": {
385
+ "type": "int32",
386
+ "id": 5,
387
+ "options": {
388
+ "(google.api.field_behavior)": "OPTIONAL",
389
+ "proto3_optional": true
390
+ }
391
+ },
392
+ "outputFields": {
393
+ "type": "OutputFields",
394
+ "id": 7,
395
+ "options": {
396
+ "(google.api.field_behavior)": "OPTIONAL"
397
+ }
398
+ },
399
+ "searchHint": {
400
+ "type": "SearchHint",
401
+ "id": 9,
402
+ "options": {
403
+ "(google.api.field_behavior)": "OPTIONAL"
404
+ }
405
+ },
406
+ "distanceMetric": {
407
+ "type": "DistanceMetric",
408
+ "id": 11,
409
+ "options": {
410
+ "(google.api.field_behavior)": "OPTIONAL"
411
+ }
412
+ }
413
+ }
414
+ },
415
+ "SemanticSearch": {
416
+ "oneofs": {
417
+ "_topK": {
418
+ "oneof": [
419
+ "topK"
420
+ ]
421
+ }
422
+ },
423
+ "fields": {
424
+ "searchText": {
425
+ "type": "string",
426
+ "id": 1,
427
+ "options": {
428
+ "(google.api.field_behavior)": "REQUIRED"
429
+ }
430
+ },
431
+ "searchField": {
432
+ "type": "string",
433
+ "id": 2,
434
+ "options": {
435
+ "(google.api.field_behavior)": "REQUIRED"
436
+ }
437
+ },
438
+ "taskType": {
439
+ "type": "EmbeddingTaskType",
440
+ "id": 5,
441
+ "options": {
442
+ "(google.api.field_behavior)": "REQUIRED"
443
+ }
444
+ },
445
+ "outputFields": {
446
+ "type": "OutputFields",
447
+ "id": 3,
448
+ "options": {
449
+ "(google.api.field_behavior)": "OPTIONAL"
450
+ }
451
+ },
452
+ "filter": {
453
+ "type": "google.protobuf.Struct",
454
+ "id": 6,
455
+ "options": {
456
+ "(google.api.field_behavior)": "OPTIONAL"
457
+ }
458
+ },
459
+ "topK": {
460
+ "type": "int32",
461
+ "id": 4,
462
+ "options": {
463
+ "(google.api.field_behavior)": "OPTIONAL",
464
+ "proto3_optional": true
465
+ }
466
+ },
467
+ "searchHint": {
468
+ "type": "SearchHint",
469
+ "id": 7,
470
+ "options": {
471
+ "(google.api.field_behavior)": "OPTIONAL"
472
+ }
473
+ }
474
+ }
475
+ },
476
+ "TextSearch": {
477
+ "oneofs": {
478
+ "_topK": {
479
+ "oneof": [
480
+ "topK"
481
+ ]
482
+ }
483
+ },
484
+ "fields": {
485
+ "searchText": {
486
+ "type": "string",
487
+ "id": 1,
488
+ "options": {
489
+ "(google.api.field_behavior)": "REQUIRED"
490
+ }
491
+ },
492
+ "dataFieldNames": {
493
+ "rule": "repeated",
494
+ "type": "string",
495
+ "id": 2,
496
+ "options": {
497
+ "(google.api.field_behavior)": "REQUIRED"
498
+ }
499
+ },
500
+ "outputFields": {
501
+ "type": "OutputFields",
502
+ "id": 3,
503
+ "options": {
504
+ "(google.api.field_behavior)": "OPTIONAL"
505
+ }
506
+ },
507
+ "topK": {
508
+ "type": "int32",
509
+ "id": 4,
510
+ "options": {
511
+ "(google.api.field_behavior)": "OPTIONAL",
512
+ "proto3_optional": true
513
+ }
514
+ },
515
+ "filter": {
516
+ "type": "google.protobuf.Struct",
517
+ "id": 5,
518
+ "options": {
519
+ "(google.api.field_behavior)": "OPTIONAL"
520
+ }
521
+ }
522
+ }
523
+ },
524
+ "SearchDataObjectsRequest": {
525
+ "oneofs": {
526
+ "searchType": {
527
+ "oneof": [
528
+ "vectorSearch",
529
+ "semanticSearch",
530
+ "textSearch"
531
+ ]
532
+ }
533
+ },
534
+ "fields": {
535
+ "vectorSearch": {
536
+ "type": "VectorSearch",
537
+ "id": 2
538
+ },
539
+ "semanticSearch": {
540
+ "type": "SemanticSearch",
541
+ "id": 4
542
+ },
543
+ "textSearch": {
544
+ "type": "TextSearch",
545
+ "id": 7,
546
+ "options": {
547
+ "(google.api.field_behavior)": "OPTIONAL"
548
+ }
549
+ },
550
+ "parent": {
551
+ "type": "string",
552
+ "id": 1,
553
+ "options": {
554
+ "(google.api.field_behavior)": "REQUIRED",
555
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
556
+ }
557
+ },
558
+ "pageSize": {
559
+ "type": "int32",
560
+ "id": 5,
561
+ "options": {
562
+ "(google.api.field_behavior)": "OPTIONAL"
563
+ }
564
+ },
565
+ "pageToken": {
566
+ "type": "string",
567
+ "id": 6,
568
+ "options": {
569
+ "(google.api.field_behavior)": "OPTIONAL"
570
+ }
571
+ }
572
+ }
573
+ },
574
+ "SearchResult": {
575
+ "oneofs": {
576
+ "_distance": {
577
+ "oneof": [
578
+ "distance"
579
+ ]
580
+ }
581
+ },
582
+ "fields": {
583
+ "dataObject": {
584
+ "type": "DataObject",
585
+ "id": 1,
586
+ "options": {
587
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
588
+ }
589
+ },
590
+ "distance": {
591
+ "type": "double",
592
+ "id": 2,
593
+ "options": {
594
+ "(google.api.field_behavior)": "OUTPUT_ONLY",
595
+ "proto3_optional": true
596
+ }
597
+ }
598
+ }
599
+ },
600
+ "SearchDataObjectsResponse": {
601
+ "fields": {
602
+ "results": {
603
+ "rule": "repeated",
604
+ "type": "SearchResult",
605
+ "id": 1,
606
+ "options": {
607
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
608
+ }
609
+ },
610
+ "nextPageToken": {
611
+ "type": "string",
612
+ "id": 2,
613
+ "options": {
614
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
615
+ }
616
+ }
617
+ }
618
+ },
619
+ "AggregateDataObjectsRequest": {
620
+ "fields": {
621
+ "parent": {
622
+ "type": "string",
623
+ "id": 1,
624
+ "options": {
625
+ "(google.api.field_behavior)": "REQUIRED",
626
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
627
+ }
628
+ },
629
+ "filter": {
630
+ "type": "google.protobuf.Struct",
631
+ "id": 2,
632
+ "options": {
633
+ "(google.api.field_behavior)": "OPTIONAL"
634
+ }
635
+ },
636
+ "aggregate": {
637
+ "type": "AggregationMethod",
638
+ "id": 3,
639
+ "options": {
640
+ "(google.api.field_behavior)": "REQUIRED"
641
+ }
642
+ }
643
+ }
644
+ },
645
+ "AggregateDataObjectsResponse": {
646
+ "fields": {
647
+ "aggregateResults": {
648
+ "rule": "repeated",
649
+ "type": "google.protobuf.Struct",
650
+ "id": 1,
651
+ "options": {
652
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
653
+ }
654
+ }
655
+ }
656
+ },
657
+ "QueryDataObjectsRequest": {
658
+ "fields": {
659
+ "parent": {
660
+ "type": "string",
661
+ "id": 1,
662
+ "options": {
663
+ "(google.api.field_behavior)": "REQUIRED",
664
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
665
+ }
666
+ },
667
+ "filter": {
668
+ "type": "google.protobuf.Struct",
669
+ "id": 2,
670
+ "options": {
671
+ "(google.api.field_behavior)": "OPTIONAL"
672
+ }
673
+ },
674
+ "outputFields": {
675
+ "type": "OutputFields",
676
+ "id": 7,
677
+ "options": {
678
+ "(google.api.field_behavior)": "OPTIONAL"
679
+ }
680
+ },
681
+ "pageSize": {
682
+ "type": "int32",
683
+ "id": 5,
684
+ "options": {
685
+ "(google.api.field_behavior)": "OPTIONAL"
686
+ }
687
+ },
688
+ "pageToken": {
689
+ "type": "string",
690
+ "id": 6,
691
+ "options": {
692
+ "(google.api.field_behavior)": "OPTIONAL"
693
+ }
694
+ }
695
+ }
696
+ },
697
+ "QueryDataObjectsResponse": {
698
+ "fields": {
699
+ "dataObjects": {
700
+ "rule": "repeated",
701
+ "type": "DataObject",
702
+ "id": 4,
703
+ "options": {
704
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
705
+ }
706
+ },
707
+ "nextPageToken": {
708
+ "type": "string",
709
+ "id": 3,
710
+ "options": {
711
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
712
+ }
713
+ }
714
+ }
715
+ },
716
+ "BatchSearchDataObjectsRequest": {
717
+ "fields": {
718
+ "parent": {
719
+ "type": "string",
720
+ "id": 1,
721
+ "options": {
722
+ "(google.api.field_behavior)": "REQUIRED",
723
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
724
+ }
725
+ },
726
+ "searches": {
727
+ "rule": "repeated",
728
+ "type": "Search",
729
+ "id": 2,
730
+ "options": {
731
+ "(google.api.field_behavior)": "REQUIRED"
732
+ }
733
+ },
734
+ "combine": {
735
+ "type": "CombineResultsOptions",
736
+ "id": 3,
737
+ "options": {
738
+ "(google.api.field_behavior)": "OPTIONAL"
739
+ }
740
+ }
741
+ },
742
+ "nested": {
743
+ "CombineResultsOptions": {
744
+ "fields": {
745
+ "ranker": {
746
+ "type": "Ranker",
747
+ "id": 1,
748
+ "options": {
749
+ "(google.api.field_behavior)": "REQUIRED"
750
+ }
751
+ },
752
+ "outputFields": {
753
+ "type": "OutputFields",
754
+ "id": 2,
755
+ "options": {
756
+ "(google.api.field_behavior)": "OPTIONAL"
757
+ }
758
+ },
759
+ "topK": {
760
+ "type": "int32",
761
+ "id": 3,
762
+ "options": {
763
+ "(google.api.field_behavior)": "OPTIONAL"
764
+ }
765
+ }
766
+ }
767
+ }
768
+ }
769
+ },
770
+ "Ranker": {
771
+ "oneofs": {
772
+ "ranker": {
773
+ "oneof": [
774
+ "rrf",
775
+ "vertex"
776
+ ]
777
+ }
778
+ },
779
+ "fields": {
780
+ "rrf": {
781
+ "type": "ReciprocalRankFusion",
782
+ "id": 1
783
+ },
784
+ "vertex": {
785
+ "type": "VertexRanker",
786
+ "id": 2
787
+ }
788
+ }
789
+ },
790
+ "ReciprocalRankFusion": {
791
+ "fields": {
792
+ "weights": {
793
+ "rule": "repeated",
794
+ "type": "double",
795
+ "id": 1,
796
+ "options": {
797
+ "(google.api.field_behavior)": "REQUIRED"
798
+ }
799
+ }
800
+ }
801
+ },
802
+ "VertexRanker": {
803
+ "fields": {
804
+ "query": {
805
+ "type": "string",
806
+ "id": 1,
807
+ "options": {
808
+ "(google.api.field_behavior)": "REQUIRED"
809
+ }
810
+ },
811
+ "titleTemplate": {
812
+ "type": "string",
813
+ "id": 2,
814
+ "options": {
815
+ "(google.api.field_behavior)": "OPTIONAL"
816
+ }
817
+ },
818
+ "contentTemplate": {
819
+ "type": "string",
820
+ "id": 3,
821
+ "options": {
822
+ "(google.api.field_behavior)": "OPTIONAL"
823
+ }
824
+ },
825
+ "model": {
826
+ "type": "string",
827
+ "id": 4,
828
+ "options": {
829
+ "(google.api.field_behavior)": "REQUIRED"
830
+ }
831
+ }
832
+ }
833
+ },
834
+ "BatchSearchDataObjectsResponse": {
835
+ "fields": {
836
+ "results": {
837
+ "rule": "repeated",
838
+ "type": "SearchDataObjectsResponse",
839
+ "id": 1,
840
+ "options": {
841
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
842
+ }
843
+ }
844
+ }
845
+ },
846
+ "EmbeddingTaskType": {
847
+ "values": {
848
+ "EMBEDDING_TASK_TYPE_UNSPECIFIED": 0,
849
+ "RETRIEVAL_QUERY": 1,
850
+ "RETRIEVAL_DOCUMENT": 2,
851
+ "SEMANTIC_SIMILARITY": 3,
852
+ "CLASSIFICATION": 4,
853
+ "CLUSTERING": 5,
854
+ "QUESTION_ANSWERING": 6,
855
+ "FACT_VERIFICATION": 7,
856
+ "CODE_RETRIEVAL_QUERY": 8
857
+ }
858
+ },
859
+ "VertexEmbeddingConfig": {
860
+ "fields": {
861
+ "modelId": {
862
+ "type": "string",
863
+ "id": 1,
864
+ "options": {
865
+ "(google.api.field_behavior)": "REQUIRED"
866
+ }
867
+ },
868
+ "textTemplate": {
869
+ "type": "string",
870
+ "id": 2,
871
+ "options": {
872
+ "(google.api.field_behavior)": "REQUIRED"
873
+ }
874
+ },
875
+ "taskType": {
876
+ "type": "EmbeddingTaskType",
877
+ "id": 3,
878
+ "options": {
879
+ "(google.api.field_behavior)": "REQUIRED"
880
+ }
881
+ }
882
+ }
883
+ },
884
+ "DataObjectService": {
885
+ "options": {
886
+ "(google.api.default_host)": "vectorsearch.googleapis.com",
887
+ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
888
+ },
889
+ "methods": {
890
+ "CreateDataObject": {
891
+ "requestType": "CreateDataObjectRequest",
892
+ "responseType": "DataObject",
893
+ "options": {
894
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects",
895
+ "(google.api.http).body": "data_object",
896
+ "(google.api.method_signature)": "parent,data_object,data_object_id"
897
+ },
898
+ "parsedOptions": [
899
+ {
900
+ "(google.api.http)": {
901
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects",
902
+ "body": "data_object"
903
+ }
904
+ },
905
+ {
906
+ "(google.api.method_signature)": "parent,data_object,data_object_id"
907
+ }
908
+ ]
909
+ },
910
+ "BatchCreateDataObjects": {
911
+ "requestType": "BatchCreateDataObjectsRequest",
912
+ "responseType": "BatchCreateDataObjectsResponse",
913
+ "options": {
914
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchCreate",
915
+ "(google.api.http).body": "*"
916
+ },
917
+ "parsedOptions": [
918
+ {
919
+ "(google.api.http)": {
920
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchCreate",
921
+ "body": "*"
922
+ }
923
+ }
924
+ ]
925
+ },
926
+ "GetDataObject": {
927
+ "requestType": "GetDataObjectRequest",
928
+ "responseType": "DataObject",
929
+ "options": {
930
+ "(google.api.http).get": "/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}",
931
+ "(google.api.method_signature)": "name"
932
+ },
933
+ "parsedOptions": [
934
+ {
935
+ "(google.api.http)": {
936
+ "get": "/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}"
937
+ }
938
+ },
939
+ {
940
+ "(google.api.method_signature)": "name"
941
+ }
942
+ ]
943
+ },
944
+ "UpdateDataObject": {
945
+ "requestType": "UpdateDataObjectRequest",
946
+ "responseType": "DataObject",
947
+ "options": {
948
+ "(google.api.http).patch": "/v1/{data_object.name=projects/*/locations/*/collections/*/dataObjects/*}",
949
+ "(google.api.http).body": "data_object",
950
+ "(google.api.method_signature)": "data_object,update_mask"
951
+ },
952
+ "parsedOptions": [
953
+ {
954
+ "(google.api.http)": {
955
+ "patch": "/v1/{data_object.name=projects/*/locations/*/collections/*/dataObjects/*}",
956
+ "body": "data_object"
957
+ }
958
+ },
959
+ {
960
+ "(google.api.method_signature)": "data_object,update_mask"
961
+ }
962
+ ]
963
+ },
964
+ "BatchUpdateDataObjects": {
965
+ "requestType": "BatchUpdateDataObjectsRequest",
966
+ "responseType": "BatchUpdateDataObjectsResponse",
967
+ "options": {
968
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchUpdate",
969
+ "(google.api.http).body": "*",
970
+ "(google.api.method_signature)": "parent,requests"
971
+ },
972
+ "parsedOptions": [
973
+ {
974
+ "(google.api.http)": {
975
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchUpdate",
976
+ "body": "*"
977
+ }
978
+ },
979
+ {
980
+ "(google.api.method_signature)": "parent,requests"
981
+ }
982
+ ]
983
+ },
984
+ "DeleteDataObject": {
985
+ "requestType": "DeleteDataObjectRequest",
986
+ "responseType": "google.protobuf.Empty",
987
+ "options": {
988
+ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}",
989
+ "(google.api.method_signature)": "name"
990
+ },
991
+ "parsedOptions": [
992
+ {
993
+ "(google.api.http)": {
994
+ "delete": "/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}"
995
+ }
996
+ },
997
+ {
998
+ "(google.api.method_signature)": "name"
999
+ }
1000
+ ]
1001
+ },
1002
+ "BatchDeleteDataObjects": {
1003
+ "requestType": "BatchDeleteDataObjectsRequest",
1004
+ "responseType": "google.protobuf.Empty",
1005
+ "options": {
1006
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchDelete",
1007
+ "(google.api.http).body": "*",
1008
+ "(google.api.method_signature)": "parent,requests"
1009
+ },
1010
+ "parsedOptions": [
1011
+ {
1012
+ "(google.api.http)": {
1013
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchDelete",
1014
+ "body": "*"
1015
+ }
1016
+ },
1017
+ {
1018
+ "(google.api.method_signature)": "parent,requests"
1019
+ }
1020
+ ]
1021
+ }
1022
+ }
1023
+ },
1024
+ "CreateDataObjectRequest": {
1025
+ "fields": {
1026
+ "parent": {
1027
+ "type": "string",
1028
+ "id": 1,
1029
+ "options": {
1030
+ "(google.api.field_behavior)": "REQUIRED",
1031
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1032
+ }
1033
+ },
1034
+ "dataObjectId": {
1035
+ "type": "string",
1036
+ "id": 2,
1037
+ "options": {
1038
+ "(google.api.field_behavior)": "REQUIRED"
1039
+ }
1040
+ },
1041
+ "dataObject": {
1042
+ "type": "DataObject",
1043
+ "id": 3,
1044
+ "options": {
1045
+ "(google.api.field_behavior)": "REQUIRED"
1046
+ }
1047
+ }
1048
+ }
1049
+ },
1050
+ "BatchCreateDataObjectsRequest": {
1051
+ "fields": {
1052
+ "parent": {
1053
+ "type": "string",
1054
+ "id": 1,
1055
+ "options": {
1056
+ "(google.api.field_behavior)": "REQUIRED",
1057
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1058
+ }
1059
+ },
1060
+ "requests": {
1061
+ "rule": "repeated",
1062
+ "type": "CreateDataObjectRequest",
1063
+ "id": 2,
1064
+ "options": {
1065
+ "(google.api.field_behavior)": "REQUIRED"
1066
+ }
1067
+ }
1068
+ }
1069
+ },
1070
+ "BatchCreateDataObjectsResponse": {
1071
+ "fields": {
1072
+ "dataObjects": {
1073
+ "rule": "repeated",
1074
+ "type": "DataObject",
1075
+ "id": 1,
1076
+ "options": {
1077
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1078
+ }
1079
+ }
1080
+ }
1081
+ },
1082
+ "GetDataObjectRequest": {
1083
+ "fields": {
1084
+ "name": {
1085
+ "type": "string",
1086
+ "id": 1,
1087
+ "options": {
1088
+ "(google.api.field_behavior)": "REQUIRED",
1089
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/DataObject"
1090
+ }
1091
+ }
1092
+ }
1093
+ },
1094
+ "UpdateDataObjectRequest": {
1095
+ "fields": {
1096
+ "dataObject": {
1097
+ "type": "DataObject",
1098
+ "id": 1,
1099
+ "options": {
1100
+ "(google.api.field_behavior)": "REQUIRED"
1101
+ }
1102
+ },
1103
+ "updateMask": {
1104
+ "type": "google.protobuf.FieldMask",
1105
+ "id": 2,
1106
+ "options": {
1107
+ "(google.api.field_behavior)": "OPTIONAL"
1108
+ }
1109
+ }
1110
+ }
1111
+ },
1112
+ "BatchUpdateDataObjectsRequest": {
1113
+ "fields": {
1114
+ "parent": {
1115
+ "type": "string",
1116
+ "id": 1,
1117
+ "options": {
1118
+ "(google.api.field_behavior)": "REQUIRED",
1119
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1120
+ }
1121
+ },
1122
+ "requests": {
1123
+ "rule": "repeated",
1124
+ "type": "UpdateDataObjectRequest",
1125
+ "id": 2,
1126
+ "options": {
1127
+ "(google.api.field_behavior)": "REQUIRED"
1128
+ }
1129
+ }
1130
+ }
1131
+ },
1132
+ "BatchUpdateDataObjectsResponse": {
1133
+ "fields": {}
1134
+ },
1135
+ "DeleteDataObjectRequest": {
1136
+ "fields": {
1137
+ "name": {
1138
+ "type": "string",
1139
+ "id": 1,
1140
+ "options": {
1141
+ "(google.api.field_behavior)": "REQUIRED",
1142
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/DataObject"
1143
+ }
1144
+ },
1145
+ "etag": {
1146
+ "type": "string",
1147
+ "id": 2,
1148
+ "options": {
1149
+ "(google.api.field_behavior)": "OPTIONAL"
1150
+ }
1151
+ }
1152
+ }
1153
+ },
1154
+ "BatchDeleteDataObjectsRequest": {
1155
+ "fields": {
1156
+ "parent": {
1157
+ "type": "string",
1158
+ "id": 1,
1159
+ "options": {
1160
+ "(google.api.field_behavior)": "REQUIRED",
1161
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1162
+ }
1163
+ },
1164
+ "requests": {
1165
+ "rule": "repeated",
1166
+ "type": "DeleteDataObjectRequest",
1167
+ "id": 3,
1168
+ "options": {
1169
+ "(google.api.field_behavior)": "REQUIRED"
1170
+ }
1171
+ }
1172
+ }
1173
+ },
1174
+ "VectorSearchService": {
1175
+ "options": {
1176
+ "(google.api.default_host)": "vectorsearch.googleapis.com",
1177
+ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
1178
+ },
1179
+ "methods": {
1180
+ "ListCollections": {
1181
+ "requestType": "ListCollectionsRequest",
1182
+ "responseType": "ListCollectionsResponse",
1183
+ "options": {
1184
+ "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/collections",
1185
+ "(google.api.method_signature)": "parent"
1186
+ },
1187
+ "parsedOptions": [
1188
+ {
1189
+ "(google.api.http)": {
1190
+ "get": "/v1/{parent=projects/*/locations/*}/collections"
1191
+ }
1192
+ },
1193
+ {
1194
+ "(google.api.method_signature)": "parent"
1195
+ }
1196
+ ]
1197
+ },
1198
+ "GetCollection": {
1199
+ "requestType": "GetCollectionRequest",
1200
+ "responseType": "Collection",
1201
+ "options": {
1202
+ "(google.api.http).get": "/v1/{name=projects/*/locations/*/collections/*}",
1203
+ "(google.api.method_signature)": "name"
1204
+ },
1205
+ "parsedOptions": [
1206
+ {
1207
+ "(google.api.http)": {
1208
+ "get": "/v1/{name=projects/*/locations/*/collections/*}"
1209
+ }
1210
+ },
1211
+ {
1212
+ "(google.api.method_signature)": "name"
1213
+ }
1214
+ ]
1215
+ },
1216
+ "CreateCollection": {
1217
+ "requestType": "CreateCollectionRequest",
1218
+ "responseType": "google.longrunning.Operation",
1219
+ "options": {
1220
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/collections",
1221
+ "(google.api.http).body": "collection",
1222
+ "(google.api.method_signature)": "parent,collection,collection_id",
1223
+ "(google.longrunning.operation_info).response_type": "Collection",
1224
+ "(google.longrunning.operation_info).metadata_type": "OperationMetadata"
1225
+ },
1226
+ "parsedOptions": [
1227
+ {
1228
+ "(google.api.http)": {
1229
+ "post": "/v1/{parent=projects/*/locations/*}/collections",
1230
+ "body": "collection"
1231
+ }
1232
+ },
1233
+ {
1234
+ "(google.api.method_signature)": "parent,collection,collection_id"
1235
+ },
1236
+ {
1237
+ "(google.longrunning.operation_info)": {
1238
+ "response_type": "Collection",
1239
+ "metadata_type": "OperationMetadata"
1240
+ }
1241
+ }
1242
+ ]
1243
+ },
1244
+ "UpdateCollection": {
1245
+ "requestType": "UpdateCollectionRequest",
1246
+ "responseType": "google.longrunning.Operation",
1247
+ "options": {
1248
+ "(google.api.http).patch": "/v1/{collection.name=projects/*/locations/*/collections/*}",
1249
+ "(google.api.http).body": "collection",
1250
+ "(google.api.method_signature)": "collection,update_mask",
1251
+ "(google.longrunning.operation_info).response_type": "Collection",
1252
+ "(google.longrunning.operation_info).metadata_type": "OperationMetadata"
1253
+ },
1254
+ "parsedOptions": [
1255
+ {
1256
+ "(google.api.http)": {
1257
+ "patch": "/v1/{collection.name=projects/*/locations/*/collections/*}",
1258
+ "body": "collection"
1259
+ }
1260
+ },
1261
+ {
1262
+ "(google.api.method_signature)": "collection,update_mask"
1263
+ },
1264
+ {
1265
+ "(google.longrunning.operation_info)": {
1266
+ "response_type": "Collection",
1267
+ "metadata_type": "OperationMetadata"
1268
+ }
1269
+ }
1270
+ ]
1271
+ },
1272
+ "DeleteCollection": {
1273
+ "requestType": "DeleteCollectionRequest",
1274
+ "responseType": "google.longrunning.Operation",
1275
+ "options": {
1276
+ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/collections/*}",
1277
+ "(google.api.method_signature)": "name",
1278
+ "(google.longrunning.operation_info).response_type": "google.protobuf.Empty",
1279
+ "(google.longrunning.operation_info).metadata_type": "OperationMetadata"
1280
+ },
1281
+ "parsedOptions": [
1282
+ {
1283
+ "(google.api.http)": {
1284
+ "delete": "/v1/{name=projects/*/locations/*/collections/*}"
1285
+ }
1286
+ },
1287
+ {
1288
+ "(google.api.method_signature)": "name"
1289
+ },
1290
+ {
1291
+ "(google.longrunning.operation_info)": {
1292
+ "response_type": "google.protobuf.Empty",
1293
+ "metadata_type": "OperationMetadata"
1294
+ }
1295
+ }
1296
+ ]
1297
+ },
1298
+ "ListIndexes": {
1299
+ "requestType": "ListIndexesRequest",
1300
+ "responseType": "ListIndexesResponse",
1301
+ "options": {
1302
+ "(google.api.http).get": "/v1/{parent=projects/*/locations/*/collections/*}/indexes",
1303
+ "(google.api.method_signature)": "parent"
1304
+ },
1305
+ "parsedOptions": [
1306
+ {
1307
+ "(google.api.http)": {
1308
+ "get": "/v1/{parent=projects/*/locations/*/collections/*}/indexes"
1309
+ }
1310
+ },
1311
+ {
1312
+ "(google.api.method_signature)": "parent"
1313
+ }
1314
+ ]
1315
+ },
1316
+ "GetIndex": {
1317
+ "requestType": "GetIndexRequest",
1318
+ "responseType": "Index",
1319
+ "options": {
1320
+ "(google.api.http).get": "/v1/{name=projects/*/locations/*/collections/*/indexes/*}",
1321
+ "(google.api.method_signature)": "name"
1322
+ },
1323
+ "parsedOptions": [
1324
+ {
1325
+ "(google.api.http)": {
1326
+ "get": "/v1/{name=projects/*/locations/*/collections/*/indexes/*}"
1327
+ }
1328
+ },
1329
+ {
1330
+ "(google.api.method_signature)": "name"
1331
+ }
1332
+ ]
1333
+ },
1334
+ "CreateIndex": {
1335
+ "requestType": "CreateIndexRequest",
1336
+ "responseType": "google.longrunning.Operation",
1337
+ "options": {
1338
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/collections/*}/indexes",
1339
+ "(google.api.http).body": "index",
1340
+ "(google.api.method_signature)": "parent,index,index_id",
1341
+ "(google.longrunning.operation_info).response_type": "Index",
1342
+ "(google.longrunning.operation_info).metadata_type": "OperationMetadata"
1343
+ },
1344
+ "parsedOptions": [
1345
+ {
1346
+ "(google.api.http)": {
1347
+ "post": "/v1/{parent=projects/*/locations/*/collections/*}/indexes",
1348
+ "body": "index"
1349
+ }
1350
+ },
1351
+ {
1352
+ "(google.api.method_signature)": "parent,index,index_id"
1353
+ },
1354
+ {
1355
+ "(google.longrunning.operation_info)": {
1356
+ "response_type": "Index",
1357
+ "metadata_type": "OperationMetadata"
1358
+ }
1359
+ }
1360
+ ]
1361
+ },
1362
+ "DeleteIndex": {
1363
+ "requestType": "DeleteIndexRequest",
1364
+ "responseType": "google.longrunning.Operation",
1365
+ "options": {
1366
+ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/collections/*/indexes/*}",
1367
+ "(google.api.method_signature)": "name",
1368
+ "(google.longrunning.operation_info).response_type": "google.protobuf.Empty",
1369
+ "(google.longrunning.operation_info).metadata_type": "OperationMetadata"
1370
+ },
1371
+ "parsedOptions": [
1372
+ {
1373
+ "(google.api.http)": {
1374
+ "delete": "/v1/{name=projects/*/locations/*/collections/*/indexes/*}"
1375
+ }
1376
+ },
1377
+ {
1378
+ "(google.api.method_signature)": "name"
1379
+ },
1380
+ {
1381
+ "(google.longrunning.operation_info)": {
1382
+ "response_type": "google.protobuf.Empty",
1383
+ "metadata_type": "OperationMetadata"
1384
+ }
1385
+ }
1386
+ ]
1387
+ },
1388
+ "ImportDataObjects": {
1389
+ "requestType": "ImportDataObjectsRequest",
1390
+ "responseType": "google.longrunning.Operation",
1391
+ "options": {
1392
+ "(google.api.http).post": "/v1/{name=projects/*/locations/*/collections/*}:importDataObjects",
1393
+ "(google.api.http).body": "*",
1394
+ "(google.longrunning.operation_info).response_type": "ImportDataObjectsResponse",
1395
+ "(google.longrunning.operation_info).metadata_type": "ImportDataObjectsMetadata"
1396
+ },
1397
+ "parsedOptions": [
1398
+ {
1399
+ "(google.api.http)": {
1400
+ "post": "/v1/{name=projects/*/locations/*/collections/*}:importDataObjects",
1401
+ "body": "*"
1402
+ }
1403
+ },
1404
+ {
1405
+ "(google.longrunning.operation_info)": {
1406
+ "response_type": "ImportDataObjectsResponse",
1407
+ "metadata_type": "ImportDataObjectsMetadata"
1408
+ }
1409
+ }
1410
+ ]
1411
+ }
1412
+ }
1413
+ },
1414
+ "Collection": {
1415
+ "options": {
1416
+ "(google.api.resource).type": "vectorsearch.googleapis.com/Collection",
1417
+ "(google.api.resource).pattern": "projects/{project}/locations/{location}/collections/{collection}",
1418
+ "(google.api.resource).plural": "collections",
1419
+ "(google.api.resource).singular": "collection"
1420
+ },
1421
+ "fields": {
1422
+ "name": {
1423
+ "type": "string",
1424
+ "id": 1,
1425
+ "options": {
1426
+ "(google.api.field_behavior)": "IDENTIFIER"
1427
+ }
1428
+ },
1429
+ "displayName": {
1430
+ "type": "string",
1431
+ "id": 8,
1432
+ "options": {
1433
+ "(google.api.field_behavior)": "OPTIONAL"
1434
+ }
1435
+ },
1436
+ "description": {
1437
+ "type": "string",
1438
+ "id": 9,
1439
+ "options": {
1440
+ "(google.api.field_behavior)": "OPTIONAL"
1441
+ }
1442
+ },
1443
+ "createTime": {
1444
+ "type": "google.protobuf.Timestamp",
1445
+ "id": 2,
1446
+ "options": {
1447
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1448
+ }
1449
+ },
1450
+ "updateTime": {
1451
+ "type": "google.protobuf.Timestamp",
1452
+ "id": 3,
1453
+ "options": {
1454
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1455
+ }
1456
+ },
1457
+ "labels": {
1458
+ "keyType": "string",
1459
+ "type": "string",
1460
+ "id": 4,
1461
+ "options": {
1462
+ "(google.api.field_behavior)": "OPTIONAL"
1463
+ }
1464
+ },
1465
+ "vectorSchema": {
1466
+ "keyType": "string",
1467
+ "type": "VectorField",
1468
+ "id": 7,
1469
+ "options": {
1470
+ "(google.api.field_behavior)": "OPTIONAL"
1471
+ }
1472
+ },
1473
+ "dataSchema": {
1474
+ "type": "google.protobuf.Struct",
1475
+ "id": 10,
1476
+ "options": {
1477
+ "(google.api.field_behavior)": "OPTIONAL"
1478
+ }
1479
+ }
1480
+ }
1481
+ },
1482
+ "VectorField": {
1483
+ "oneofs": {
1484
+ "vectorTypeConfig": {
1485
+ "oneof": [
1486
+ "denseVector",
1487
+ "sparseVector"
1488
+ ]
1489
+ }
1490
+ },
1491
+ "fields": {
1492
+ "denseVector": {
1493
+ "type": "DenseVectorField",
1494
+ "id": 3
1495
+ },
1496
+ "sparseVector": {
1497
+ "type": "SparseVectorField",
1498
+ "id": 4
1499
+ }
1500
+ }
1501
+ },
1502
+ "DenseVectorField": {
1503
+ "fields": {
1504
+ "dimensions": {
1505
+ "type": "int32",
1506
+ "id": 1
1507
+ },
1508
+ "vertexEmbeddingConfig": {
1509
+ "type": "VertexEmbeddingConfig",
1510
+ "id": 3,
1511
+ "options": {
1512
+ "(google.api.field_behavior)": "OPTIONAL"
1513
+ }
1514
+ }
1515
+ }
1516
+ },
1517
+ "SparseVectorField": {
1518
+ "fields": {}
1519
+ },
1520
+ "ListCollectionsRequest": {
1521
+ "fields": {
1522
+ "parent": {
1523
+ "type": "string",
1524
+ "id": 1,
1525
+ "options": {
1526
+ "(google.api.field_behavior)": "REQUIRED",
1527
+ "(google.api.resource_reference).child_type": "vectorsearch.googleapis.com/Collection"
1528
+ }
1529
+ },
1530
+ "pageSize": {
1531
+ "type": "int32",
1532
+ "id": 2,
1533
+ "options": {
1534
+ "(google.api.field_behavior)": "OPTIONAL"
1535
+ }
1536
+ },
1537
+ "pageToken": {
1538
+ "type": "string",
1539
+ "id": 3,
1540
+ "options": {
1541
+ "(google.api.field_behavior)": "OPTIONAL"
1542
+ }
1543
+ },
1544
+ "filter": {
1545
+ "type": "string",
1546
+ "id": 4,
1547
+ "options": {
1548
+ "(google.api.field_behavior)": "OPTIONAL"
1549
+ }
1550
+ },
1551
+ "orderBy": {
1552
+ "type": "string",
1553
+ "id": 5,
1554
+ "options": {
1555
+ "(google.api.field_behavior)": "OPTIONAL"
1556
+ }
1557
+ }
1558
+ }
1559
+ },
1560
+ "ListCollectionsResponse": {
1561
+ "fields": {
1562
+ "collections": {
1563
+ "rule": "repeated",
1564
+ "type": "Collection",
1565
+ "id": 1
1566
+ },
1567
+ "nextPageToken": {
1568
+ "type": "string",
1569
+ "id": 2
1570
+ },
1571
+ "unreachable": {
1572
+ "rule": "repeated",
1573
+ "type": "string",
1574
+ "id": 3,
1575
+ "options": {
1576
+ "(google.api.field_behavior)": "UNORDERED_LIST"
1577
+ }
1578
+ }
1579
+ }
1580
+ },
1581
+ "GetCollectionRequest": {
1582
+ "fields": {
1583
+ "name": {
1584
+ "type": "string",
1585
+ "id": 1,
1586
+ "options": {
1587
+ "(google.api.field_behavior)": "REQUIRED",
1588
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1589
+ }
1590
+ }
1591
+ }
1592
+ },
1593
+ "CreateCollectionRequest": {
1594
+ "fields": {
1595
+ "parent": {
1596
+ "type": "string",
1597
+ "id": 1,
1598
+ "options": {
1599
+ "(google.api.field_behavior)": "REQUIRED",
1600
+ "(google.api.resource_reference).child_type": "vectorsearch.googleapis.com/Collection"
1601
+ }
1602
+ },
1603
+ "collectionId": {
1604
+ "type": "string",
1605
+ "id": 2,
1606
+ "options": {
1607
+ "(google.api.field_behavior)": "REQUIRED"
1608
+ }
1609
+ },
1610
+ "collection": {
1611
+ "type": "Collection",
1612
+ "id": 3,
1613
+ "options": {
1614
+ "(google.api.field_behavior)": "REQUIRED"
1615
+ }
1616
+ },
1617
+ "requestId": {
1618
+ "type": "string",
1619
+ "id": 4,
1620
+ "options": {
1621
+ "(google.api.field_info).format": "UUID4",
1622
+ "(google.api.field_behavior)": "OPTIONAL"
1623
+ }
1624
+ }
1625
+ }
1626
+ },
1627
+ "UpdateCollectionRequest": {
1628
+ "fields": {
1629
+ "updateMask": {
1630
+ "type": "google.protobuf.FieldMask",
1631
+ "id": 1,
1632
+ "options": {
1633
+ "(google.api.field_behavior)": "OPTIONAL"
1634
+ }
1635
+ },
1636
+ "collection": {
1637
+ "type": "Collection",
1638
+ "id": 2,
1639
+ "options": {
1640
+ "(google.api.field_behavior)": "REQUIRED"
1641
+ }
1642
+ },
1643
+ "requestId": {
1644
+ "type": "string",
1645
+ "id": 3,
1646
+ "options": {
1647
+ "(google.api.field_info).format": "UUID4",
1648
+ "(google.api.field_behavior)": "OPTIONAL"
1649
+ }
1650
+ }
1651
+ }
1652
+ },
1653
+ "DeleteCollectionRequest": {
1654
+ "fields": {
1655
+ "name": {
1656
+ "type": "string",
1657
+ "id": 1,
1658
+ "options": {
1659
+ "(google.api.field_behavior)": "REQUIRED",
1660
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1661
+ }
1662
+ },
1663
+ "requestId": {
1664
+ "type": "string",
1665
+ "id": 2,
1666
+ "options": {
1667
+ "(google.api.field_info).format": "UUID4",
1668
+ "(google.api.field_behavior)": "OPTIONAL"
1669
+ }
1670
+ }
1671
+ }
1672
+ },
1673
+ "Index": {
1674
+ "options": {
1675
+ "(google.api.resource).type": "vectorsearch.googleapis.com/Index",
1676
+ "(google.api.resource).pattern": "projects/{project}/locations/{location}/collections/{collection}/indexes/{index}",
1677
+ "(google.api.resource).plural": "indexes",
1678
+ "(google.api.resource).singular": "index"
1679
+ },
1680
+ "oneofs": {
1681
+ "infraType": {
1682
+ "oneof": [
1683
+ "dedicatedInfrastructure"
1684
+ ]
1685
+ },
1686
+ "indexType": {
1687
+ "oneof": [
1688
+ "denseScann"
1689
+ ]
1690
+ }
1691
+ },
1692
+ "fields": {
1693
+ "dedicatedInfrastructure": {
1694
+ "type": "DedicatedInfrastructure",
1695
+ "id": 11,
1696
+ "options": {
1697
+ "(google.api.field_behavior)": "OPTIONAL"
1698
+ }
1699
+ },
1700
+ "denseScann": {
1701
+ "type": "DenseScannIndex",
1702
+ "id": 12,
1703
+ "options": {
1704
+ "(google.api.field_behavior)": "OPTIONAL"
1705
+ }
1706
+ },
1707
+ "name": {
1708
+ "type": "string",
1709
+ "id": 1,
1710
+ "options": {
1711
+ "(google.api.field_behavior)": "IDENTIFIER"
1712
+ }
1713
+ },
1714
+ "displayName": {
1715
+ "type": "string",
1716
+ "id": 8,
1717
+ "options": {
1718
+ "(google.api.field_behavior)": "OPTIONAL"
1719
+ }
1720
+ },
1721
+ "description": {
1722
+ "type": "string",
1723
+ "id": 9,
1724
+ "options": {
1725
+ "(google.api.field_behavior)": "OPTIONAL"
1726
+ }
1727
+ },
1728
+ "labels": {
1729
+ "keyType": "string",
1730
+ "type": "string",
1731
+ "id": 10,
1732
+ "options": {
1733
+ "(google.api.field_behavior)": "OPTIONAL"
1734
+ }
1735
+ },
1736
+ "createTime": {
1737
+ "type": "google.protobuf.Timestamp",
1738
+ "id": 2,
1739
+ "options": {
1740
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1741
+ }
1742
+ },
1743
+ "updateTime": {
1744
+ "type": "google.protobuf.Timestamp",
1745
+ "id": 3,
1746
+ "options": {
1747
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1748
+ }
1749
+ },
1750
+ "distanceMetric": {
1751
+ "type": "DistanceMetric",
1752
+ "id": 4,
1753
+ "options": {
1754
+ "(google.api.field_behavior)": "OPTIONAL"
1755
+ }
1756
+ },
1757
+ "indexField": {
1758
+ "type": "string",
1759
+ "id": 5,
1760
+ "options": {
1761
+ "(google.api.field_behavior)": "REQUIRED"
1762
+ }
1763
+ },
1764
+ "filterFields": {
1765
+ "rule": "repeated",
1766
+ "type": "string",
1767
+ "id": 6,
1768
+ "options": {
1769
+ "(google.api.field_behavior)": "OPTIONAL"
1770
+ }
1771
+ },
1772
+ "storeFields": {
1773
+ "rule": "repeated",
1774
+ "type": "string",
1775
+ "id": 7,
1776
+ "options": {
1777
+ "(google.api.field_behavior)": "OPTIONAL"
1778
+ }
1779
+ }
1780
+ }
1781
+ },
1782
+ "CreateIndexRequest": {
1783
+ "fields": {
1784
+ "parent": {
1785
+ "type": "string",
1786
+ "id": 1,
1787
+ "options": {
1788
+ "(google.api.field_behavior)": "REQUIRED",
1789
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1790
+ }
1791
+ },
1792
+ "indexId": {
1793
+ "type": "string",
1794
+ "id": 2,
1795
+ "options": {
1796
+ "(google.api.field_behavior)": "REQUIRED"
1797
+ }
1798
+ },
1799
+ "index": {
1800
+ "type": "Index",
1801
+ "id": 3,
1802
+ "options": {
1803
+ "(google.api.field_behavior)": "REQUIRED"
1804
+ }
1805
+ },
1806
+ "requestId": {
1807
+ "type": "string",
1808
+ "id": 4,
1809
+ "options": {
1810
+ "(google.api.field_info).format": "UUID4",
1811
+ "(google.api.field_behavior)": "OPTIONAL"
1812
+ }
1813
+ }
1814
+ }
1815
+ },
1816
+ "DeleteIndexRequest": {
1817
+ "fields": {
1818
+ "name": {
1819
+ "type": "string",
1820
+ "id": 1,
1821
+ "options": {
1822
+ "(google.api.field_behavior)": "REQUIRED",
1823
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Index"
1824
+ }
1825
+ },
1826
+ "requestId": {
1827
+ "type": "string",
1828
+ "id": 2,
1829
+ "options": {
1830
+ "(google.api.field_info).format": "UUID4",
1831
+ "(google.api.field_behavior)": "OPTIONAL"
1832
+ }
1833
+ }
1834
+ }
1835
+ },
1836
+ "ListIndexesRequest": {
1837
+ "fields": {
1838
+ "parent": {
1839
+ "type": "string",
1840
+ "id": 1,
1841
+ "options": {
1842
+ "(google.api.field_behavior)": "REQUIRED",
1843
+ "(google.api.resource_reference).child_type": "vectorsearch.googleapis.com/Index"
1844
+ }
1845
+ },
1846
+ "pageSize": {
1847
+ "type": "int32",
1848
+ "id": 2,
1849
+ "options": {
1850
+ "(google.api.field_behavior)": "OPTIONAL"
1851
+ }
1852
+ },
1853
+ "pageToken": {
1854
+ "type": "string",
1855
+ "id": 3,
1856
+ "options": {
1857
+ "(google.api.field_behavior)": "OPTIONAL"
1858
+ }
1859
+ },
1860
+ "filter": {
1861
+ "type": "string",
1862
+ "id": 4,
1863
+ "options": {
1864
+ "(google.api.field_behavior)": "OPTIONAL"
1865
+ }
1866
+ },
1867
+ "orderBy": {
1868
+ "type": "string",
1869
+ "id": 5,
1870
+ "options": {
1871
+ "(google.api.field_behavior)": "OPTIONAL"
1872
+ }
1873
+ }
1874
+ }
1875
+ },
1876
+ "ListIndexesResponse": {
1877
+ "fields": {
1878
+ "indexes": {
1879
+ "rule": "repeated",
1880
+ "type": "Index",
1881
+ "id": 1
1882
+ },
1883
+ "nextPageToken": {
1884
+ "type": "string",
1885
+ "id": 2
1886
+ }
1887
+ }
1888
+ },
1889
+ "GetIndexRequest": {
1890
+ "fields": {
1891
+ "name": {
1892
+ "type": "string",
1893
+ "id": 1,
1894
+ "options": {
1895
+ "(google.api.field_behavior)": "REQUIRED",
1896
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Index"
1897
+ }
1898
+ }
1899
+ }
1900
+ },
1901
+ "OperationMetadata": {
1902
+ "fields": {
1903
+ "createTime": {
1904
+ "type": "google.protobuf.Timestamp",
1905
+ "id": 1,
1906
+ "options": {
1907
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1908
+ }
1909
+ },
1910
+ "endTime": {
1911
+ "type": "google.protobuf.Timestamp",
1912
+ "id": 2,
1913
+ "options": {
1914
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1915
+ }
1916
+ },
1917
+ "target": {
1918
+ "type": "string",
1919
+ "id": 3,
1920
+ "options": {
1921
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1922
+ }
1923
+ },
1924
+ "verb": {
1925
+ "type": "string",
1926
+ "id": 4,
1927
+ "options": {
1928
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1929
+ }
1930
+ },
1931
+ "statusMessage": {
1932
+ "type": "string",
1933
+ "id": 5,
1934
+ "options": {
1935
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1936
+ }
1937
+ },
1938
+ "requestedCancellation": {
1939
+ "type": "bool",
1940
+ "id": 6,
1941
+ "options": {
1942
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1943
+ }
1944
+ },
1945
+ "apiVersion": {
1946
+ "type": "string",
1947
+ "id": 7,
1948
+ "options": {
1949
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
1950
+ }
1951
+ }
1952
+ }
1953
+ },
1954
+ "ImportDataObjectsRequest": {
1955
+ "oneofs": {
1956
+ "config": {
1957
+ "oneof": [
1958
+ "gcsImport"
1959
+ ]
1960
+ }
1961
+ },
1962
+ "fields": {
1963
+ "gcsImport": {
1964
+ "type": "GcsImportConfig",
1965
+ "id": 2
1966
+ },
1967
+ "name": {
1968
+ "type": "string",
1969
+ "id": 1,
1970
+ "options": {
1971
+ "(google.api.field_behavior)": "REQUIRED",
1972
+ "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Collection"
1973
+ }
1974
+ }
1975
+ },
1976
+ "nested": {
1977
+ "GcsImportConfig": {
1978
+ "fields": {
1979
+ "contentsUri": {
1980
+ "type": "string",
1981
+ "id": 1,
1982
+ "options": {
1983
+ "(google.api.field_behavior)": "REQUIRED"
1984
+ }
1985
+ },
1986
+ "errorUri": {
1987
+ "type": "string",
1988
+ "id": 2,
1989
+ "options": {
1990
+ "(google.api.field_behavior)": "REQUIRED"
1991
+ }
1992
+ },
1993
+ "outputUri": {
1994
+ "type": "string",
1995
+ "id": 3,
1996
+ "options": {
1997
+ "(google.api.field_behavior)": "OPTIONAL"
1998
+ }
1999
+ }
2000
+ }
2001
+ }
2002
+ }
2003
+ },
2004
+ "ImportDataObjectsMetadata": {
2005
+ "fields": {
2006
+ "createTime": {
2007
+ "type": "google.protobuf.Timestamp",
2008
+ "id": 1,
2009
+ "options": {
2010
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2011
+ }
2012
+ },
2013
+ "updateTime": {
2014
+ "type": "google.protobuf.Timestamp",
2015
+ "id": 2,
2016
+ "options": {
2017
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2018
+ }
2019
+ },
2020
+ "successCount": {
2021
+ "type": "int64",
2022
+ "id": 3,
2023
+ "options": {
2024
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2025
+ }
2026
+ },
2027
+ "failureCount": {
2028
+ "type": "int64",
2029
+ "id": 4,
2030
+ "options": {
2031
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
2032
+ }
2033
+ }
2034
+ }
2035
+ },
2036
+ "ImportDataObjectsResponse": {
2037
+ "fields": {
2038
+ "status": {
2039
+ "type": "google.rpc.Status",
2040
+ "id": 1
2041
+ }
2042
+ }
2043
+ },
2044
+ "DedicatedInfrastructure": {
2045
+ "oneofs": {
2046
+ "_mode": {
2047
+ "oneof": [
2048
+ "mode"
2049
+ ]
2050
+ }
2051
+ },
2052
+ "fields": {
2053
+ "mode": {
2054
+ "type": "Mode",
2055
+ "id": 1,
2056
+ "options": {
2057
+ "(google.api.field_behavior)": "OPTIONAL",
2058
+ "proto3_optional": true
2059
+ }
2060
+ },
2061
+ "autoscalingSpec": {
2062
+ "type": "AutoscalingSpec",
2063
+ "id": 2,
2064
+ "options": {
2065
+ "(google.api.field_behavior)": "OPTIONAL"
2066
+ }
2067
+ }
2068
+ },
2069
+ "nested": {
2070
+ "AutoscalingSpec": {
2071
+ "fields": {
2072
+ "minReplicaCount": {
2073
+ "type": "int32",
2074
+ "id": 1,
2075
+ "options": {
2076
+ "(google.api.field_behavior)": "OPTIONAL"
2077
+ }
2078
+ },
2079
+ "maxReplicaCount": {
2080
+ "type": "int32",
2081
+ "id": 2,
2082
+ "options": {
2083
+ "(google.api.field_behavior)": "OPTIONAL"
2084
+ }
2085
+ }
2086
+ }
2087
+ },
2088
+ "Mode": {
2089
+ "values": {
2090
+ "MODE_UNSPECIFIED": 0,
2091
+ "STORAGE_OPTIMIZED": 1,
2092
+ "PERFORMANCE_OPTIMIZED": 2
2093
+ }
2094
+ }
2095
+ }
2096
+ },
2097
+ "DenseScannIndex": {
2098
+ "fields": {
2099
+ "featureNormType": {
2100
+ "type": "FeatureNormType",
2101
+ "id": 2,
2102
+ "options": {
2103
+ "(google.api.field_behavior)": "OPTIONAL"
2104
+ }
2105
+ }
2106
+ },
2107
+ "nested": {
2108
+ "FeatureNormType": {
2109
+ "values": {
2110
+ "FEATURE_NORM_TYPE_UNSPECIFIED": 0,
2111
+ "NONE": 1,
2112
+ "UNIT_L2_NORM": 2
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ }
2118
+ },
9
2119
  "v1beta": {
10
2120
  "options": {
11
2121
  "go_package": "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb",