Skip to content

Commit 19890a0

Browse files
Google APIscopybara-github
authored andcommitted
feat: Mark Vector Search v1 API as GA
feat: Add support for ExportDataObjects PiperOrigin-RevId: 882214457
1 parent e8e4e1e commit 19890a0

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

google/cloud/vectorsearch/v1/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ load(
348348

349349
csharp_proto_library(
350350
name = "vectorsearch_csharp_proto",
351-
extra_opts = [],
352351
deps = [":vectorsearch_proto"],
353352
)
354353

google/cloud/vectorsearch/v1/vectorsearch_service.proto

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,19 @@ service VectorSearchService {
159159
metadata_type: "ImportDataObjectsMetadata"
160160
};
161161
}
162+
163+
// Initiates a Long-Running Operation to export DataObjects from a Collection.
164+
rpc ExportDataObjects(ExportDataObjectsRequest)
165+
returns (google.longrunning.Operation) {
166+
option (google.api.http) = {
167+
post: "/v1/{name=projects/*/locations/*/collections/*}:exportDataObjects"
168+
body: "*"
169+
};
170+
option (google.longrunning.operation_info) = {
171+
response_type: "ExportDataObjectsResponse"
172+
metadata_type: "ExportDataObjectsMetadata"
173+
};
174+
}
162175
}
163176

164177
// Message describing Collection object
@@ -654,6 +667,59 @@ message ImportDataObjectsResponse {
654667
google.rpc.Status status = 1;
655668
}
656669

670+
// Request message for
671+
// [VectorSearchService.ExportDataObjects][google.cloud.vectorsearch.v1.VectorSearchService.ExportDataObjects].
672+
message ExportDataObjectsRequest {
673+
// Google Cloud Storage configuration for the export.
674+
message GcsExportDestination {
675+
// Options for the format of the exported Data Objects.
676+
enum Format {
677+
// Unspecified format.
678+
FORMAT_UNSPECIFIED = 0;
679+
680+
// Exports Data Objects in `JSONL` format.
681+
JSONL = 2;
682+
}
683+
684+
// Required. URI prefix of the Cloud Storage where to export Data Objects.
685+
// The bucket is required to be in the same region as the collection.
686+
string export_uri = 1 [(google.api.field_behavior) = REQUIRED];
687+
688+
// Required. The format of the exported Data Objects.
689+
Format format = 2 [(google.api.field_behavior) = REQUIRED];
690+
}
691+
692+
// The configuration for the export data.
693+
oneof destination {
694+
// The Cloud Storage location where user wants to export Data Objects.
695+
GcsExportDestination gcs_destination = 2;
696+
}
697+
698+
// Required. The resource name of the Collection from which we want to export
699+
// Data Objects. Format:
700+
// `projects/{project}/locations/{location}/collections/{collection}`.
701+
string name = 1 [
702+
(google.api.field_behavior) = REQUIRED,
703+
(google.api.resource_reference) = {
704+
type: "vectorsearch.googleapis.com/Collection"
705+
}
706+
];
707+
}
708+
709+
// Metadata for the ExportDataObjects LRO.
710+
message ExportDataObjectsMetadata {
711+
// Output only. The time the operation was created.
712+
google.protobuf.Timestamp create_time = 1
713+
[(google.api.field_behavior) = OUTPUT_ONLY];
714+
715+
// Output only. The time the operation finished.
716+
google.protobuf.Timestamp finish_time = 2
717+
[(google.api.field_behavior) = OUTPUT_ONLY];
718+
}
719+
720+
// Response for the ExportDataObjects LRO.
721+
message ExportDataObjectsResponse {}
722+
657723
// Represents dedicated infrastructure for the index.
658724
message DedicatedInfrastructure {
659725
// Specification for autoscaling.

google/cloud/vectorsearch/v1/vectorsearch_v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ publishing:
9191
organization: CLOUD
9292
library_settings:
9393
- version: google.cloud.vectorsearch.v1
94-
launch_stage: BETA
94+
launch_stage: GA
9595
java_settings:
9696
common:
9797
destinations:

0 commit comments

Comments
 (0)