groovy
dependencies {
implementation 'com.google.protobuf:protobuf-lite:3.18.1'
}
protobuf
syntax = "proto3";
message Person {
string name = 1;
int32 age = 2;
repeated string hobbies = 3;
}
protobuf
syntax = "proto3";
message Person {
string name = 1;
int32 age = 2;
repeated string hobbies = 3;
//bool is_new = 4;
}
protobuf
syntax = "proto3";
message Person {
string name = 1;
int32 age = 2;
repeated string hobbies = 3;
//bool is_new = 4;
enum Status {
UNKNOWN = 0;
ACTIVE = 1;
INACTIVE = 2;
}
Status status = 4;
}