syntax = "proto3"; import "externalpackagetest.proto"; import "nopackageexternal.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 mapField = 1; } message SimpleSInt64StringMapMessage { map mapField = 2; } message SimpleInt32StringMapMessage { map mapField = 3; } message SimpleInt64StringMapMessage { map mapField = 4; } message SimpleUInt32StringMapMessage { map mapField = 5; } message SimpleUInt64StringMapMessage { map mapField = 6; } message SimpleFixed32StringMapMessage { map mapField = 7; } message SimpleFixed64StringMapMessage { map mapField = 8; } message SimpleSFixed32StringMapMessage { map mapField = 9; } message SimpleSFixed64StringMapMessage { map mapField = 10; } message SimpleStringStringMapMessage { map mapField = 13; } //Types to sint32 message SimpleSInt32SInt32MapMessage { map mapField = 1; } message SimpleSInt64SInt32MapMessage { map mapField = 2; } message SimpleInt32SInt32MapMessage { map mapField = 3; } message SimpleInt64SInt32MapMessage { map mapField = 4; } message SimpleUInt32SInt32MapMessage { map mapField = 5; } message SimpleUInt64SInt32MapMessage { map mapField = 6; } message SimpleFixed32SInt32MapMessage { map mapField = 7; } message SimpleFixed64SInt32MapMessage { map mapField = 8; } message SimpleSFixed32SInt32MapMessage { map mapField = 9; } message SimpleSFixed64SInt32MapMessage { map mapField = 10; } message SimpleStringSInt32MapMessage { map mapField = 13; } //Types to sint64 message SimpleSInt32SInt64MapMessage { map mapField = 1; } message SimpleSInt64SInt64MapMessage { map mapField = 2; } message SimpleInt32SInt64MapMessage { map mapField = 3; } message SimpleInt64SInt64MapMessage { map mapField = 4; } message SimpleUInt32SInt64MapMessage { map mapField = 5; } message SimpleUInt64SInt64MapMessage { map mapField = 6; } message SimpleFixed32SInt64MapMessage { map mapField = 7; } message SimpleFixed64SInt64MapMessage { map mapField = 8; } message SimpleSFixed32SInt64MapMessage { map mapField = 9; } message SimpleSFixed64SInt64MapMessage { map mapField = 10; } message SimpleStringSInt64MapMessage { map mapField = 13; } //Types to uint32 message SimpleSInt32UInt32MapMessage { map mapField = 1; } message SimpleSInt64UInt32MapMessage { map mapField = 2; } message SimpleInt32UInt32MapMessage { map mapField = 3; } message SimpleInt64UInt32MapMessage { map mapField = 4; } message SimpleUInt32UInt32MapMessage { map mapField = 5; } message SimpleUInt64UInt32MapMessage { map mapField = 6; } message SimpleFixed32UInt32MapMessage { map mapField = 7; } message SimpleFixed64UInt32MapMessage { map mapField = 8; } message SimpleSFixed32UInt32MapMessage { map mapField = 9; } message SimpleSFixed64UInt32MapMessage { map mapField = 10; } message SimpleStringUInt32MapMessage { map mapField = 13; } //Types to uint64 message SimpleSInt32UInt64MapMessage { map mapField = 1; } message SimpleSInt64UInt64MapMessage { map mapField = 2; } message SimpleInt32UInt64MapMessage { map mapField = 3; } message SimpleInt64UInt64MapMessage { map mapField = 4; } message SimpleUInt32UInt64MapMessage { map mapField = 5; } message SimpleUInt64UInt64MapMessage { map mapField = 6; } message SimpleFixed32UInt64MapMessage { map mapField = 7; } message SimpleFixed64UInt64MapMessage { map mapField = 8; } message SimpleSFixed32UInt64MapMessage { map mapField = 9; } message SimpleSFixed64UInt64MapMessage { map mapField = 10; } message SimpleStringUInt64MapMessage { map mapField = 13; } //Types to int32 message SimpleSInt32Int32MapMessage { map mapField = 1; } message SimpleSInt64Int32MapMessage { map mapField = 2; } message SimpleInt32Int32MapMessage { map mapField = 3; } message SimpleInt64Int32MapMessage { map mapField = 4; } message SimpleUInt32Int32MapMessage { map mapField = 5; } message SimpleUInt64Int32MapMessage { map mapField = 6; } message SimpleFixed32Int32MapMessage { map mapField = 7; } message SimpleFixed64Int32MapMessage { map mapField = 8; } message SimpleSFixed32Int32MapMessage { map mapField = 9; } message SimpleSFixed64Int32MapMessage { map mapField = 10; } message SimpleStringInt32MapMessage { map mapField = 13; } //Types to int64 message SimpleSInt32Int64MapMessage { map mapField = 1; } message SimpleSInt64Int64MapMessage { map mapField = 2; } message SimpleInt32Int64MapMessage { map mapField = 3; } message SimpleInt64Int64MapMessage { map mapField = 4; } message SimpleUInt32Int64MapMessage { map mapField = 5; } message SimpleUInt64Int64MapMessage { map mapField = 6; } message SimpleFixed32Int64MapMessage { map mapField = 7; } message SimpleFixed64Int64MapMessage { map mapField = 8; } message SimpleSFixed32Int64MapMessage { map mapField = 9; } message SimpleSFixed64Int64MapMessage { map mapField = 10; } message SimpleStringInt64MapMessage { map mapField = 13; } //Types to ComplexMessage message SimpleSInt32ComplexMessageMapMessage { map mapField = 1; } message SimpleSInt64ComplexMessageMapMessage { map mapField = 2; } message SimpleInt32ComplexMessageMapMessage { map mapField = 3; } message SimpleInt64ComplexMessageMapMessage { map mapField = 4; } message SimpleUInt32ComplexMessageMapMessage { map mapField = 5; } message SimpleUInt64ComplexMessageMapMessage { map mapField = 6; } message SimpleFixed32ComplexMessageMapMessage { map mapField = 7; } message SimpleFixed64ComplexMessageMapMessage { map mapField = 8; } message SimpleSFixed32ComplexMessageMapMessage { map mapField = 9; } message SimpleSFixed64ComplexMessageMapMessage { map mapField = 10; } message SimpleStringComplexMessageMapMessage { map mapField = 13; } enum TestEnum { TEST_ENUM_VALUE0 = 0; TEST_ENUM_VALUE1 = 1; TEST_ENUM_VALUE2 = 2; TEST_ENUM_VALUE3 = 4; TEST_ENUM_VALUE4 = 3; } enum TestEnumSecondInFile { TEST_ENUM_SIF_VALUE0 = 0; TEST_ENUM_SIF_VALUE1 = 1; TEST_ENUM_SIF_VALUE2 = 2; } message FieldIndexTest1Message { sint32 testField = 31; } message FieldIndexTest2Message { sint32 testField = 8191; } message FieldIndexTest3Message { sint32 testField = 2097151; } message FieldIndexTest4Message { sint32 testField = 536870911; } message Message_Uderscore_name { sint32 testField = 1; } message MessageUderscorename { sint32 testField = 1; } message MessageUnderscoreField { sint32 underScore_Message_field = 1; } message PriorMessageUnderscoreField { sint32 _underScoreMessageField = 1; } message FollowingMessageUnderscoreField { sint32 underScoreMessageField_ = 1; } message CombinedMessageUnderscoreField { sint32 _underScoreMessage_Field_ = 1; } message MessageUpperCase { sint32 TestField = 1; } message MessageReserved { sint32 import = 1; sint32 property = 2; sint32 id = 3; } message MessageUpperCaseReserved { sint32 Import = 1; sint32 Property = 2; sint32 Id = 3; } message MessageEnumReserved { enum ReservedEnum { Import = 0; Property = 1; Id = 2; } enum LowerCaseEnum { enumValue0 = 0; enumValue1 = 1; enumValue2 = 2; } enum UnderScoreEnum { _enumUnderscoreValue0 = 0; _EnumUnderscoreValue1 = 1; } } message lowerCaseMessageName { sint32 testField = 1; } message LowerCaseFieldMessageName { lowerCaseMessageName testField = 1; } message NoPackageMessage { SimpleIntMessageExt testField = 1; }