wildfire chat server source initial submit
This commit is contained in:
+75
@@ -0,0 +1,75 @@
|
||||
package uncommon;
|
||||
|
||||
import public 'common.proto';
|
||||
|
||||
syntax = 'proto3';
|
||||
|
||||
option java_package = 'com.google.protobuf';
|
||||
|
||||
message Test;
|
||||
|
||||
message Test2 {
|
||||
float hex = 0x1 [default=0x1];
|
||||
float oct = 02 [default=02];
|
||||
float zero = 3 [default=0];
|
||||
float inf = 4 [default=inf];
|
||||
float nan = 5 [default=nan];
|
||||
|
||||
/** pre */
|
||||
repeated group lower = 6 {}; /// post
|
||||
|
||||
/** pre */
|
||||
map<string,string> ambiguousComments = 7; /// post
|
||||
|
||||
string str = 8 {
|
||||
option default = "a";
|
||||
}
|
||||
|
||||
map<string,string> strmap = 9 {
|
||||
option (custom) = "";
|
||||
};
|
||||
|
||||
map<uint64,Test> longmap = 10;
|
||||
|
||||
/** pre */
|
||||
oneof kind;
|
||||
oneof kind2; /// post
|
||||
|
||||
/** pre */
|
||||
oneof kind3 {
|
||||
option (custom) = ""; /// post
|
||||
};
|
||||
|
||||
option (custom) = -42;
|
||||
|
||||
extend Test;
|
||||
extend Test{};
|
||||
extend Test{required int32 a=1;} // not validated by the parser
|
||||
};
|
||||
|
||||
enum Test3;
|
||||
|
||||
enum Test4{
|
||||
option (custom).foo = "";
|
||||
ONE = 1 [foo="bar"];
|
||||
TWO = 2 [(my_options) = { a: "foo" b { c: "bar" } }];
|
||||
THREE = 3 {
|
||||
option (custom).bar = "";
|
||||
};
|
||||
};
|
||||
|
||||
enum Test4_1{
|
||||
OPTION = 1;
|
||||
}
|
||||
|
||||
service Test5;
|
||||
|
||||
service Test6 { option (custom).bar = "";
|
||||
message DoSomethingRequest;
|
||||
message DoSomethingResponse;
|
||||
|
||||
rpc DoSomething(stream DoSomethingRequest) returns (stream DoSomethingResponse){ option (custom).foo2 = ""; };
|
||||
/** pre */
|
||||
rpc DoSomethingElse( stream DoSomethingRequest ) returns (DoSomethingResponse); /// post
|
||||
rpc DoSomethingEntirelyDifferent(DoSomethingRequest ) returns ( stream DoSomethingResponse ); /// post
|
||||
};
|
||||
Reference in New Issue
Block a user