chore: format proto file (#254)

* chore: proto file format using buf

* generate go file
This commit is contained in:
fys
2025-07-16 11:25:57 +08:00
committed by GitHub
parent ceb1af4fa9
commit 855dff1b87
30 changed files with 432 additions and 354 deletions
+17 -7
View File
@@ -16,9 +16,9 @@ syntax = "proto3";
package greptime.v1;
option java_package = "io.greptime.v1";
option java_outer_classname = "Common";
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
option java_outer_classname = "Common";
option java_package = "io.greptime.v1";
message QueryContext {
string current_catalog = 1;
@@ -61,7 +61,9 @@ message RequestHeader {
string timezone = 6;
}
message ResponseHeader { Status status = 1; }
message ResponseHeader {
Status status = 1;
}
message Status {
// Corresponding to the `StatusCode` definition of GreptimeDB
@@ -81,7 +83,9 @@ message Basic {
string password = 2;
}
message Token { string token = 1; }
message Token {
string token = 1;
}
message TableName {
string catalog_name = 1;
@@ -89,11 +93,17 @@ message TableName {
string table_name = 3;
}
message AffectedRows { uint32 value = 1; }
message AffectedRows {
uint32 value = 1;
}
message Metrics { bytes metrics = 1; }
message Metrics {
bytes metrics = 1;
}
message ExpireAfter { int64 value = 1; }
message ExpireAfter {
int64 value = 1;
}
message FlightMetadata {
AffectedRows affected_rows = 1;