mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 12:41:01 +08:00
20d45b1179
Since we now require protobuf >= 3.0.0, we don't have to support older protobuf versions that don't recognize the `syntax` syntax, so we can put `syntax = "proto2";` on these proto files to silence the protoc compiler's diagnostic "No syntax specified for the proto file".
16 lines
206 B
Protocol Buffer
16 lines
206 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package foo;
|
|
|
|
option optimize_for = CODE_SIZE;
|
|
|
|
enum TestEnumLite {
|
|
LITE = 0;
|
|
LITE1 = 1;
|
|
}
|
|
|
|
message TestMessLite {
|
|
required int32 field1 = 1;
|
|
required TestEnumLite field2 = 2;
|
|
}
|