@@ -342,34 +342,13 @@ message CollectionSegmentInfo {
342
342
// GC's {collection,version} selection policy.
343
343
}
344
344
345
- // Tuple of collection ID, tenant ID, and version.
346
- message CollectionVersionTuple {
347
- string collection_id = 1 ;
348
- string tenant_id = 2 ;
349
- int64 version = 3 ;
350
- }
351
-
352
345
message VersionListForCollection {
353
346
string tenant_id = 1 ;
354
347
string database_id = 2 ;
355
348
string collection_id = 3 ;
356
349
repeated int64 versions = 4 ;
357
350
}
358
351
359
- // Contains information about the lineage of a collection.
360
- message CollectionLineageInfo {
361
- // ID of the collection.
362
- string collection_id = 1 ;
363
- // ID of the tenant.
364
- string tenant_id = 2 ;
365
- // Whether the collection is a root collection.
366
- bool is_root_collection = 3 ;
367
- // An ordered list of descendant collections.
368
- // The first element is the root {collection, version}, and the last
369
- // element is the direct parent of the current collection.
370
- repeated CollectionVersionTuple parent_collections = 4 ;
371
- }
372
-
373
352
// Request to list versions of a collection.
374
353
message ListCollectionVersionsRequest {
375
354
string collection_id = 1 ;
@@ -391,6 +370,16 @@ message ListCollectionVersionsResponse {
391
370
bool list_is_truncated = 2 ;
392
371
}
393
372
373
+ message CollectionLineageFile {
374
+ repeated CollectionVersionDependency dependencies = 1 ;
375
+ }
376
+
377
+ message CollectionVersionDependency {
378
+ string source_collection_id = 1 ; // The forked collection
379
+ uint64 source_collection_version = 2 ; // The forked collection version
380
+ string target_collection_id = 3 ; // The forking collection
381
+ }
382
+
394
383
// Request to restore a collection.
395
384
message RestoreCollectionRequest {
396
385
string collection_id = 1 ;
0 commit comments