Change the protobuf field names to follow the naming convention
The field names should be written using the snake_case
. We use camelCase
.
It causes the generated GRPC API files for non-Go languages not to follow the expected naming conventions.
message GetStateRsp {
string agentVersion = 1;
repeated App apps = 2;
string hostname = 3;
int64 cpus = 4;
string cpusLoad = 5;
int64 memory = 6;
int64 usedMemory = 7;
int64 uptime = 8;
string error = 9;
string os = 10;
string platform = 11;
string platformFamily = 12;
string platformVersion = 13;
string kernelVersion = 14;
string kernelArch = 15;
string virtualizationSystem = 16;
string virtualizationRole = 17;
string hostID = 18;
bool agentUsesHTTPCredentials = 19;
}
References: https://protobuf.dev/programming-guides/style/#message-field-names