mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-02 12:21:01 +00:00
feat[protobuf]: not support enum and extend in protobuf
This commit is contained in:
@@ -3,7 +3,6 @@ syntax = "proto3";
|
||||
|
||||
package test.message;
|
||||
|
||||
import "one_enum.proto";
|
||||
import "one_map.proto";
|
||||
import "one_message.proto";
|
||||
option java_package = "io.edap.protobuf.test.message.v3";
|
||||
@@ -13,7 +12,6 @@ message AllType {
|
||||
bool field1 = 1;
|
||||
bytes field2 = 2;
|
||||
double field3 = 3;
|
||||
Corpus field4 = 4;
|
||||
fixed32 field5 = 5;
|
||||
fixed64 field6 = 6;
|
||||
float field7 = 7;
|
||||
|
||||
@@ -5,17 +5,17 @@ package test.message;
|
||||
|
||||
option java_package = "io.edap.protobuf.test.message.v3";
|
||||
|
||||
message OneEnum {
|
||||
Corpus corpus = 1;
|
||||
}
|
||||
|
||||
|
||||
enum Corpus {
|
||||
UNIVERSAL = 0;
|
||||
WEB = 1;
|
||||
IMAGES = 2;
|
||||
LOCAL = 3;
|
||||
NEWS = 4;
|
||||
PRODUCTS = 5;
|
||||
VIDEO = 6;
|
||||
}
|
||||
//message OneEnum {
|
||||
// Corpus corpus = 1;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//enum Corpus {
|
||||
// UNIVERSAL = 0;
|
||||
// WEB = 1;
|
||||
// IMAGES = 2;
|
||||
// LOCAL = 3;
|
||||
// NEWS = 4;
|
||||
// PRODUCTS = 5;
|
||||
// VIDEO = 6;
|
||||
//}
|
||||
Reference in New Issue
Block a user