mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
47 lines
856 B
Protocol Buffer
47 lines
856 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option java_multiple_files = true;
|
|
option java_package = "com.usatiuk.autoprotomap.it";
|
|
option java_outer_classname = "TestProto";
|
|
|
|
package autoprotomap.test;
|
|
|
|
message SimpleObjectProto {
|
|
int32 numfield = 1;
|
|
string name = 2;
|
|
bytes someBytes = 3;
|
|
}
|
|
|
|
message NestedObjectProto {
|
|
SimpleObjectProto object = 1;
|
|
string nestedName = 2;
|
|
bytes nestedSomeBytes = 3;
|
|
}
|
|
|
|
message CustomObjectProto {
|
|
int64 test = 1;
|
|
}
|
|
|
|
message AbstractProto {
|
|
oneof obj {
|
|
NestedObjectProto nestedObject = 1;
|
|
SimpleObjectProto simpleObject = 2;
|
|
CustomObjectProto customObject = 3;
|
|
}
|
|
}
|
|
|
|
message RecordObjectProto {
|
|
string key = 1;
|
|
}
|
|
|
|
message RecordObject2Proto {
|
|
string key = 1;
|
|
int32 value = 2;
|
|
}
|
|
|
|
message InterfaceObjectProto {
|
|
oneof obj {
|
|
RecordObjectProto recordObject = 1;
|
|
RecordObject2Proto recordObject2 = 2;
|
|
}
|
|
} |