Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion apis/datasets/v1/collections.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,23 @@
bool with_count = 3;
}

// ListCollectionsResponse is the response to ListCollectionsRequest.
// It contains a list of collections for the requested dataset, as well as
// some organization level metadata about the number of collections the organization owns
// and the maximum number of collections it can own.
message ListCollectionsResponse {
// List of collections in the dataset.
repeated CollectionInfo data = 1;
// Number of collections in all datasets that the users organization is the owner of
int64 owned_collections = 2;
// Maximum number of collections that can be created and therefore owned by the organization. Nil means unlimited.
int64 maximum_owned_collections = 3 [features.field_presence = EXPLICIT];
}

// CollectionService is the service definition for the Tilebox datasets service, which provides access to datasets
service CollectionService {
rpc CreateCollection(CreateCollectionRequest) returns (CollectionInfo) {}
rpc GetCollectionByName(GetCollectionByNameRequest) returns (CollectionInfo) {}
rpc DeleteCollection(DeleteCollectionRequest) returns (DeleteCollectionResponse) {}
rpc ListCollections(ListCollectionsRequest) returns (CollectionInfos) {}
rpc ListCollections(ListCollectionsRequest) returns (ListCollectionsResponse) {}

Check failure on line 73 in apis/datasets/v1/collections.proto

View workflow job for this annotation

GitHub Actions / Buf

RPC "ListCollections" on service "CollectionService" changed response type from "datasets.v1.CollectionInfos" to "datasets.v1.ListCollectionsResponse".
}
5 changes: 0 additions & 5 deletions apis/datasets/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ message CollectionInfo {
uint64 count = 3 [features.field_presence = EXPLICIT];
}

// CollectionInfos contains a list of CollectionInfo messages.
message CollectionInfos {
repeated CollectionInfo data = 1;
}

// Dataset contains information about a single dataset
message Dataset {
// dataset id
Expand Down
Loading