forked from apache/brpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidl_options.proto
40 lines (34 loc) · 984 Bytes
/
idl_options.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
syntax="proto2";
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu, Inc.
// Author: Ge,Jun ([email protected])
// Date: Mon Oct 19 17:17:36 CST 2015
import "google/protobuf/descriptor.proto";
extend google.protobuf.FileOptions {
// True to generate mcpack parsing/serializing code
optional bool idl_support = 91000;
}
enum ConvertibleIdlType {
IDL_AUTO = 0;
IDL_INT8 = 1;
IDL_INT16 = 2;
IDL_INT32 = 3;
IDL_INT64 = 4;
IDL_UINT8 = 5;
IDL_UINT16 = 6;
IDL_UINT32 = 7;
IDL_UINT64 = 8;
IDL_BOOL = 9;
IDL_FLOAT = 10;
IDL_DOUBLE = 11;
IDL_BINARY = 12;
IDL_STRING = 13;
}
extend google.protobuf.FieldOptions {
// Mark the idl-type which is inconsistent with proto-type.
optional ConvertibleIdlType idl_type = 91001;
// Mark the non-optional() vector/array in idl.
optional int32 idl_on = 91002;
// Use this name as the field name for packing instead of the one in proto.
optional string idl_name = 91003;
}