@@ -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.
658724message DedicatedInfrastructure {
659725 // Specification for autoscaling.
0 commit comments