diff --git a/buf/plugin/generate/v1/generate_service.proto b/buf/plugin/generate/v1/generate_service.proto index 0de885a..136cf29 100644 --- a/buf/plugin/generate/v1/generate_service.proto +++ b/buf/plugin/generate/v1/generate_service.proto @@ -29,10 +29,6 @@ service GenerateService { rpc Generate(GenerateRequest) returns (GenerateResponse) { option idempotency_level = NO_SIDE_EFFECTS; } - // Get information about a plugin. - rpc GetInfo(GetInfoRequest) returns (GetInfoResponse) { - option idempotency_level = NO_SIDE_EFFECTS; - } } // A request for generation. @@ -83,12 +79,3 @@ message GenerateResponse { expression: "this.map(file, file.path).unique()" }]; } - -// A request for info. -message GetInfoRequest {} - -// The information about the plugin. -message GetInfoResponse { - // The maximum edition that the plugin supports. - int32 maximum_edition = 1; -} diff --git a/buf/plugin/info/v1/plugin_info.proto b/buf/plugin/info/v1/plugin_info.proto index d2438db..d9cbe8f 100644 --- a/buf/plugin/info/v1/plugin_info.proto +++ b/buf/plugin/info/v1/plugin_info.proto @@ -35,4 +35,8 @@ message PluginInfo { License license = 2; // Documentation for a plugin. Doc doc = 3; + // The maximum edition that the plugin supports. + // + // If not set, the plugin is assumed to support all editions. + int32 maximum_edition = 4; }