From f54ab37d600f7d5475695c480d45eafde8c6b3e0 Mon Sep 17 00:00:00 2001 From: Lukas Bindreiter Date: Thu, 5 Mar 2026 15:07:12 +0100 Subject: [PATCH] Add dataset_id field to Query / QueryByID --- apis/datasets/v1/data_access.proto | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apis/datasets/v1/data_access.proto b/apis/datasets/v1/data_access.proto index 20bab03..8745fb3 100644 --- a/apis/datasets/v1/data_access.proto +++ b/apis/datasets/v1/data_access.proto @@ -47,9 +47,11 @@ message GetDatapointByIdRequest { // QueryByIDRequest contains the request parameters for retrieving a single data point by its id. message QueryByIDRequest { + // The dataset id to query. If not set, the dataset is derived from the collection ids, in which case there must be at least one collection id set. + tilebox.v1.ID dataset_id = 4; // collection ids to query. repeated tilebox.v1.ID collection_ids = 1 [(buf.validate.field).repeated = { - min_items: 1 + min_items: 0 max_items: 100 }]; // The id of the requested data point. @@ -107,9 +109,11 @@ message SpatialFilter { // QueryRequest contains the request parameters for retrieving data from a Tilebox dataset. message QueryRequest { - // collection ids to query. + // The dataset id to query. If not set, the dataset is derived from the collection ids, in which case there must be at least one collection id set. + tilebox.v1.ID dataset_id = 5; + // collection ids to query. If empty, all collections of the dataset are queried. repeated tilebox.v1.ID collection_ids = 1 [(buf.validate.field).repeated = { - min_items: 1 + min_items: 0 max_items: 100 }]; // Filters to apply to the query.