From 30ed357b712b08275ae93ee6240ad2bb9524f622 Mon Sep 17 00:00:00 2001 From: Corentin Musard Date: Tue, 15 Jul 2025 17:55:48 +0200 Subject: [PATCH] Specify api level in buf.gen.yaml --- apis/datasets/v1/collections.proto | 2 -- apis/datasets/v1/core.proto | 2 -- apis/datasets/v1/data_access.proto | 2 -- apis/datasets/v1/data_ingestion.proto | 2 -- apis/datasets/v1/dataset_type.proto | 2 -- apis/datasets/v1/datasets.proto | 2 -- apis/datasets/v1/timeseries.proto | 2 -- apis/datasets/v1/well_known_types.proto | 2 -- apis/tilebox/v1/id.proto | 3 --- apis/tilebox/v1/query.proto | 2 -- apis/workflows/v1/automation.proto | 2 -- apis/workflows/v1/core.proto | 2 -- apis/workflows/v1/diagram.proto | 3 --- apis/workflows/v1/job.proto | 2 -- apis/workflows/v1/task.proto | 2 -- apis/workflows/v1/workflows.proto | 2 -- 16 files changed, 34 deletions(-) diff --git a/apis/datasets/v1/collections.proto b/apis/datasets/v1/collections.proto index 562b856..aa303e3 100644 --- a/apis/datasets/v1/collections.proto +++ b/apis/datasets/v1/collections.proto @@ -5,10 +5,8 @@ edition = "2023"; package datasets.v1; import "datasets/v1/core.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // CreateCollectionRequest is used to create a new collection. diff --git a/apis/datasets/v1/core.proto b/apis/datasets/v1/core.proto index 8ac05ba..90baea7 100644 --- a/apis/datasets/v1/core.proto +++ b/apis/datasets/v1/core.proto @@ -17,13 +17,11 @@ edition = "2023"; package datasets.v1; import "datasets/v1/dataset_type.proto"; -import "google/protobuf/go_features.proto"; // https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp import "google/protobuf/timestamp.proto"; import "tilebox/v1/id.proto"; import "tilebox/v1/query.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // LegacyPagination - used for backwards compatibility, will be removed as soon as all datasets are migrated diff --git a/apis/datasets/v1/data_access.proto b/apis/datasets/v1/data_access.proto index 08da298..6c7d8c2 100644 --- a/apis/datasets/v1/data_access.proto +++ b/apis/datasets/v1/data_access.proto @@ -6,11 +6,9 @@ package datasets.v1; import "datasets/v1/core.proto"; import "datasets/v1/well_known_types.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; import "tilebox/v1/query.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Legacy message, to be removed in the future. diff --git a/apis/datasets/v1/data_ingestion.proto b/apis/datasets/v1/data_ingestion.proto index 857a6ac..494b445 100644 --- a/apis/datasets/v1/data_ingestion.proto +++ b/apis/datasets/v1/data_ingestion.proto @@ -5,10 +5,8 @@ edition = "2023"; package datasets.v1; import "datasets/v1/core.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Legacy ingest request diff --git a/apis/datasets/v1/dataset_type.proto b/apis/datasets/v1/dataset_type.proto index da9c6c7..13cca79 100644 --- a/apis/datasets/v1/dataset_type.proto +++ b/apis/datasets/v1/dataset_type.proto @@ -6,11 +6,9 @@ package datasets.v1; import "datasets/v1/well_known_types.proto"; import "google/protobuf/descriptor.proto"; -import "google/protobuf/go_features.proto"; import "google/protobuf/timestamp.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Field describes a field of a dataset. diff --git a/apis/datasets/v1/datasets.proto b/apis/datasets/v1/datasets.proto index a787479..428b324 100644 --- a/apis/datasets/v1/datasets.proto +++ b/apis/datasets/v1/datasets.proto @@ -6,10 +6,8 @@ package datasets.v1; import "datasets/v1/core.proto"; import "datasets/v1/dataset_type.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // CreateDatasetRequest is used to create a new dataset. diff --git a/apis/datasets/v1/timeseries.proto b/apis/datasets/v1/timeseries.proto index b8c5f09..1b922cf 100644 --- a/apis/datasets/v1/timeseries.proto +++ b/apis/datasets/v1/timeseries.proto @@ -5,11 +5,9 @@ edition = "2023"; package datasets.v1; import "google/protobuf/duration.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; import "tilebox/v1/query.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // TimeseriesDatasetChunk is a message that represents a chunk of a timeseries dataset. diff --git a/apis/datasets/v1/well_known_types.proto b/apis/datasets/v1/well_known_types.proto index da20330..699a809 100644 --- a/apis/datasets/v1/well_known_types.proto +++ b/apis/datasets/v1/well_known_types.proto @@ -7,11 +7,9 @@ package datasets.v1; // in addition to the well-known types defined here, we also include Timestamp and Duration // buf:lint:ignore IMPORT_USED import "google/protobuf/duration.proto"; -import "google/protobuf/go_features.proto"; // buf:lint:ignore IMPORT_USED import "google/protobuf/timestamp.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Bytes field (in message) diff --git a/apis/tilebox/v1/id.proto b/apis/tilebox/v1/id.proto index cfdedc1..1c0cf3d 100644 --- a/apis/tilebox/v1/id.proto +++ b/apis/tilebox/v1/id.proto @@ -2,9 +2,6 @@ edition = "2023"; package tilebox.v1; -import "google/protobuf/go_features.proto"; - -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Bytes field (in message) diff --git a/apis/tilebox/v1/query.proto b/apis/tilebox/v1/query.proto index fa68124..41e33fc 100644 --- a/apis/tilebox/v1/query.proto +++ b/apis/tilebox/v1/query.proto @@ -2,11 +2,9 @@ edition = "2023"; package tilebox.v1; -import "google/protobuf/go_features.proto"; import "google/protobuf/timestamp.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // A time interval diff --git a/apis/workflows/v1/automation.proto b/apis/workflows/v1/automation.proto index fc1c843..1ac559d 100644 --- a/apis/workflows/v1/automation.proto +++ b/apis/workflows/v1/automation.proto @@ -5,12 +5,10 @@ edition = "2023"; package workflows.v1; import "google/protobuf/empty.proto"; -import "google/protobuf/go_features.proto"; import "google/protobuf/timestamp.proto"; import "tilebox/v1/id.proto"; import "workflows/v1/core.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // StorageType specifies a kind of storage bucket that we support. diff --git a/apis/workflows/v1/core.proto b/apis/workflows/v1/core.proto index 1231fae..efb8f23 100644 --- a/apis/workflows/v1/core.proto +++ b/apis/workflows/v1/core.proto @@ -5,11 +5,9 @@ edition = "2023"; package workflows.v1; import "google/protobuf/duration.proto"; -import "google/protobuf/go_features.proto"; import "google/protobuf/timestamp.proto"; import "tilebox/v1/id.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // A cluster is a grouping of tasks that are related. diff --git a/apis/workflows/v1/diagram.proto b/apis/workflows/v1/diagram.proto index 5eda97c..2ccbd40 100644 --- a/apis/workflows/v1/diagram.proto +++ b/apis/workflows/v1/diagram.proto @@ -4,9 +4,6 @@ edition = "2023"; package workflows.v1; -import "google/protobuf/go_features.proto"; - -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // Request to render a diagram diff --git a/apis/workflows/v1/job.proto b/apis/workflows/v1/job.proto index af71eef..1c7427c 100644 --- a/apis/workflows/v1/job.proto +++ b/apis/workflows/v1/job.proto @@ -4,13 +4,11 @@ edition = "2023"; package workflows.v1; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; import "tilebox/v1/query.proto"; import "workflows/v1/core.proto"; import "workflows/v1/diagram.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // SubmitJobRequest submits and schedules a job for execution. The job can have multiple root tasks. diff --git a/apis/workflows/v1/task.proto b/apis/workflows/v1/task.proto index c3fab7f..31f7fb0 100644 --- a/apis/workflows/v1/task.proto +++ b/apis/workflows/v1/task.proto @@ -5,11 +5,9 @@ edition = "2023"; package workflows.v1; import "google/protobuf/duration.proto"; -import "google/protobuf/go_features.proto"; import "tilebox/v1/id.proto"; import "workflows/v1/core.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // NextTaskRequest is the request for requesting the next task to run and marking a task as computed. diff --git a/apis/workflows/v1/workflows.proto b/apis/workflows/v1/workflows.proto index 24ccb3c..0cc328d 100644 --- a/apis/workflows/v1/workflows.proto +++ b/apis/workflows/v1/workflows.proto @@ -4,10 +4,8 @@ edition = "2023"; package workflows.v1; -import "google/protobuf/go_features.proto"; import "workflows/v1/core.proto"; -option features.(pb.go).api_level = API_OPAQUE; option features.field_presence = IMPLICIT; // CreateClusterRequest creates a new cluster.