diff --git a/protobuf/schema/v1/server_analyzer_service.proto b/protobuf/schema/v1/server_analyzer_service.proto index e3b41b4..5b4eaf5 100644 --- a/protobuf/schema/v1/server_analyzer_service.proto +++ b/protobuf/schema/v1/server_analyzer_service.proto @@ -46,8 +46,13 @@ message AnalyzeResponse { repeated Result results = 5; } -service ServerAnalyzerService { +message Error { + string message = 1; + int32 code = 2; +} +service ServerAnalyzerService { + rpc Analyze(AnalyzeRequest) returns (AnalyzeResponse) { // option type is http option (google.api.http) = { diff --git a/protobuf/schema/v1/server_query_service.proto b/protobuf/schema/v1/server_query_service.proto index 3a5acbc..afca5f0 100644 --- a/protobuf/schema/v1/server_query_service.proto +++ b/protobuf/schema/v1/server_query_service.proto @@ -8,7 +8,7 @@ import "google/api/annotations.proto"; option go_package = "schema/service/v1"; -message Error { +message QueryError { string message = 1; int32 code = 2; } @@ -19,7 +19,7 @@ message QueryRequest { } message QueryResponse { - Error error = 1; + QueryError error = 1; string response = 2; }