├── README.md ├── edap-bean-convert ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── io │ │ └── edap │ │ └── beanconvert │ │ ├── AbstractConvertor.java │ │ ├── Convertor.java │ │ ├── ConvertorGenerator.java │ │ ├── ConvertorRegister.java │ │ ├── ListConvertorGenerator.java │ │ ├── MapperConfig.java │ │ ├── MapperInfo.java │ │ ├── MapperRegister.java │ │ └── util │ │ └── ConvertUtil.java │ └── test │ └── java │ └── io │ └── edap │ └── beanconvert │ └── test │ ├── CarType.java │ ├── CarTypeToStringConvertor.java │ ├── IntToStringConvertor.java │ ├── TestConvertGenerator.java │ ├── TestConvertUtil.java │ ├── TestConvertorRegister.java │ ├── TestMapperConfig.java │ ├── TestMapperInfo.java │ ├── TestMapperRegister.java │ ├── dto │ ├── CarApiDTO.java │ ├── CarDTO.java │ ├── DemoBoxedDTO.java │ ├── DemoBoxedNoGetSetDTO.java │ ├── DemoDTO.java │ ├── DemoListExtendFieldDTO.java │ ├── DemoListExtendFieldErrorDTO.java │ ├── DemoListFieldDTO.java │ ├── DemoListObjFieldDTO.java │ ├── DemoNoField8DTO.java │ ├── DemoNoGetSetDTO.java │ └── DemoStringFieldDTO.java │ └── vo │ ├── BmwCar.java │ ├── Car.java │ ├── DemoBoxedNoGetSet.java │ ├── DemoListExtendField.java │ ├── DemoListExtendThreeLevelField.java │ ├── DemoListField.java │ ├── DemoListObjField.java │ ├── DemoNoGetSet.java │ └── SportCar.java ├── edap-common ├── pom.xml └── src │ └── main │ └── java │ └── io │ └── edap │ ├── buffer │ └── FastBuf.java │ ├── io │ ├── BufOut.java │ └── BufWriter.java │ └── util │ ├── AsmUtil.java │ ├── ClazzUtil.java │ ├── CollectionUtils.java │ ├── CryptUtil.java │ ├── StringUtil.java │ ├── TimeUtil.java │ ├── UnsafeUtil.java │ └── internal │ └── GeneratorClassInfo.java ├── edap-log-api ├── pom.xml └── src │ └── main │ └── java │ └── io │ └── edap │ └── log │ ├── Args.java │ ├── LogArgs.java │ ├── LogLevel.java │ ├── Logger.java │ └── LoggerManager.java ├── edap-protobuf-idl ├── pom.xml └── src │ ├── main │ ├── java │ │ └── io │ │ │ └── edap │ │ │ └── protobuf │ │ │ └── idl │ │ │ ├── BuildOption.java │ │ │ ├── ProtoIdl.java │ │ │ ├── ServiceParser.java │ │ │ ├── UnsupportDataType.java │ │ │ ├── consts │ │ │ └── ProtoIdlConsts.java │ │ │ ├── model │ │ │ ├── FormalType.java │ │ │ ├── IdlFieldType.java │ │ │ ├── IdlJavaType.java │ │ │ ├── IdlMethod.java │ │ │ ├── IdlParameterizedType.java │ │ │ ├── MethodParam.java │ │ │ ├── ParentInfo.java │ │ │ └── impl │ │ │ │ ├── IdlJavaClass.java │ │ │ │ └── IdlParameterizedTypeImpl.java │ │ │ ├── proto │ │ │ ├── BoolValue.java │ │ │ ├── BytesValue.java │ │ │ ├── DoubleValue.java │ │ │ ├── Empty.java │ │ │ ├── Fixed32Value.java │ │ │ ├── Fixed64Value.java │ │ │ ├── FloatValue.java │ │ │ ├── Int32Value.java │ │ │ ├── Int64Value.java │ │ │ ├── Sfixed32Value.java │ │ │ ├── Sfixed64Value.java │ │ │ ├── Sint32Value.java │ │ │ ├── Sint64Value.java │ │ │ ├── StringValue.java │ │ │ ├── Uint32Value.java │ │ │ └── Uint64Value.java │ │ │ ├── serviceparser │ │ │ ├── BytecodeParser.java │ │ │ ├── ReflectServiceParser.java │ │ │ └── SrcServiceParser.java │ │ │ └── util │ │ │ ├── ClassVisitorUtil.java │ │ │ └── ProtoIdlUtil.java │ └── resources │ │ └── edap-idl │ │ ├── Empty.proto │ │ └── wrappers.proto │ └── test │ ├── java │ └── io │ │ └── edap │ │ └── protobuf │ │ └── idl │ │ └── test │ │ ├── BytecodeParseTest.java │ │ ├── MethodDescParserTest.java │ │ ├── ProtoIdlUtilTest.java │ │ ├── SignatureParserTest.java │ │ ├── SrcServiceParserTest.java │ │ ├── dto │ │ ├── AllType.java │ │ ├── EmptyMsg.java │ │ ├── OptionDemo.java │ │ ├── Order.java │ │ ├── OrderType.java │ │ └── ProductHasAnnotation.java │ │ └── service │ │ ├── DemoBaseTypeExtService.java │ │ ├── DemoBaseTypeService.java │ │ ├── DemoGenericParamService.java │ │ └── DemoNoRespService.java │ └── resources │ └── proto │ ├── test_javapackname_withjavaoption.proto │ └── test_javapackname_withoutjavaoption.proto ├── edap-protobuf-wire ├── pom.xml └── src │ ├── main │ └── java │ │ └── io │ │ └── edap │ │ └── protobuf │ │ ├── annotation │ │ ├── ProtoField.java │ │ └── ProtoMessage.java │ │ ├── builder │ │ ├── JavaBuildOption.java │ │ ├── JavaBuilder.java │ │ ├── ProtoBuilder.java │ │ ├── ProtoV2Builder.java │ │ └── ProtoV3Builder.java │ │ ├── codegen │ │ ├── IfaceGenerator.java │ │ └── JavaGenerator.java │ │ ├── internal │ │ └── CodeBuilder.java │ │ └── wire │ │ ├── Comment.java │ │ ├── Extend.java │ │ ├── Extensions.java │ │ ├── Field.java │ │ ├── MapField.java │ │ ├── Message.java │ │ ├── NameReserved.java │ │ ├── Oneof.java │ │ ├── Option.java │ │ ├── Proto.java │ │ ├── ProtoEnum.java │ │ ├── Reserved.java │ │ ├── Service.java │ │ ├── ServiceMethod.java │ │ ├── Syntax.java │ │ ├── TagReserved.java │ │ ├── WireFormat.java │ │ ├── WireType.java │ │ ├── exceptions │ │ └── ProtoParseException.java │ │ └── parser │ │ └── ProtoParser.java │ └── test │ ├── java │ └── io │ │ └── edap │ │ └── protobuf │ │ └── wire │ │ └── test │ │ ├── TestCodeBuilder.java │ │ ├── TestExtend.java │ │ ├── TestFieldInnerClazz.java │ │ ├── TestOption.java │ │ ├── TestParseEnum.java │ │ ├── TestParseMessage.java │ │ ├── TestParseOneof.java │ │ ├── TestParseService.java │ │ ├── TestParseSyntax.java │ │ ├── TestProto.java │ │ ├── TestProtoParser.java │ │ ├── TestReserved.java │ │ ├── TestWireFormat.java │ │ ├── TestWireType.java │ │ └── javabuilder │ │ ├── AbstractTest.java │ │ ├── AllTypeBuilderTest.java │ │ ├── ListBoolBuilderTest.java │ │ ├── ListBytesBuilderTest.java │ │ ├── ListDoubleBuilderTest.java │ │ ├── ListEnumBuilderTest.java │ │ ├── ListFixed32BuilderTest.java │ │ ├── ListFixed64BuilderTest.java │ │ ├── ListFloatBuilderTest.java │ │ ├── ListInt32BuilderTest.java │ │ ├── ListInt64BuilderTest.java │ │ ├── ListMessageBuilderTest.java │ │ ├── ListSfixed32BuilderTest.java │ │ ├── ListSfixed64BuilderTest.java │ │ ├── ListSint32BuilderTest.java │ │ ├── ListSint64BuilderTest.java │ │ ├── ListStringBuilderTest.java │ │ ├── ListUint32BuilderTest.java │ │ ├── ListUint64BuilderTest.java │ │ ├── OneBoolBuilderTest.java │ │ ├── OneBytesBuilderTest.java │ │ ├── OneDoubleBuilderTest.java │ │ ├── OneEnumBuilderTest.java │ │ ├── OneFixed32BuilderTest.java │ │ ├── OneFixed64BuilderTest.java │ │ ├── OneFloatBuilderTest.java │ │ ├── OneInt32BuilderTest.java │ │ ├── OneInt64BuilderTest.java │ │ ├── OneMapBuilderTest.java │ │ ├── OneMessaeBuilderTest.java │ │ ├── OneSfixed32BuilderTest.java │ │ ├── OneSfixed64BuilderTest.java │ │ ├── OneSint32BuilderTest.java │ │ ├── OneSint64BuilderTest.java │ │ ├── OneStringBuilderTest.java │ │ ├── OneUint32BuilderTest.java │ │ └── OneUint64BuilderTest.java │ └── resources │ └── proto │ ├── all_type.proto │ ├── list_bool.proto │ ├── list_bytes.proto │ ├── list_double.proto │ ├── list_enum.proto │ ├── list_fixed32.proto │ ├── list_fixed64.proto │ ├── list_float.proto │ ├── list_int32.proto │ ├── list_int64.proto │ ├── list_message.proto │ ├── list_sfixed32.proto │ ├── list_sfixed64.proto │ ├── list_sint32.proto │ ├── list_sint64.proto │ ├── list_string.proto │ ├── list_uint32.proto │ ├── list_uint64.proto │ ├── one_bool.proto │ ├── one_bool_field_comment1.proto │ ├── one_bool_field_comment2.proto │ ├── one_bytes.proto │ ├── one_double.proto │ ├── one_enum.proto │ ├── one_fixed32.proto │ ├── one_fixed64.proto │ ├── one_float.proto │ ├── one_int32.proto │ ├── one_int32_javatype.proto │ ├── one_int64.proto │ ├── one_int64_javatype.proto │ ├── one_int64_localdate.proto │ ├── one_int64_localdatetime.proto │ ├── one_map.proto │ ├── one_message.proto │ ├── one_sfixed32.proto │ ├── one_sfixed64.proto │ ├── one_sint32.proto │ ├── one_sint64.proto │ ├── one_string.proto │ ├── one_uint32.proto │ └── one_uint64.proto ├── edap-protobuf ├── README.md ├── pom.xml └── src │ ├── main │ └── java │ │ └── io │ │ └── edap │ │ └── protobuf │ │ ├── AbstractDecoder.java │ │ ├── AbstractEncoder.java │ │ ├── CodecThreadLocalGernerator.java │ │ ├── EncodeException.java │ │ ├── MapEntryGenerator.java │ │ ├── ProtoBuf.java │ │ ├── ProtoBufCodecRegister.java │ │ ├── ProtoBufDecoder.java │ │ ├── ProtoBufDecoderGenerator.java │ │ ├── ProtoBufEncoder.java │ │ ├── ProtoBufEncoderGenerator.java │ │ ├── ProtoBufEnum.java │ │ ├── ProtoBufException.java │ │ ├── ProtoBufReader.java │ │ ├── ProtoBufWriter.java │ │ ├── ProtoPersister.java │ │ ├── ext │ │ ├── AnyCodec.java │ │ ├── ExtCodec.java │ │ └── codec │ │ │ ├── ArrayBoolCodec.java │ │ │ ├── ArrayBoolObjCodec.java │ │ │ ├── ArrayByteCodec.java │ │ │ ├── ArrayCharCodec.java │ │ │ ├── ArrayDoubleCodec.java │ │ │ ├── ArrayDoubleObjCodec.java │ │ │ ├── ArrayFloatCodec.java │ │ │ ├── ArrayFloatObjCodec.java │ │ │ ├── ArrayIntCodec.java │ │ │ ├── ArrayIntegerCodec.java │ │ │ ├── ArrayListCodec.java │ │ │ ├── ArrayLongCodec.java │ │ │ ├── ArrayLongObjCodec.java │ │ │ ├── ArrayObjectCodec.java │ │ │ ├── ArrayStringCodec.java │ │ │ ├── BigDecimalCodec.java │ │ │ ├── BigIntegerCodec.java │ │ │ ├── BoolCodec.java │ │ │ ├── CalendarCodec.java │ │ │ ├── ClassCodec.java │ │ │ ├── DateCodec.java │ │ │ ├── DoubleCodec.java │ │ │ ├── FloatCodec.java │ │ │ ├── HashMapCodec.java │ │ │ ├── IntegerCodec.java │ │ │ ├── LocalDateCodec.java │ │ │ ├── LocalDateTimeCodec.java │ │ │ ├── LocalTimeCodec.java │ │ │ ├── LongCodec.java │ │ │ ├── MessageCodec.java │ │ │ ├── NullCodec.java │ │ │ └── StringCodec.java │ │ ├── internal │ │ ├── GeneratorClassInfo.java │ │ ├── PbField.java │ │ └── ProtoBufOut.java │ │ ├── model │ │ ├── MessageInfo.java │ │ └── ProtoTypeInfo.java │ │ ├── persisters │ │ └── FileProtoPersister.java │ │ ├── reader │ │ ├── AbstractReader.java │ │ └── ByteArrayReader.java │ │ ├── util │ │ ├── ProtoAsmUtil.java │ │ ├── ProtoTagComparator.java │ │ └── ProtoUtil.java │ │ └── writer │ │ ├── AbstractWriter.java │ │ ├── FastProtoBufWriter.java │ │ ├── StandardProtoBufWriter.java │ │ └── StandardReverseWriter.java │ └── test │ ├── java │ └── io │ │ └── edap │ │ └── protobuf │ │ └── test │ │ ├── TestUtil.java │ │ ├── User.java │ │ ├── ext │ │ ├── TestExtCodec.java │ │ ├── TestFieldObject.java │ │ └── TestMsgGeneric.java │ │ ├── message │ │ ├── ext │ │ │ ├── ComplexModel.java │ │ │ ├── FieldObject.java │ │ │ ├── Person.java │ │ │ └── Point.java │ │ └── v3 │ │ │ ├── AllType.java │ │ │ ├── AllTypeNoAccess.java │ │ │ ├── AllTypeOuterClass.java │ │ │ ├── AllTypeUnboxed.java │ │ │ ├── AllTypeUnboxedNoAccess.java │ │ │ ├── ArrayBool.java │ │ │ ├── ArrayBoolNoAccess.java │ │ │ ├── ArrayBoolUnboxed.java │ │ │ ├── ArrayBoolUnboxedNoAccess.java │ │ │ ├── ArrayDouble.java │ │ │ ├── ArrayDoubleNoAccess.java │ │ │ ├── ArrayDoubleUnboxed.java │ │ │ ├── ArrayDoubleUnboxedNoAccess.java │ │ │ ├── ArrayEnum.java │ │ │ ├── ArrayEnumNoAccess.java │ │ │ ├── ArrayFixed32.java │ │ │ ├── ArrayFixed32NoAccess.java │ │ │ ├── ArrayFixed32Unboxed.java │ │ │ ├── ArrayFixed32UnboxedNoAccess.java │ │ │ ├── ArrayFixed64.java │ │ │ ├── ArrayFixed64NoAccess.java │ │ │ ├── ArrayFixed64Unboxed.java │ │ │ ├── ArrayFixed64UnboxedNoAccess.java │ │ │ ├── ArrayFloat.java │ │ │ ├── ArrayFloatNoAccess.java │ │ │ ├── ArrayFloatUnboxed.java │ │ │ ├── ArrayFloatUnboxedNoAccess.java │ │ │ ├── ArrayInt32.java │ │ │ ├── ArrayInt32NoAccess.java │ │ │ ├── ArrayInt32Unboxed.java │ │ │ ├── ArrayInt32UnboxedNoAccess.java │ │ │ ├── ArrayInt64.java │ │ │ ├── ArrayInt64NoAccess.java │ │ │ ├── ArrayInt64Unboxed.java │ │ │ ├── ArrayInt64UnboxedNoAccess.java │ │ │ ├── ArrayMessage.java │ │ │ ├── ArrayMessageNoAccess.java │ │ │ ├── ArrayProtoEnum.java │ │ │ ├── ArrayProtoEnumNoAccess.java │ │ │ ├── ArraySfixed32.java │ │ │ ├── ArraySfixed32NoAccess.java │ │ │ ├── ArraySfixed32Unboxed.java │ │ │ ├── ArraySfixed32UnboxedNoAccess.java │ │ │ ├── ArraySfixed64.java │ │ │ ├── ArraySfixed64NoAccess.java │ │ │ ├── ArraySfixed64Unboxed.java │ │ │ ├── ArraySfixed64UnboxedNoAccess.java │ │ │ ├── ArraySint32.java │ │ │ ├── ArraySint32NoAccess.java │ │ │ ├── ArraySint32Unboxed.java │ │ │ ├── ArraySint32UnboxedNoAccess.java │ │ │ ├── ArraySint64.java │ │ │ ├── ArraySint64NoAccess.java │ │ │ ├── ArraySint64Unboxed.java │ │ │ ├── ArraySint64UnboxedNoAccess.java │ │ │ ├── ArrayString.java │ │ │ ├── ArrayStringNoAccess.java │ │ │ ├── ArrayUint32.java │ │ │ ├── ArrayUint32NoAccess.java │ │ │ ├── ArrayUint32Unboxed.java │ │ │ ├── ArrayUint32UnboxedNoAccess.java │ │ │ ├── ArrayUint64.java │ │ │ ├── ArrayUint64NoAccess.java │ │ │ ├── ArrayUint64Unboxed.java │ │ │ ├── ArrayUint64UnboxedNoAccess.java │ │ │ ├── Corpus.java │ │ │ ├── ListBool.java │ │ │ ├── ListBoolNoAccess.java │ │ │ ├── ListBoolOuterClass.java │ │ │ ├── ListBytes.java │ │ │ ├── ListBytesNoAccess.java │ │ │ ├── ListBytesOuterClass.java │ │ │ ├── ListDouble.java │ │ │ ├── ListDoubleNoAccess.java │ │ │ ├── ListDoubleOuterClass.java │ │ │ ├── ListEnum.java │ │ │ ├── ListEnumNoAccess.java │ │ │ ├── ListEnumOuterClass.java │ │ │ ├── ListFixed32.java │ │ │ ├── ListFixed32NoAccess.java │ │ │ ├── ListFixed32OuterClass.java │ │ │ ├── ListFixed64.java │ │ │ ├── ListFixed64NoAccess.java │ │ │ ├── ListFixed64OuterClass.java │ │ │ ├── ListFloat.java │ │ │ ├── ListFloatNoAccess.java │ │ │ ├── ListFloatOuterClass.java │ │ │ ├── ListInt32.java │ │ │ ├── ListInt32NoAccess.java │ │ │ ├── ListInt32OuterClass.java │ │ │ ├── ListInt64.java │ │ │ ├── ListInt64NoAccess.java │ │ │ ├── ListInt64OuterClass.java │ │ │ ├── ListMessage.java │ │ │ ├── ListMessageNoAccess.java │ │ │ ├── ListMessageOuterClass.java │ │ │ ├── ListProtoEnum.java │ │ │ ├── ListProtoEnumNoAccess.java │ │ │ ├── ListSfixed32.java │ │ │ ├── ListSfixed32NoAccess.java │ │ │ ├── ListSfixed32OuterClass.java │ │ │ ├── ListSfixed64.java │ │ │ ├── ListSfixed64NoAccess.java │ │ │ ├── ListSfixed64OuterClass.java │ │ │ ├── ListSint32.java │ │ │ ├── ListSint32NoAccess.java │ │ │ ├── ListSint32OuterClass.java │ │ │ ├── ListSint64.java │ │ │ ├── ListSint64NoAccess.java │ │ │ ├── ListSint64OuterClass.java │ │ │ ├── ListString.java │ │ │ ├── ListStringNoAccess.java │ │ │ ├── ListStringOuterClass.java │ │ │ ├── ListUint32.java │ │ │ ├── ListUint32NoAccess.java │ │ │ ├── ListUint32OuterClass.java │ │ │ ├── ListUint64.java │ │ │ ├── ListUint64NoAccess.java │ │ │ ├── ListUint64OuterClass.java │ │ │ ├── OneBool.java │ │ │ ├── OneBoolNoAccess.java │ │ │ ├── OneBoolOuterClass.java │ │ │ ├── OneBoolUnboxed.java │ │ │ ├── OneBoolUnboxedNoAccess.java │ │ │ ├── OneBytes.java │ │ │ ├── OneBytesNoAccess.java │ │ │ ├── OneBytesOuterClass.java │ │ │ ├── OneDouble.java │ │ │ ├── OneDoubleNoAccess.java │ │ │ ├── OneDoubleOuterClass.java │ │ │ ├── OneDoubleUnboxed.java │ │ │ ├── OneDoubleUnboxedNoAccess.java │ │ │ ├── OneEnum.java │ │ │ ├── OneEnumNoAccess.java │ │ │ ├── OneEnumOuterClass.java │ │ │ ├── OneFixed32.java │ │ │ ├── OneFixed32NoAccess.java │ │ │ ├── OneFixed32OuterClass.java │ │ │ ├── OneFixed32Unboxed.java │ │ │ ├── OneFixed32UnboxedNoAccess.java │ │ │ ├── OneFixed64.java │ │ │ ├── OneFixed64NoAccess.java │ │ │ ├── OneFixed64OuterClass.java │ │ │ ├── OneFixed64Unboxed.java │ │ │ ├── OneFixed64UnboxedNoAccess.java │ │ │ ├── OneFloat.java │ │ │ ├── OneFloatNoAccess.java │ │ │ ├── OneFloatOuterClass.java │ │ │ ├── OneFloatUnboxed.java │ │ │ ├── OneFloatUnboxedNoAccess.java │ │ │ ├── OneInt32.java │ │ │ ├── OneInt32NoAccess.java │ │ │ ├── OneInt32OuterClass.java │ │ │ ├── OneInt32Unboxed.java │ │ │ ├── OneInt32UnboxedNoAccess.java │ │ │ ├── OneInt64.java │ │ │ ├── OneInt64NoAccess.java │ │ │ ├── OneInt64OuterClass.java │ │ │ ├── OneInt64Unboxed.java │ │ │ ├── OneInt64UnboxedNoAccess.java │ │ │ ├── OneMap.java │ │ │ ├── OneMapNoAccess.java │ │ │ ├── OneMapOuterClass.java │ │ │ ├── OneMessage.java │ │ │ ├── OneMessageNoAccess.java │ │ │ ├── OneMessageOuterClass.java │ │ │ ├── OneProtoEnum.java │ │ │ ├── OneProtoEnumNoAccess.java │ │ │ ├── OneSfixed32.java │ │ │ ├── OneSfixed32NoAccess.java │ │ │ ├── OneSfixed32OuterClass.java │ │ │ ├── OneSfixed32Unboxed.java │ │ │ ├── OneSfixed32UnboxedNoAccess.java │ │ │ ├── OneSfixed64.java │ │ │ ├── OneSfixed64NoAccess.java │ │ │ ├── OneSfixed64OuterClass.java │ │ │ ├── OneSfixed64Unboxed.java │ │ │ ├── OneSfixed64UnboxedNoAccess.java │ │ │ ├── OneSint32.java │ │ │ ├── OneSint32NoAccess.java │ │ │ ├── OneSint32OuterClass.java │ │ │ ├── OneSint32Unboxed.java │ │ │ ├── OneSint32UnboxedNoAccess.java │ │ │ ├── OneSint64.java │ │ │ ├── OneSint64NoAccess.java │ │ │ ├── OneSint64OuterClass.java │ │ │ ├── OneSint64Unboxed.java │ │ │ ├── OneSint64UnboxedNoAccess.java │ │ │ ├── OneString.java │ │ │ ├── OneStringNoAccess.java │ │ │ ├── OneStringOuterClass.java │ │ │ ├── OneUint32.java │ │ │ ├── OneUint32NoAccess.java │ │ │ ├── OneUint32OuterClass.java │ │ │ ├── OneUint32Unboxed.java │ │ │ ├── OneUint32UnboxedNoAccess.java │ │ │ ├── OneUint64.java │ │ │ ├── OneUint64NoAccess.java │ │ │ ├── OneUint64OuterClass.java │ │ │ ├── OneUint64Unboxed.java │ │ │ ├── OneUint64UnboxedNoAccess.java │ │ │ ├── Proj.java │ │ │ ├── Project.java │ │ │ └── ProtoEnumCorpus.java │ │ └── v3 │ │ ├── TestAllType.java │ │ ├── TestListBool.java │ │ ├── TestListBytes.java │ │ ├── TestListDouble.java │ │ ├── TestListEnum.java │ │ ├── TestListFixed32.java │ │ ├── TestListFixed64.java │ │ ├── TestListFloat.java │ │ ├── TestListInt32.java │ │ ├── TestListInt64.java │ │ ├── TestListMessage.java │ │ ├── TestListProtoEnum.java │ │ ├── TestListSfixed32.java │ │ ├── TestListSfixed64.java │ │ ├── TestListSint32.java │ │ ├── TestListSint64.java │ │ ├── TestListString.java │ │ ├── TestListUint32.java │ │ ├── TestListUint64.java │ │ ├── TestNullValue.java │ │ ├── TestOneBool.java │ │ ├── TestOneBytes.java │ │ ├── TestOneDouble.java │ │ ├── TestOneEnum.java │ │ ├── TestOneFixed32.java │ │ ├── TestOneFixed64.java │ │ ├── TestOneFloat.java │ │ ├── TestOneInt32.java │ │ ├── TestOneInt64.java │ │ ├── TestOneMap.java │ │ ├── TestOneMessage.java │ │ ├── TestOneProtoEnum.java │ │ ├── TestOneSfixed32.java │ │ ├── TestOneSfixed64.java │ │ ├── TestOneSint32.java │ │ ├── TestOneSint64.java │ │ ├── TestOneString.java │ │ ├── TestOneUint32.java │ │ ├── TestOneUint64.java │ │ └── TestProtoBuf.java │ └── resources │ └── proto3 │ ├── all_type.proto │ ├── list_bool.proto │ ├── list_bytes.proto │ ├── list_double.proto │ ├── list_enum.proto │ ├── list_fixed32.proto │ ├── list_fixed64.proto │ ├── list_float.proto │ ├── list_int32.proto │ ├── list_int64.proto │ ├── list_message.proto │ ├── list_sfixed32.proto │ ├── list_sfixed64.proto │ ├── list_sint32.proto │ ├── list_sint64.proto │ ├── list_string.proto │ ├── list_uint32.proto │ ├── list_uint64.proto │ ├── one_bool.proto │ ├── one_bytes.proto │ ├── one_double.proto │ ├── one_enum.proto │ ├── one_fixed32.proto │ ├── one_fixed64.proto │ ├── one_float.proto │ ├── one_int32.proto │ ├── one_int64.proto │ ├── one_map.proto │ ├── one_message.proto │ ├── one_sfixed32.proto │ ├── one_sfixed64.proto │ ├── one_sint32.proto │ ├── one_sint64.proto │ ├── one_string.proto │ ├── one_uint32.proto │ └── one_uint64.proto ├── images ├── edap-container.svg └── edap.svg └── pom.xml /README.md: -------------------------------------------------------------------------------- 1 | ## edap 2 | 3 | edap(easy distributed application platform) 易用的分布式应用平台。 4 | 5 | 目的打造成为一个跨服务微服务容器架构,以易用,极致的性能作为开发目标。 6 | 7 | 容器架构图如下: 8 | 9 | ![Segmentfault](./images/edap-container.svg) 10 | 11 | 容器可以同时支持RESTful接口以RPC(socket)的两种方式调用,服务描述使用proto文件进行定义。 12 | 13 | 大体的使用场景如下: 14 | 15 | ![Segmentfault](./images/edap.svg) -------------------------------------------------------------------------------- /edap-bean-convert/src/main/java/io/edap/beanconvert/Convertor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.beanconvert; 18 | 19 | /** 20 | * 定义Bean转换接口 21 | * @param 原始Bean的class 22 | * @param 目标Bean的Class 23 | */ 24 | @FunctionalInterface 25 | public interface Convertor { 26 | 27 | /** 28 | * 将一个javabean转换成另外一个javabean 29 | * @param orignal 需要被转换的javabean对象 30 | * @return 返回被转换的对象 31 | */ 32 | D convert(O orignal); 33 | 34 | } -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/CarType.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test; 2 | 3 | public enum CarType { 4 | SEDAN 5 | } 6 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/CarTypeToStringConvertor.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test; 2 | 3 | import io.edap.beanconvert.AbstractConvertor; 4 | import io.edap.beanconvert.Convertor; 5 | 6 | public class CarTypeToStringConvertor extends AbstractConvertor implements Convertor { 7 | @Override 8 | public String convert(CarType orignal) { 9 | return orignal.name(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/IntToStringConvertor.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test; 2 | 3 | import io.edap.beanconvert.Convertor; 4 | 5 | public class IntToStringConvertor implements Convertor { 6 | @Override 7 | public String convert(Integer orignal) { 8 | return String.valueOf(orignal); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/CarApiDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | public class CarApiDTO { 4 | 5 | private int make; 6 | private int seatCount; 7 | private String type; 8 | 9 | public int getMake() { 10 | return make; 11 | } 12 | 13 | public void setMake(int make) { 14 | this.make = make; 15 | } 16 | 17 | public int getSeatCount() { 18 | return seatCount; 19 | } 20 | 21 | public void setSeatCount(int seatCount) { 22 | this.seatCount = seatCount; 23 | } 24 | 25 | public String getType() { 26 | return type; 27 | } 28 | 29 | public void setType(String type) { 30 | this.type = type; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/CarDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | public class CarDTO { 4 | private String make; 5 | private int seatCount; 6 | private String type; 7 | 8 | public String getMake() { 9 | return make; 10 | } 11 | 12 | public void setMake(String make) { 13 | this.make = make; 14 | } 15 | 16 | public int getSeatCount() { 17 | return seatCount; 18 | } 19 | 20 | public void setSeatCount(int seatCount) { 21 | this.seatCount = seatCount; 22 | } 23 | 24 | public String getType() { 25 | return type; 26 | } 27 | 28 | public void setType(String type) { 29 | this.type = type; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoBoxedNoGetSetDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | public class DemoBoxedNoGetSetDTO { 4 | public Integer field1; 5 | public Long field2; 6 | public Float field3; 7 | public Short field4; 8 | public Double field5; 9 | public Boolean field6; 10 | public Byte field7; 11 | public Character field8; 12 | } 13 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoListExtendFieldDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | import io.edap.beanconvert.test.vo.Car; 4 | import io.edap.beanconvert.test.vo.SportCar; 5 | 6 | import java.util.List; 7 | 8 | public class DemoListExtendFieldDTO { 9 | private String strField; 10 | private List listField; 11 | 12 | public String getStrField() { 13 | return strField; 14 | } 15 | 16 | public void setStrField(String strField) { 17 | this.strField = strField; 18 | } 19 | 20 | public List getListField() { 21 | return listField; 22 | } 23 | 24 | public void setListField(List listField) { 25 | this.listField = listField; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoListExtendFieldErrorDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | import io.edap.beanconvert.test.vo.Car; 4 | 5 | import java.util.List; 6 | 7 | public class DemoListExtendFieldErrorDTO { 8 | private String strField; 9 | private List listField; 10 | 11 | public String getStrField() { 12 | return strField; 13 | } 14 | 15 | public void setStrField(String strField) { 16 | this.strField = strField; 17 | } 18 | 19 | public List getListField() { 20 | return listField; 21 | } 22 | 23 | public void setListField(List listField) { 24 | this.listField = listField; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoListFieldDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListFieldDTO { 6 | private String strField; 7 | private List listField; 8 | 9 | public String getStrField() { 10 | return strField; 11 | } 12 | 13 | public void setStrField(String strField) { 14 | this.strField = strField; 15 | } 16 | 17 | public List getListField() { 18 | return listField; 19 | } 20 | 21 | public void setListField(List listField) { 22 | this.listField = listField; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoListObjFieldDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListObjFieldDTO { 6 | 7 | private String strField; 8 | private List listField; 9 | 10 | public String getStrField() { 11 | return strField; 12 | } 13 | 14 | public void setStrField(String strField) { 15 | this.strField = strField; 16 | } 17 | 18 | public List getListField() { 19 | return listField; 20 | } 21 | 22 | public void setListField(List listField) { 23 | this.listField = listField; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoNoGetSetDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | public class DemoNoGetSetDTO { 4 | public int field1; 5 | public long field2; 6 | public float field3; 7 | public short field4; 8 | public double field5; 9 | public boolean field6; 10 | public byte field7; 11 | public char field8; 12 | } 13 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/dto/DemoStringFieldDTO.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.dto; 2 | 3 | public class DemoStringFieldDTO { 4 | public String field1; 5 | public String field2; 6 | public String field3; 7 | public String field4; 8 | public String field5; 9 | public String field6; 10 | public String field7; 11 | public String field8; 12 | } 13 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/BmwCar.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | public class BmwCar extends SportCar { 4 | } 5 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/Car.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | import io.edap.beanconvert.test.CarType; 4 | 5 | public class Car { 6 | 7 | private String make; 8 | private int numberOfSeats; 9 | private CarType type; 10 | 11 | public String getMake() { 12 | return make; 13 | } 14 | 15 | public void setMake(String make) { 16 | this.make = make; 17 | } 18 | 19 | public int getNumberOfSeats() { 20 | return numberOfSeats; 21 | } 22 | 23 | public void setNumberOfSeats(int numberOfSeats) { 24 | this.numberOfSeats = numberOfSeats; 25 | } 26 | 27 | public CarType getType() { 28 | return type; 29 | } 30 | 31 | public void setType(CarType type) { 32 | this.type = type; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoBoxedNoGetSet.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | public class DemoBoxedNoGetSet { 4 | public Integer field1; 5 | public Long field2; 6 | public Float field3; 7 | public Short field4; 8 | public Double field5; 9 | public Boolean field6; 10 | public Byte field7; 11 | public Character field8; 12 | } 13 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoListExtendField.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListExtendField { 6 | 7 | private String strField; 8 | private List listField; 9 | 10 | public String getStrField() { 11 | return strField; 12 | } 13 | 14 | public void setStrField(String strField) { 15 | this.strField = strField; 16 | } 17 | 18 | public List getListField() { 19 | return listField; 20 | } 21 | 22 | public void setListField(List listField) { 23 | this.listField = listField; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoListExtendThreeLevelField.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListExtendThreeLevelField { 6 | 7 | private String strField; 8 | private List listField; 9 | 10 | public String getStrField() { 11 | return strField; 12 | } 13 | 14 | public void setStrField(String strField) { 15 | this.strField = strField; 16 | } 17 | 18 | public List getListField() { 19 | return listField; 20 | } 21 | 22 | public void setListField(List listField) { 23 | this.listField = listField; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoListField.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListField { 6 | private String strField; 7 | private List listField; 8 | 9 | public String getStrField() { 10 | return strField; 11 | } 12 | 13 | public void setStrField(String strField) { 14 | this.strField = strField; 15 | } 16 | 17 | public List getListField() { 18 | return listField; 19 | } 20 | 21 | public void setListField(List listField) { 22 | this.listField = listField; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoListObjField.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | import java.util.List; 4 | 5 | public class DemoListObjField { 6 | 7 | private String strField; 8 | private List listField; 9 | 10 | public String getStrField() { 11 | return strField; 12 | } 13 | 14 | public void setStrField(String strField) { 15 | this.strField = strField; 16 | } 17 | 18 | public List getListField() { 19 | return listField; 20 | } 21 | 22 | public void setListField(List listField) { 23 | this.listField = listField; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/DemoNoGetSet.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | public class DemoNoGetSet { 4 | public int field1; 5 | public long field2; 6 | public float field3; 7 | public short field4; 8 | public double field5; 9 | public boolean field6; 10 | public byte field7; 11 | public char field8; 12 | } 13 | -------------------------------------------------------------------------------- /edap-bean-convert/src/test/java/io/edap/beanconvert/test/vo/SportCar.java: -------------------------------------------------------------------------------- 1 | package io.edap.beanconvert.test.vo; 2 | 3 | public class SportCar extends Car { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /edap-common/src/main/java/io/edap/io/BufWriter.java: -------------------------------------------------------------------------------- 1 | package io.edap.io; 2 | 3 | import io.edap.buffer.FastBuf; 4 | 5 | import java.io.IOException; 6 | import java.io.OutputStream; 7 | 8 | /** 9 | * 输出到FastBuf的Writer接口 10 | * @author : luysh@yonyou.com 11 | * @date : 2020/11/10 12 | */ 13 | public interface BufWriter { 14 | /** 15 | * 数据写入到FastBuf中,返回成功写入FastBuf的字节数量 16 | * @param buf FastBuf的对象 17 | * @return 18 | */ 19 | int toFastBuf(FastBuf buf); 20 | 21 | /** 22 | * 该Writer数据的大小 23 | * @return 24 | */ 25 | int size(); 26 | 27 | /** 28 | * 设置写入FastBuf的下标 29 | * @param wPos 30 | */ 31 | void setWPos(int wPos); 32 | 33 | void toStream(OutputStream stream) throws IOException; 34 | 35 | byte[] toByteArray(); 36 | } 37 | -------------------------------------------------------------------------------- /edap-common/src/main/java/io/edap/util/internal/GeneratorClassInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.util.internal; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * ASM框架生成的类信息 23 | */ 24 | public class GeneratorClassInfo { 25 | public String clazzName; 26 | public byte [] clazzBytes; 27 | public List inners; 28 | } -------------------------------------------------------------------------------- /edap-protobuf-idl/src/main/java/io/edap/protobuf/idl/consts/ProtoIdlConsts.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.consts; 18 | 19 | public class ProtoIdlConsts { 20 | 21 | public static final String COMBINE_PARAM_PACKAGE_NAME = "combineparam"; 22 | 23 | public static final String COMBINE_PARAM_NAME_PREFIX = "Combine_"; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/main/java/io/edap/protobuf/idl/model/IdlJavaType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.model; 18 | 19 | public interface IdlJavaType { 20 | String binaryName(); 21 | String canonicalName(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/main/java/io/edap/protobuf/idl/model/IdlParameterizedType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.model; 18 | 19 | import io.edap.protobuf.idl.model.IdlJavaType; 20 | 21 | import java.lang.reflect.ParameterizedType; 22 | 23 | public interface IdlParameterizedType extends IdlJavaType { 24 | 25 | IdlJavaType rawType(); 26 | IdlJavaType[] ActualTypeArgs(); 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/main/java/io/edap/protobuf/idl/proto/Empty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.proto; 18 | 19 | public class Empty { 20 | } 21 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/main/resources/edap-idl/Empty.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package io.edap.protobuf.idl.proto; 5 | 6 | option java_package = "io.edap.protobuf.idl.proto"; 7 | 8 | message Empty { 9 | } -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/dto/EmptyMsg.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.dto; 18 | 19 | public class EmptyMsg { 20 | } 21 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/dto/OptionDemo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.dto; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | import java.time.LocalDateTime; 23 | 24 | public class OptionDemo { 25 | 26 | @ProtoField(tag = 1, type = Field.Type.INT64, options = {"javatype = java.time.LocalDateTime"}) 27 | private LocalDateTime createTime; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/dto/OrderType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.dto; 18 | 19 | public enum OrderType { 20 | SINGLE, 21 | MIX 22 | } 23 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/service/DemoBaseTypeExtService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.service; 18 | 19 | import java.util.Map; 20 | 21 | /** 22 | * 基础类型入参出参的扩展服务用例 23 | */ 24 | public interface DemoBaseTypeExtService extends DemoBaseTypeService { 25 | Map getMapResult(); 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/service/DemoBaseTypeService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.service; 18 | 19 | /** 20 | * 基础类型入参出参的服务用例 21 | */ 22 | public interface DemoBaseTypeService { 23 | /** 24 | * byte入参的函数 25 | * @param param byte的参数类型 26 | * @return 返回byte类型的值 27 | */ 28 | byte methodIByte(byte param); 29 | int methodInt(int param); 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/java/io/edap/protobuf/idl/test/service/DemoNoRespService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.idl.test.service; 18 | 19 | import io.edap.protobuf.idl.test.dto.Order; 20 | 21 | public interface DemoNoRespService { 22 | 23 | void noResponseAndArg(); 24 | void noResponse(Order order); 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/resources/proto/test_javapackname_withjavaoption.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_outer_classname = "Ponycopter"; 7 | option java_package = "io.edap.protobuf.test.message.v3"; 8 | 9 | message ListDouble { 10 | repeated double d = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf-idl/src/test/resources/proto/test_javapackname_withoutjavaoption.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | message ListDouble { 7 | repeated double d = 1; 8 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | edap 7 | io.edap 8 | 0.1-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | edap-protobuf-wire 13 | 14 | 15 | 16 | 17 | org.junit.jupiter 18 | junit-jupiter 19 | test 20 | 21 | 22 | -------------------------------------------------------------------------------- /edap-protobuf-wire/src/main/java/io/edap/protobuf/builder/ProtoV2Builder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.builder; 18 | 19 | import io.edap.protobuf.wire.Proto; 20 | 21 | /** 22 | * protocol buffer v2版本构建器 23 | */ 24 | public class ProtoV2Builder extends ProtoBuilder { 25 | 26 | public ProtoV2Builder(Proto proto) { 27 | super(proto); 28 | } 29 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/main/java/io/edap/protobuf/wire/exceptions/ProtoParseException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.wire.exceptions; 18 | 19 | /** 20 | * proto文件解析异常类 21 | */ 22 | public class ProtoParseException extends Exception { 23 | 24 | public ProtoParseException(String error) { 25 | super(error); 26 | } 27 | 28 | public ProtoParseException(String error, Throwable e) { 29 | super(error, e); 30 | } 31 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/all_type.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | import "one_enum.proto"; 7 | import "one_map.proto"; 8 | import "one_message.proto"; 9 | option java_package = "io.edap.protobuf.test.message.v3"; 10 | //option java_outer_classname = "MessageOuter"; 11 | 12 | message AllType { 13 | bool field1 = 1; 14 | bytes field2 = 2; 15 | double field3 = 3; 16 | Corpus field4 = 4; 17 | fixed32 field5 = 5; 18 | fixed64 field6 = 6; 19 | float field7 = 7; 20 | int32 field8 = 8; 21 | int64 field9 = 9; 22 | map field10 = 10; 23 | Proj field11 = 11; 24 | sfixed32 field12 = 12; 25 | sfixed64 field13 = 13; 26 | sint32 field14 = 14; 27 | sint64 field15 = 15; 28 | string field16 = 16; 29 | uint32 field17 = 17; 30 | uint64 field18 = 18; 31 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_bool.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListBool { 9 | repeated bool value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_bytes.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListBytes { 9 | repeated bytes value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_double.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListDouble { 9 | repeated double d = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_enum.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | import "one_enum.proto"; 7 | 8 | option java_package = "io.edap.protobuf.test.message.v3"; 9 | 10 | 11 | message ListEnum { 12 | repeated Corpus corpus = 1; 13 | } 14 | -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_fixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListFixed32 { 9 | repeated fixed32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_fixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListFixed64 { 9 | repeated fixed64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_float.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListFloat { 9 | repeated float f = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_int32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListInt32 { 9 | repeated int32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_int64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListInt64 { 9 | repeated int64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_message.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | import "one_message.proto"; 6 | 7 | option java_package = "io.edap.protobuf.test.message.v3"; 8 | 9 | message ListMessage { 10 | repeated Proj value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_sfixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListSfixed32 { 9 | repeated sfixed32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_sfixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListSfixed64 { 9 | repeated sfixed64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_sint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListSint32 { 9 | repeated sint32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_sint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListSint64 { 9 | repeated sint64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_string.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListString { 9 | repeated string value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_uint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message ListUint32 { 9 | repeated uint32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/list_uint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListUint64 { 10 | repeated uint64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_bool.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneBool { 9 | bool value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_bool_field_comment1.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneBoolFieldComment1 { 9 | // 第一行注释 10 | bool value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_bool_field_comment2.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneBoolFieldComment2 { 9 | // 第一行注释 10 | // 第二行注释 11 | bool value = 1; 12 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_bytes.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneBytes { 9 | bytes value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_double.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneDouble { 9 | double d = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_enum.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneEnum { 9 | Corpus corpus = 1; 10 | } 11 | 12 | 13 | enum Corpus { 14 | UNIVERSAL = 0; 15 | WEB = 1; 16 | IMAGES = 2; 17 | LOCAL = 3; 18 | NEWS = 4; 19 | PRODUCTS = 5; 20 | VIDEO = 6; 21 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_fixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneFixed32 { 9 | fixed32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_fixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneFixed64 { 9 | fixed64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_float.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneFloat { 9 | float f = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt32 { 9 | int32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int32_javatype.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt32JavaType { 9 | int32 value = 1[java_type = "Integer"]; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt64 { 9 | int64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int64_javatype.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt64JavaType { 9 | int64 value = 1[java_type = "java.time.LocalDateTime"]; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int64_localdate.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt64LocalDate { 9 | int64 value = 1[java_type = "LocalDate"]; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_int64_localdatetime.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneInt64LocalDateTime { 9 | int64 value = 1[java_type = "LocalDateTime"]; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_map.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneMap { 9 | map value = 1; 10 | } 11 | 12 | message Project { 13 | int64 id = 1; 14 | string name = 2; 15 | string repoPath = 3; 16 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_message.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneMessage { 9 | Proj value = 1; 10 | } 11 | 12 | message Proj { 13 | int64 id = 1; 14 | string name = 2; 15 | string repoPath = 3; 16 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_sfixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneSfixed32 { 9 | sfixed32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_sfixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneSfixed64 { 9 | sfixed64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_sint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneSint32 { 9 | sint32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_sint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneSint64 { 9 | sint64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_string.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneString { 9 | string value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_uint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneUint32 { 9 | uint32 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf-wire/src/test/resources/proto/one_uint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | 8 | message OneUint64 { 9 | uint64 value = 1; 10 | } -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/AbstractDecoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf; 18 | 19 | public abstract class AbstractDecoder { 20 | 21 | } -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/EncodeException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf; 18 | 19 | public class EncodeException extends Exception { 20 | 21 | public EncodeException() { 22 | super(); 23 | } 24 | 25 | public EncodeException(String msg, Exception e) { 26 | super(msg, e); 27 | } 28 | 29 | public EncodeException(Exception e) { 30 | super(e); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/ProtoBufEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf; 18 | 19 | /** 20 | * 定义Protobuf的枚举类型需要继承的接口,将value值作为序列化的int值, 21 | * 防止枚举项顺序调整导致的错乱问题 22 | */ 23 | public interface ProtoBufEnum { 24 | int getValue(); 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/ext/ExtCodec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.ext; 18 | 19 | import io.edap.protobuf.ProtoBufDecoder; 20 | import io.edap.protobuf.ProtoBufEncoder; 21 | 22 | /** 23 | * 扩展数据类型的编解码器接口 24 | */ 25 | public interface ExtCodec extends ProtoBufEncoder, ProtoBufDecoder { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/internal/GeneratorClassInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.internal; 18 | 19 | import java.util.List; 20 | 21 | public class GeneratorClassInfo { 22 | public String clazzName; 23 | public byte [] clazzBytes; 24 | public List inners; 25 | } -------------------------------------------------------------------------------- /edap-protobuf/src/main/java/io/edap/protobuf/util/ProtoTagComparator.java: -------------------------------------------------------------------------------- 1 | package io.edap.protobuf.util; 2 | 3 | import io.edap.protobuf.ProtoBuf; 4 | 5 | import java.util.Comparator; 6 | 7 | /** 8 | * Protobuf属性的信息排序的排序器 9 | * @author : luysh@yonyou.com 10 | * @date : 2020/5/10 11 | */ 12 | public class ProtoTagComparator implements Comparator { 13 | @Override 14 | public int compare(ProtoBuf.ProtoFieldInfo f1, ProtoBuf.ProtoFieldInfo f2) { 15 | if (f1.protoField.tag() > f2.protoField.tag()) { 16 | return 1; 17 | } else if (f1.protoField.tag() < f2.protoField.tag()) { 18 | return -1; 19 | } 20 | return 0; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/ext/ComplexModel.java: -------------------------------------------------------------------------------- 1 | package io.edap.protobuf.test.message.ext; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * @author : luysh@yonyou.com 7 | * @date : 2020/9/28 8 | */ 9 | public class ComplexModel { 10 | 11 | private Integer id; 12 | private Person person; 13 | private List points; 14 | 15 | public Integer getId() { 16 | return id; 17 | } 18 | 19 | public void setId(Integer id) { 20 | this.id = id; 21 | } 22 | 23 | public Person getPerson() { 24 | return person; 25 | } 26 | 27 | public void setPerson(Person person) { 28 | this.person = person; 29 | } 30 | 31 | public List getPoints() { 32 | return points; 33 | } 34 | 35 | public void setPoints(List points) { 36 | this.points = points; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/ext/Point.java: -------------------------------------------------------------------------------- 1 | package io.edap.protobuf.test.message.ext; 2 | 3 | public class Point { 4 | 5 | private int x; 6 | private int y; 7 | 8 | public int getX() { 9 | return x; 10 | } 11 | 12 | public void setX(int x) { 13 | this.x = x; 14 | } 15 | 16 | public int getY() { 17 | return y; 18 | } 19 | 20 | public void setY(int y) { 21 | this.y = y; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayBool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 布尔对象数组 21 | */ 22 | public class ArrayBool { 23 | 24 | public Boolean[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayBoolNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 布尔对象数组 21 | */ 22 | public class ArrayBoolNoAccess { 23 | 24 | private Boolean[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayBoolUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 布尔数组 21 | */ 22 | public class ArrayBoolUnboxed { 23 | 24 | public boolean[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayBoolUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 布尔数组,没有get和set方法 21 | */ 22 | public class ArrayBoolUnboxedNoAccess { 23 | 24 | private boolean[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayDouble.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * Double数组 21 | */ 22 | public class ArrayDouble { 23 | 24 | public Double[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayDoubleNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * Double数组 21 | */ 22 | public class ArrayDoubleNoAccess { 23 | 24 | private Double[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayDoubleUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * double数组 21 | */ 22 | public class ArrayDoubleUnboxed { 23 | 24 | public double[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayDoubleUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * double数组,没有get和set方法,属性为private 21 | */ 22 | public class ArrayDoubleUnboxedNoAccess { 23 | 24 | private double[] values; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 枚举数组 21 | */ 22 | public class ArrayEnum { 23 | public Corpus[] values; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 枚举数组,没有get和set方法,属性为private 21 | */ 22 | public class ArrayEnumNoAccess { 23 | private Corpus[] values; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed32的数组 24 | */ 25 | public class ArrayFixed32 { 26 | @ProtoField(tag = 1, type = Field.Type.FIXED32, cardinality = Field.Cardinality.REPEATED) 27 | public Integer[] values; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed32的数组 24 | */ 25 | public class ArrayFixed32NoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.FIXED32, cardinality = Field.Cardinality.REPEATED) 27 | private Integer[] values; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed32的数组,int为原始的int 24 | */ 25 | public class ArrayFixed32Unboxed { 26 | @ProtoField(tag = 1, type = Field.Type.FIXED32, cardinality = Field.Cardinality.REPEATED) 27 | public int[] values; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed32的数组,int为原始的int 24 | */ 25 | public class ArrayFixed32UnboxedNoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.FIXED32, cardinality = Field.Cardinality.REPEATED) 27 | private int[] values; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed64的数组 24 | */ 25 | public class ArrayFixed64 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64, cardinality = Field.Cardinality.REPEATED) 28 | public Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed64的数组 24 | */ 25 | public class ArrayFixed64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64, cardinality = Field.Cardinality.REPEATED) 28 | private Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFixed64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Fixed64的数组,属性为long基础类型 24 | */ 25 | public class ArrayFixed64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64, cardinality = Field.Cardinality.REPEATED) 28 | public long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFloat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | 20 | /** 21 | * Float数组 22 | */ 23 | public class ArrayFloat { 24 | public Float[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFloatNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | 20 | /** 21 | * Float数组 22 | */ 23 | public class ArrayFloatNoAccess { 24 | public Float[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFloatUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * float的数组 21 | */ 22 | public class ArrayFloatUnboxed { 23 | public float[] list; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayFloatUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * float的数组 21 | */ 22 | public class ArrayFloatUnboxedNoAccess { 23 | private float[] list; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int32数组 21 | */ 22 | public class ArrayInt32 { 23 | 24 | public Integer[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int32数组 21 | */ 22 | public class ArrayInt32NoAccess { 23 | 24 | private Integer[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int32数组,int为基础类型 21 | */ 22 | public class ArrayInt32Unboxed { 23 | public int[] list; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int32数组,int为基础类型 21 | */ 22 | public class ArrayInt32UnboxedNoAccess { 23 | private int[] list; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int64数组 21 | */ 22 | public class ArrayInt64 { 23 | 24 | public Long[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int64数组 21 | */ 22 | public class ArrayInt64NoAccess { 23 | 24 | private Long[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int64的数组,数据类型为long基础类型 21 | */ 22 | public class ArrayInt64Unboxed { 23 | 24 | public long[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayInt64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * int64的数组,数据类型为long基础类型 21 | */ 22 | public class ArrayInt64UnboxedNoAccess { 23 | 24 | private long[] list; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | 20 | /** 21 | * message数组 22 | */ 23 | public class ArrayMessage { 24 | 25 | public Proj[] list; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayMessageNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | 20 | /** 21 | * message数组 22 | */ 23 | public class ArrayMessageNoAccess { 24 | 25 | private Proj[] list; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayProtoEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 枚举数组 21 | */ 22 | public class ArrayProtoEnum { 23 | public ProtoEnumCorpus[] values; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayProtoEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 枚举数组,没有get和set方法,属性为private 21 | */ 22 | public class ArrayProtoEnumNoAccess { 23 | private ProtoEnumCorpus[] values; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Sfixed32的数组 24 | */ 25 | public class ArraySfixed32 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32, cardinality = Field.Cardinality.REPEATED) 28 | public Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * Sfixed32的数组 24 | */ 25 | public class ArraySfixed32NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32, cardinality = Field.Cardinality.REPEATED) 28 | private Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed32数组 24 | */ 25 | public class ArraySfixed32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32, cardinality = Field.Cardinality.REPEATED) 28 | public int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed32数组 24 | */ 25 | public class ArraySfixed32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32, cardinality = Field.Cardinality.REPEATED) 28 | private int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed64的数组 24 | */ 25 | public class ArraySfixed64 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64, cardinality = Field.Cardinality.REPEATED) 28 | public Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed64的数组 24 | */ 25 | public class ArraySfixed64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64, cardinality = Field.Cardinality.REPEATED) 28 | private Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed64的数组 24 | */ 25 | public class ArraySfixed64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64, cardinality = Field.Cardinality.REPEATED) 28 | public long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySfixed64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sfixed64的数组 24 | */ 25 | public class ArraySfixed64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64, cardinality = Field.Cardinality.REPEATED) 28 | private long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint32书序 24 | */ 25 | public class ArraySint32 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32, cardinality = Field.Cardinality.REPEATED) 28 | public Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint32数组 24 | */ 25 | public class ArraySint32NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32, cardinality = Field.Cardinality.REPEATED) 28 | private Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint32数组 24 | */ 25 | public class ArraySint32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32, cardinality = Field.Cardinality.REPEATED) 28 | public int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint32数组 24 | */ 25 | public class ArraySint32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32, cardinality = Field.Cardinality.REPEATED) 28 | public int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint64数组 24 | */ 25 | public class ArraySint64 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64, cardinality = Field.Cardinality.REPEATED) 28 | public Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint64数组 24 | */ 25 | public class ArraySint64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64, cardinality = Field.Cardinality.REPEATED) 28 | private Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint64数组 24 | */ 25 | public class ArraySint64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64, cardinality = Field.Cardinality.REPEATED) 28 | public long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArraySint64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * sint64数组 24 | */ 25 | public class ArraySint64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64, cardinality = Field.Cardinality.REPEATED) 28 | private long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * string数组 24 | */ 25 | public class ArrayString { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.STRING, cardinality = Field.Cardinality.REPEATED) 28 | public String[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayStringNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * string数组 24 | */ 25 | public class ArrayStringNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.STRING, cardinality = Field.Cardinality.REPEATED) 28 | private String[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint32数组 24 | */ 25 | public class ArrayUint32 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT32, cardinality = Field.Cardinality.REPEATED) 28 | public Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint32数组 24 | */ 25 | public class ArrayUint32NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT32, cardinality = Field.Cardinality.REPEATED) 28 | private Integer[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint32数组 24 | */ 25 | public class ArrayUint32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT32, cardinality = Field.Cardinality.REPEATED) 28 | public int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint32数组 24 | */ 25 | public class ArrayUint32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT32, cardinality = Field.Cardinality.REPEATED) 28 | private int[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint64数组 24 | */ 25 | public class ArrayUint64 { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64, cardinality = Field.Cardinality.REPEATED) 28 | public Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint64数组 24 | */ 25 | public class ArrayUint64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64, cardinality = Field.Cardinality.REPEATED) 28 | private Long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint64数组 24 | */ 25 | public class ArrayUint64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64, cardinality = Field.Cardinality.REPEATED) 28 | public long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ArrayUint64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * uint64数组 24 | */ 25 | public class ArrayUint64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64, cardinality = Field.Cardinality.REPEATED) 28 | private long[] list; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListBool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Boolean的list 23 | */ 24 | public class ListBool { 25 | //@ProtoField(tag = 1, type = Field.Type.BOOL, cardinality = Field.Cardinality.REPEATED) 26 | public List values; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListBoolNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Boolean的list 23 | */ 24 | public class ListBoolNoAccess { 25 | //@ProtoField(tag = 1, type = Field.Type.BOOL, cardinality = Field.Cardinality.REPEATED) 26 | private List values; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * byte[]的list对象 23 | */ 24 | public class ListBytes { 25 | public List value; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListBytesNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * byte[]的list对象 23 | */ 24 | public class ListBytesNoAccess { 25 | private List value; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListDouble.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Double的list对象 23 | */ 24 | public class ListDouble { 25 | public List list; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListDoubleNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Double的list对象 23 | */ 24 | public class ListDoubleNoAccess { 25 | public List list; 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Enum的list对象 23 | */ 24 | public class ListEnum { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Enum的list对象 23 | */ 24 | public class ListEnumNoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListFixed64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | import java.util.List; 23 | 24 | /** 25 | * fixed64的list对象 26 | */ 27 | public class ListFixed64 { 28 | @ProtoField(tag = 1, type = Field.Type.FIXED64, cardinality = Field.Cardinality.REPEATED) 29 | public List list; 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListFloat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Float的list对象 23 | */ 24 | public class ListFloat { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListFloatNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Float的list对象 23 | */ 24 | public class ListFloatNoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListInt32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * int32的list对象 23 | */ 24 | public class ListInt32 { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListInt32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * int32的list对象 23 | */ 24 | public class ListInt32NoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListInt64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * int64的list对象 23 | */ 24 | public class ListInt64 { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListInt64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * int64的list对象 23 | */ 24 | public class ListInt64NoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Message的list对象 23 | */ 24 | public class ListMessage { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListMessageNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Message的list对象 23 | */ 24 | public class ListMessageNoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListProtoEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Enum的list对象 23 | */ 24 | public class ListProtoEnum { 25 | 26 | public List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListProtoEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * Enum的list对象 23 | */ 24 | public class ListProtoEnumNoAccess { 25 | 26 | private List list; 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/ListSint32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | import java.util.List; 23 | 24 | /** 25 | * sint32的list对象 26 | */ 27 | public class ListSint32 { 28 | 29 | @ProtoField(tag = 1, type = Field.Type.SINT32, cardinality = Field.Cardinality.REPEATED) 30 | public List list; 31 | } 32 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个bool类型 21 | */ 22 | public class OneBool { 23 | 24 | private Boolean value; 25 | 26 | 27 | public Boolean getValue() { 28 | return value; 29 | } 30 | 31 | public void setValue(Boolean value) { 32 | this.value = value; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBoolNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个bool类型 21 | */ 22 | public class OneBoolNoAccess { 23 | 24 | private Boolean value; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBoolUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个bool类型 21 | */ 22 | public class OneBoolUnboxed { 23 | public boolean value; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBoolUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个bool类型 21 | */ 22 | public class OneBoolUnboxedNoAccess { 23 | private boolean value; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBytes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个byte[]数组 21 | */ 22 | public class OneBytes { 23 | 24 | private byte[] value; 25 | 26 | 27 | public byte[] getValue() { 28 | return value; 29 | } 30 | 31 | public void setValue(byte[] value) { 32 | this.value = value; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneBytesNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个byte[]数组 21 | */ 22 | public class OneBytesNoAccess { 23 | 24 | private byte[] value; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneDouble.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Double 21 | */ 22 | public class OneDouble { 23 | 24 | private Double d; 25 | 26 | public Double getD() { 27 | return d; 28 | } 29 | 30 | public void setD(Double d) { 31 | this.d = d; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneDoubleNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Double 21 | */ 22 | public class OneDoubleNoAccess { 23 | 24 | private Double d; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneDoubleUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个double 21 | */ 22 | public class OneDoubleUnboxed { 23 | 24 | public double value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneDoubleUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个double 21 | */ 22 | public class OneDoubleUnboxedNoAccess { 23 | 24 | private double value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个枚举类型 24 | */ 25 | public class OneEnumNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.ENUM) 28 | private Corpus corpus; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed32 24 | */ 25 | public class OneFixed32NoAccess { 26 | 27 | 28 | @ProtoField(tag = 1, type = Field.Type.FIXED32) 29 | private Integer value; 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed32 24 | */ 25 | public class OneFixed32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED32) 28 | public int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed32 24 | */ 25 | public class OneFixed32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED32) 28 | public int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64 24 | */ 25 | public class OneFixed64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64) 28 | private Long value; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64 24 | */ 25 | public class OneFixed64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64) 28 | public long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFixed64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64 24 | */ 25 | public class OneFixed64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.FIXED64) 28 | private long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFloat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Float 21 | */ 22 | public class OneFloat { 23 | private Float f; 24 | 25 | public Float getF() { 26 | return f; 27 | } 28 | 29 | public void setF(Float f) { 30 | this.f = f; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFloatNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Float 21 | */ 22 | public class OneFloatNoAccess { 23 | private Float f; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFloatUnboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个float 21 | */ 22 | public class OneFloatUnboxed { 23 | 24 | public float value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneFloatUnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个float 21 | */ 22 | public class OneFloatUnboxedNoAccess { 23 | 24 | private float value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt32.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int32 21 | */ 22 | public class OneInt32 { 23 | private Integer value; 24 | 25 | public Integer getValue() { 26 | return value; 27 | } 28 | 29 | public void setValue(Integer value) { 30 | this.value = value; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int32 21 | */ 22 | public class OneInt32NoAccess { 23 | private Integer value; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int32 21 | */ 22 | public class OneInt32Unboxed { 23 | 24 | public int value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int32 21 | */ 22 | public class OneInt32UnboxedNoAccess { 23 | 24 | private int value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt64.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int64 21 | */ 22 | public class OneInt64 { 23 | private Long value; 24 | 25 | public Long getValue() { 26 | return value; 27 | } 28 | 29 | public void setValue(Long value) { 30 | this.value = value; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int64 21 | */ 22 | public class OneInt64NoAccess { 23 | private Long value; 24 | } 25 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int64 21 | */ 22 | public class OneInt64Unboxed { 23 | 24 | public long value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneInt64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个int64 21 | */ 22 | public class OneInt64UnboxedNoAccess { 23 | 24 | private long value; 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneMap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.Map; 20 | 21 | /** 22 | * 一个map类型 23 | */ 24 | public class OneMap { 25 | private Map value; 26 | 27 | public Map getValue() { 28 | return value; 29 | } 30 | 31 | public void setValue(Map value) { 32 | this.value = value; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneMapNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import java.util.Map; 20 | 21 | /** 22 | * 一个map类型 23 | */ 24 | public class OneMapNoAccess { 25 | private Map value; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Message类型OneMessage 21 | */ 22 | public class OneMessage { 23 | private Proj proj; 24 | 25 | public Proj getProj() { 26 | return proj; 27 | } 28 | 29 | public void setProj(Proj proj) { 30 | this.proj = proj; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneMessageNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个Message类型OneMessage 21 | */ 22 | public class OneMessageNoAccess { 23 | private Proj proj; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneProtoEnumNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个枚举类型 24 | */ 25 | public class OneProtoEnumNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.ENUM) 28 | private ProtoEnumCorpus corpus; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sfixed32类型 24 | */ 25 | public class OneSfixed32NoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.SFIXED32) 27 | private Integer value; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sfixed32类型 24 | */ 25 | public class OneSfixed32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32) 28 | public int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sfixed32类型 24 | */ 25 | public class OneSfixed32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED32) 28 | private int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64类型 24 | */ 25 | public class OneSfixed64NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64) 28 | private Long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64类型 24 | */ 25 | public class OneSfixed64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64) 28 | public long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSfixed64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个fixed64类型 24 | */ 25 | public class OneSfixed64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SFIXED64) 28 | private long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint32 24 | */ 25 | public class OneSint32NoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32) 28 | private Integer value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint32 24 | */ 25 | public class OneSint32Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32) 28 | public int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint32 24 | */ 25 | public class OneSint32UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT32) 28 | private int value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint64 24 | */ 25 | public class OneSint64NoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.SINT64) 27 | private Long value; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint64 24 | */ 25 | public class OneSint64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64) 28 | public long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneSint64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个sint64 24 | */ 25 | public class OneSint64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.SINT64) 28 | private long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个string类型 21 | */ 22 | public class OneString { 23 | 24 | private String value; 25 | 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | public void setValue(String value) { 31 | this.value = value; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneStringNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | /** 20 | * 一个string类型 21 | */ 22 | public class OneStringNoAccess { 23 | 24 | private String value; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint32NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint32 24 | */ 25 | public class OneUint32NoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.UINT32) 27 | private Integer value; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint32Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint32 24 | */ 25 | public class OneUint32Unboxed { 26 | @ProtoField(tag = 1, type = Field.Type.UINT32) 27 | public int value; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint32UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint32 24 | */ 25 | public class OneUint32UnboxedNoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.UINT32) 27 | private int value; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint64NoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint64 24 | */ 25 | public class OneUint64NoAccess { 26 | @ProtoField(tag = 1, type = Field.Type.UINT64) 27 | private Long value; 28 | } 29 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint64Unboxed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint64 24 | */ 25 | public class OneUint64Unboxed { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64) 28 | public long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/java/io/edap/protobuf/test/message/v3/OneUint64UnboxedNoAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 The edap Project 3 | * 4 | * The Netty Project licenses this file to you under the Apache License, 5 | * version 2.0 (the "License"); you may not use this file except in compliance 6 | * with the License. You may obtain a copy of the License at: 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations 14 | * under the License. 15 | */ 16 | 17 | package io.edap.protobuf.test.message.v3; 18 | 19 | import io.edap.protobuf.annotation.ProtoField; 20 | import io.edap.protobuf.wire.Field; 21 | 22 | /** 23 | * 一个uint64 24 | */ 25 | public class OneUint64UnboxedNoAccess { 26 | 27 | @ProtoField(tag = 1, type = Field.Type.UINT64) 28 | private long value; 29 | } 30 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/all_type.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | import "one_enum.proto"; 7 | import "one_map.proto"; 8 | import "one_message.proto"; 9 | option java_package = "io.edap.protobuf.test.message.v3"; 10 | //option java_outer_classname = "MessageOuter"; 11 | 12 | message AllType { 13 | bool field1 = 1; 14 | bytes field2 = 2; 15 | double field3 = 3; 16 | Corpus field4 = 4; 17 | fixed32 field5 = 5; 18 | fixed64 field6 = 6; 19 | float field7 = 7; 20 | int32 field8 = 8; 21 | int64 field9 = 9; 22 | map field10 = 10; 23 | Proj field11 = 11; 24 | sfixed32 field12 = 12; 25 | sfixed64 field13 = 13; 26 | sint32 field14 = 14; 27 | sint64 field15 = 15; 28 | string field16 = 16; 29 | uint32 field17 = 17; 30 | uint64 field18 = 18; 31 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_bool.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListBool { 10 | repeated bool value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_bytes.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListBytes { 10 | repeated bytes value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_double.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListDouble { 10 | repeated double d = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_enum.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | import "one_enum.proto"; 7 | 8 | option java_package = "io.edap.protobuf.test.message.v3"; 9 | 10 | //option java_outer_classname = "MessageOuter"; 11 | 12 | message ListEnum { 13 | repeated Corpus corpus = 1; 14 | } 15 | -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_fixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListFixed32 { 10 | repeated fixed32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_fixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListFixed64 { 10 | repeated fixed64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_float.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListFloat { 10 | repeated float f = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_int32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListInt32 { 10 | repeated int32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_int64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListInt64 { 10 | repeated int64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_message.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | import "one_message.proto"; 6 | 7 | option java_package = "io.edap.protobuf.test.message.v3"; 8 | //option java_outer_classname = "MessageOuter"; 9 | 10 | message ListMessage { 11 | repeated Proj value = 1; 12 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_sfixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListSfixed32 { 10 | repeated sfixed32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_sfixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListSfixed64 { 10 | repeated sfixed64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_sint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListSint32 { 10 | repeated sint32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_sint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListSint64 { 10 | repeated sint64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_string.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListString { 10 | repeated string value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_uint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListUint32 { 10 | repeated uint32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/list_uint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message ListUint64 { 10 | repeated uint64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_bool.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneBool { 10 | bool value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_bytes.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneBytes { 10 | bytes value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_double.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneDouble { 10 | double d = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_enum.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneEnum { 10 | Corpus corpus = 1; 11 | } 12 | 13 | 14 | enum Corpus { 15 | UNIVERSAL = 0; 16 | WEB = 1; 17 | IMAGES = 2; 18 | LOCAL = 3; 19 | NEWS = 4; 20 | PRODUCTS = 5; 21 | VIDEO = 6; 22 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_fixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneFixed32 { 10 | fixed32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_fixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneFixed64 { 10 | fixed64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_float.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneFloat { 10 | float f = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_int32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneInt32 { 10 | int32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_int64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneInt64 { 10 | int64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_map.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneMap { 10 | map value = 1; 11 | } 12 | 13 | message Project { 14 | int64 id = 1; 15 | string name = 2; 16 | string repoPath = 3; 17 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_message.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneMessage { 10 | Proj value = 1; 11 | } 12 | 13 | message Proj { 14 | int64 id = 1; 15 | string name = 2; 16 | string repoPath = 3; 17 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_sfixed32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneSfixed32 { 10 | sfixed32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_sfixed64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneSfixed64 { 10 | sfixed64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_sint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneSint32 { 10 | sint32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_sint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneSint64 { 10 | sint64 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_string.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneString { 10 | string value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_uint32.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneUint32 { 10 | uint32 value = 1; 11 | } -------------------------------------------------------------------------------- /edap-protobuf/src/test/resources/proto3/one_uint64.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | 4 | package test.message; 5 | 6 | option java_package = "io.edap.protobuf.test.message.v3"; 7 | //option java_outer_classname = "MessageOuter"; 8 | 9 | message OneUint64 { 10 | uint64 value = 1; 11 | } --------------------------------------------------------------------------------