mirror of
https://github.com/hanzoai/protobuf.js.git
synced 2026-09-24 17:02:08 +00:00
39 lines
691 B
Protocol Buffer
39 lines
691 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Test {
|
|
|
|
string string = 1;
|
|
uint32 uint32 = 2;
|
|
Inner inner = 3;
|
|
float float = 4; // make sure to set something that's fair to JSON
|
|
|
|
message Inner {
|
|
|
|
int32 int32 = 1;
|
|
InnerInner innerInner = 2;
|
|
Outer outer = 3;
|
|
|
|
message InnerInner {
|
|
|
|
int64 long = 1;
|
|
Enum enum = 2;
|
|
sint32 sint32 = 3;
|
|
}
|
|
}
|
|
|
|
enum Enum {
|
|
|
|
ONE = 0;
|
|
TWO = 1;
|
|
THREE = 2;
|
|
FOUR = 3;
|
|
FIVE = 4;
|
|
}
|
|
}
|
|
|
|
message Outer {
|
|
|
|
repeated bool bool = 1;
|
|
double double = 2; // make sure to set something that's fair to JSON
|
|
}
|