123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558 |
- syntax = "proto3";
- import "externalpackagetest.proto";
- package qtprotobufnamespace.tests;
- message EmptyMessage {
- }
- message SimpleEnumMessage {
- enum LocalEnum {
- LOCAL_ENUM_VALUE0 = 0;
- LOCAL_ENUM_VALUE1 = 1;
- LOCAL_ENUM_VALUE2 = 2;
- LOCAL_ENUM_VALUE3 = 3;
- }
- LocalEnum localEnum = 1;
- }
- message SimpleEnumListMessage {
- enum LocalEnum {
- LOCAL_ENUM_VALUE0 = 0;
- LOCAL_ENUM_VALUE1 = 1;
- LOCAL_ENUM_VALUE2 = 2;
- LOCAL_ENUM_VALUE3 = 3;
- }
- repeated LocalEnum localEnumList = 1;
- }
- message SimpleFileEnumMessage {
- TestEnum globalEnum = 1;
- repeated TestEnum globalEnumList = 2;
- }
- message StepChildEnumMessage {
- SimpleEnumMessage.LocalEnum localStepChildEnum = 1;
- repeated SimpleEnumMessage.LocalEnum localStepChildList = 2;
- }
- message SimpleExternalEnumMessage {
- qtprotobufnamespace1.externaltests.ExternalTestEnum externalEnum = 1;
- }
- message SimpleBoolMessage {
- bool testFieldBool = 1;
- }
- message SimpleIntMessage {
- int32 testFieldInt = 1;
- }
- message SimpleSIntMessage {
- sint32 testFieldInt = 1;
- }
- message SimpleUIntMessage {
- uint32 testFieldInt = 1;
- }
- message SimpleInt64Message {
- int64 testFieldInt = 1;
- }
- message SimpleSInt64Message {
- sint64 testFieldInt = 1;
- }
- message SimpleUInt64Message {
- uint64 testFieldInt = 1;
- }
- message SimpleStringMessage {
- string testFieldString = 6;
- }
- message SimpleFloatMessage {
- float testFieldFloat = 7;
- }
- message SimpleDoubleMessage {
- double testFieldDouble = 8;
- }
- message SimpleBytesMessage {
- bytes testFieldBytes = 1;
- }
- message SimpleFixedInt32Message {
- fixed32 testFieldFixedInt32 = 1;
- }
- message SimpleFixedInt64Message {
- fixed64 testFieldFixedInt64 = 1;
- }
- message SimpleSFixedInt32Message {
- sfixed32 testFieldFixedInt32 = 1;
- }
- message SimpleSFixedInt64Message {
- sfixed64 testFieldFixedInt64 = 1;
- }
- message ComplexMessage {
- int32 testFieldInt = 1;
- SimpleStringMessage testComplexField = 2;
- }
- message RepeatedStringMessage {
- repeated string testRepeatedString = 1;
- }
- message RepeatedDoubleMessage {
- repeated double testRepeatedDouble = 1;
- }
- message RepeatedBytesMessage {
- repeated bytes testRepeatedBytes = 1;
- }
- message RepeatedFloatMessage {
- repeated float testRepeatedFloat = 1;
- }
- message RepeatedComplexMessage {
- repeated ComplexMessage testRepeatedComplex = 1;
- }
- message RepeatedExternalComplexMessage {
- repeated qtprotobufnamespace1.externaltests.ExternalComplexMessage testExternalComplex = 1;
- }
- message RepeatedSIntMessage {
- repeated sint32 testRepeatedInt = 1;
- }
- message RepeatedIntMessage {
- repeated int32 testRepeatedInt = 1;
- }
- message RepeatedUIntMessage {
- repeated uint32 testRepeatedInt = 1;
- }
- message RepeatedSInt64Message {
- repeated sint64 testRepeatedInt = 1;
- }
- message RepeatedInt64Message {
- repeated int64 testRepeatedInt = 1;
- }
- message RepeatedUInt64Message {
- repeated uint64 testRepeatedInt = 1;
- }
- message RepeatedFixedIntMessage {
- repeated fixed32 testRepeatedInt = 1;
- }
- message RepeatedSFixedIntMessage {
- repeated sfixed32 testRepeatedInt = 1;
- }
- message RepeatedFixedInt64Message {
- repeated fixed64 testRepeatedInt = 1;
- }
- message RepeatedSFixedInt64Message {
- repeated sfixed64 testRepeatedInt = 1;
- }
- //MAPS
- //Types to String
- message SimpleSInt32StringMapMessage {
- map<sint32, string> mapField = 1;
- }
- message SimpleSInt64StringMapMessage {
- map<sint64, string> mapField = 2;
- }
- message SimpleInt32StringMapMessage {
- map<int32, string> mapField = 3;
- }
- message SimpleInt64StringMapMessage {
- map<int64, string> mapField = 4;
- }
- message SimpleUInt32StringMapMessage {
- map<uint32, string> mapField = 5;
- }
- message SimpleUInt64StringMapMessage {
- map<uint64, string> mapField = 6;
- }
- message SimpleFixed32StringMapMessage {
- map<fixed32, string> mapField = 7;
- }
- message SimpleFixed64StringMapMessage {
- map<fixed64, string> mapField = 8;
- }
- message SimpleSFixed32StringMapMessage {
- map<sfixed32, string> mapField = 9;
- }
- message SimpleSFixed64StringMapMessage {
- map<sfixed64, string> mapField = 10;
- }
- message SimpleStringStringMapMessage {
- map<string, string> mapField = 13;
- }
- //Types to sint32
- message SimpleSInt32SInt32MapMessage {
- map<sint32, sint32> mapField = 1;
- }
- message SimpleSInt64SInt32MapMessage {
- map<sint64, sint32> mapField = 2;
- }
- message SimpleInt32SInt32MapMessage {
- map<int32, sint32> mapField = 3;
- }
- message SimpleInt64SInt32MapMessage {
- map<int64, sint32> mapField = 4;
- }
- message SimpleUInt32SInt32MapMessage {
- map<uint32, sint32> mapField = 5;
- }
- message SimpleUInt64SInt32MapMessage {
- map<uint64, sint32> mapField = 6;
- }
- message SimpleFixed32SInt32MapMessage {
- map<fixed32, sint32> mapField = 7;
- }
- message SimpleFixed64SInt32MapMessage {
- map<fixed64, sint32> mapField = 8;
- }
- message SimpleSFixed32SInt32MapMessage {
- map<sfixed32, sint32> mapField = 9;
- }
- message SimpleSFixed64SInt32MapMessage {
- map<sfixed64, sint32> mapField = 10;
- }
- message SimpleStringSInt32MapMessage {
- map<string, sint32> mapField = 13;
- }
- //Types to sint64
- message SimpleSInt32SInt64MapMessage {
- map<sint32, sint64> mapField = 1;
- }
- message SimpleSInt64SInt64MapMessage {
- map<sint64, sint64> mapField = 2;
- }
- message SimpleInt32SInt64MapMessage {
- map<int32, sint64> mapField = 3;
- }
- message SimpleInt64SInt64MapMessage {
- map<int64, sint64> mapField = 4;
- }
- message SimpleUInt32SInt64MapMessage {
- map<uint32, sint64> mapField = 5;
- }
- message SimpleUInt64SInt64MapMessage {
- map<uint64, sint64> mapField = 6;
- }
- message SimpleFixed32SInt64MapMessage {
- map<fixed32, sint64> mapField = 7;
- }
- message SimpleFixed64SInt64MapMessage {
- map<fixed64, sint64> mapField = 8;
- }
- message SimpleSFixed32SInt64MapMessage {
- map<sfixed32, sint64> mapField = 9;
- }
- message SimpleSFixed64SInt64MapMessage {
- map<sfixed64, sint64> mapField = 10;
- }
- message SimpleStringSInt64MapMessage {
- map<string, sint64> mapField = 13;
- }
- //Types to uint32
- message SimpleSInt32UInt32MapMessage {
- map<sint32, uint32> mapField = 1;
- }
- message SimpleSInt64UInt32MapMessage {
- map<sint64, uint32> mapField = 2;
- }
- message SimpleInt32UInt32MapMessage {
- map<int32, uint32> mapField = 3;
- }
- message SimpleInt64UInt32MapMessage {
- map<int64, uint32> mapField = 4;
- }
- message SimpleUInt32UInt32MapMessage {
- map<uint32, uint32> mapField = 5;
- }
- message SimpleUInt64UInt32MapMessage {
- map<uint64, uint32> mapField = 6;
- }
- message SimpleFixed32UInt32MapMessage {
- map<fixed32, uint32> mapField = 7;
- }
- message SimpleFixed64UInt32MapMessage {
- map<fixed64, uint32> mapField = 8;
- }
- message SimpleSFixed32UInt32MapMessage {
- map<sfixed32, uint32> mapField = 9;
- }
- message SimpleSFixed64UInt32MapMessage {
- map<sfixed64, uint32> mapField = 10;
- }
- message SimpleStringUInt32MapMessage {
- map<string, uint32> mapField = 13;
- }
- //Types to uint64
- message SimpleSInt32UInt64MapMessage {
- map<sint32, uint64> mapField = 1;
- }
- message SimpleSInt64UInt64MapMessage {
- map<sint64, uint64> mapField = 2;
- }
- message SimpleInt32UInt64MapMessage {
- map<int32, uint64> mapField = 3;
- }
- message SimpleInt64UInt64MapMessage {
- map<int64, uint64> mapField = 4;
- }
- message SimpleUInt32UInt64MapMessage {
- map<uint32, uint64> mapField = 5;
- }
- message SimpleUInt64UInt64MapMessage {
- map<uint64, uint64> mapField = 6;
- }
- message SimpleFixed32UInt64MapMessage {
- map<fixed32, uint64> mapField = 7;
- }
- message SimpleFixed64UInt64MapMessage {
- map<fixed64, uint64> mapField = 8;
- }
- message SimpleSFixed32UInt64MapMessage {
- map<sfixed32, uint64> mapField = 9;
- }
- message SimpleSFixed64UInt64MapMessage {
- map<sfixed64, uint64> mapField = 10;
- }
- message SimpleStringUInt64MapMessage {
- map<string, uint64> mapField = 13;
- }
- //Types to int32
- message SimpleSInt32Int32MapMessage {
- map<sint32, int32> mapField = 1;
- }
- message SimpleSInt64Int32MapMessage {
- map<sint64, int32> mapField = 2;
- }
- message SimpleInt32Int32MapMessage {
- map<int32, int32> mapField = 3;
- }
- message SimpleInt64Int32MapMessage {
- map<int64, int32> mapField = 4;
- }
- message SimpleUInt32Int32MapMessage {
- map<uint32, int32> mapField = 5;
- }
- message SimpleUInt64Int32MapMessage {
- map<uint64, int32> mapField = 6;
- }
- message SimpleFixed32Int32MapMessage {
- map<fixed32, int32> mapField = 7;
- }
- message SimpleFixed64Int32MapMessage {
- map<fixed64, int32> mapField = 8;
- }
- message SimpleSFixed32Int32MapMessage {
- map<sfixed32, int32> mapField = 9;
- }
- message SimpleSFixed64Int32MapMessage {
- map<sfixed64, int32> mapField = 10;
- }
- message SimpleStringInt32MapMessage {
- map<string, int32> mapField = 13;
- }
- //Types to int64
- message SimpleSInt32Int64MapMessage {
- map<sint32, int64> mapField = 1;
- }
- message SimpleSInt64Int64MapMessage {
- map<sint64, int64> mapField = 2;
- }
- message SimpleInt32Int64MapMessage {
- map<int32, int64> mapField = 3;
- }
- message SimpleInt64Int64MapMessage {
- map<int64, int64> mapField = 4;
- }
- message SimpleUInt32Int64MapMessage {
- map<uint32, int64> mapField = 5;
- }
- message SimpleUInt64Int64MapMessage {
- map<uint64, int64> mapField = 6;
- }
- message SimpleFixed32Int64MapMessage {
- map<fixed32, int64> mapField = 7;
- }
- message SimpleFixed64Int64MapMessage {
- map<fixed64, int64> mapField = 8;
- }
- message SimpleSFixed32Int64MapMessage {
- map<sfixed32, int64> mapField = 9;
- }
- message SimpleSFixed64Int64MapMessage {
- map<sfixed64, int64> mapField = 10;
- }
- message SimpleStringInt64MapMessage {
- map<string, int64> mapField = 13;
- }
- //Types to ComplexMessage
- message SimpleSInt32ComplexMessageMapMessage {
- map<sint32, ComplexMessage> mapField = 1;
- }
- message SimpleSInt64ComplexMessageMapMessage {
- map<sint64, ComplexMessage> mapField = 2;
- }
- message SimpleInt32ComplexMessageMapMessage {
- map<int32, ComplexMessage> mapField = 3;
- }
- message SimpleInt64ComplexMessageMapMessage {
- map<int64, ComplexMessage> mapField = 4;
- }
- message SimpleUInt32ComplexMessageMapMessage {
- map<uint32, ComplexMessage> mapField = 5;
- }
- message SimpleUInt64ComplexMessageMapMessage {
- map<uint64, ComplexMessage> mapField = 6;
- }
- message SimpleFixed32ComplexMessageMapMessage {
- map<fixed32, ComplexMessage> mapField = 7;
- }
- message SimpleFixed64ComplexMessageMapMessage {
- map<fixed64, ComplexMessage> mapField = 8;
- }
- message SimpleSFixed32ComplexMessageMapMessage {
- map<sfixed32, ComplexMessage> mapField = 9;
- }
- message SimpleSFixed64ComplexMessageMapMessage {
- map<sfixed64, ComplexMessage> mapField = 10;
- }
- message SimpleStringComplexMessageMapMessage {
- map<string, ComplexMessage> mapField = 13;
- }
- enum TestEnum {
- TEST_ENUM_VALUE0 = 0;
- TEST_ENUM_VALUE1 = 1;
- TEST_ENUM_VALUE2 = 2;
- TEST_ENUM_VALUE3 = 4;
- TEST_ENUM_VALUE4 = 3;
- }
- message FieldIndexTest1Message {
- sint32 testField = 31;
- }
- message FieldIndexTest2Message {
- sint32 testField = 8191;
- }
- message FieldIndexTest3Message {
- sint32 testField = 2097151;
- }
- message FieldIndexTest4Message {
- sint32 testField = 536870911;
- }
|