/** * JProtobuf POJO supports for {@link MethodOptions} * @author xiemalin * @since 2.0.1 */ public class MethodOptionsPOJO { @Protobuf(order = MethodOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOptions; }
int order = -1; if (protobuf != null) { fieldInfo.setRequired(protobuf.required()); fieldInfo.setDescription(protobuf.description()); annFieldType = protobuf.fieldType(); order = protobuf.order(); } else { fieldInfo.setRequired(false);
/** * JProtobuf POJO supports for {@link EnumValueOptions} * @author xiemalin * @since 2.0.1 */ public class EnumValueOptionsPOJO { @Protobuf(order = EnumValueOptions.UNINTERPRETED_OPTION_FIELD_NUMBER) public List<UninterpretedOptionPOJO> uninterpretedOptions; }
/** * JProtobuf POJO supports for {@link Location} * @author xiemalin * @since 2.0.1 */ public class LocationPOJO { @Protobuf(order = FileDescriptorSet.FILE_FIELD_NUMBER) public List<FileDescriptorProtoPOJO> files; @Override public String toString() { return "LocationPOJO [files=" + files + "]"; } }
/** * JProtobuf supports for {@link SourceCodeInfo} * @author xiemalin * @since 2.0.1 */ public class SourceCodeInfoPOJO { @Protobuf(order = SourceCodeInfo.LOCATION_FIELD_NUMBER) public List<LocationPOJO> locations; @Override public String toString() { return "SourceCodeInfoPOJO [locations=" + locations + "]"; } }
/** * JProtobuf POJO supports for {@link ServiceOptions} * @author xiemalin * @since 2.0.1 */ public class ServiceOptionsPOJO { @Protobuf(order = ServiceOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOption; @Override public String toString() { return "ServiceOptionsPOJO [uninterpretedOption=" + uninterpretedOption + "]"; } }
/** * JProtobuf POJO supports for {@link NamePart} * @author xiemalin * @since 2.0.1 */ public class NamePartPOJO { @Protobuf(order = FileDescriptorSet.FILE_FIELD_NUMBER) public List<FileDescriptorProtoPOJO> files; @Override public String toString() { return "NamePartPOJO [files=" + files + "]"; } }
/** * JProtobuf POJO for {@link EnumOptions} * @author xiemalin * @since 2.0.1 */ public class EnumOptionsPOJO { @Protobuf(order = EnumOptions.ALLOW_ALIAS_FIELD_NUMBER) public Boolean allowAlias; @Protobuf(order = EnumOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOptions; @Override public String toString() { return "EnumOptionsPOJO [allowAlias=" + allowAlias + ", uninterpretedOptions=" + uninterpretedOptions + "]"; } }
/** * JProtobuf supports for {@link ServiceDescriptorProto} * * @author xiemalin * @since 2.0.1 */ public class ServiceDescriptorProtoPOJO { @Protobuf(order = ServiceDescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = ServiceDescriptorProto.METHOD_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<MethodDescriptorProtoPOJO> methods; @Protobuf(order = ServiceDescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<ServiceOptionsPOJO> options; }
/** * JProtobuf POJO supports for {@link ExtensionRange} * @author xiemalin * @since 2.0.1 */ public class ExtensionRangePOJO { @Protobuf(order = ExtensionRange.START_FIELD_NUMBER) public Integer start; @Protobuf(order = ExtensionRange.END_FIELD_NUMBER) public Integer end; @Override public String toString() { return "ExtensionRangePOJO [start=" + start + ", end=" + end + "]"; } }
/** * JProtobuf POJO supports for {@link MethodDescriptorProto} * @author xiemalin * @since 2.0.1 */ public class MethodDescriptorProtoPOJO { @Protobuf(order = MethodDescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = MethodDescriptorProto.INPUT_TYPE_FIELD_NUMBER) public String inputType; @Protobuf(order = MethodDescriptorProto.OUTPUT_TYPE_FIELD_NUMBER) public String outputType; @Protobuf(order = MethodDescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public MethodOptionsPOJO options; }
/** * JProtobuf POJO supports for {@link EnumValueDescriptorProto} * @author xiemalin * @since 2.0.1 */ public class EnumValueDescriptorProtoPOJO { @Protobuf(order = EnumValueDescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = EnumValueDescriptorProto.NUMBER_FIELD_NUMBER) public Integer number; @Protobuf(order = EnumValueDescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<EnumValueOptionsPOJO> options; @Override public String toString() { return "EnumValueDescriptorProtoPOJO [name=" + name + ", number=" + number + ", options=" + options + "]"; } }
/** * JProtobuf POJO supports for {@link EnumDescriptorProto} * @author xiemalin * @since 2.0.1 */ public class EnumDescriptorProtoPOJO { @Protobuf(order = EnumDescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = EnumDescriptorProto.VALUE_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<EnumValueDescriptorProtoPOJO> values; @Protobuf(order = EnumDescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<EnumOptionsPOJO> options; @Override public String toString() { return "EnumDescriptorProtoPOJO [name=" + name + ", values=" + values + ", options=" + options + "]"; } }
/** * JProtobuf supports for {@link MessageOptions} * @author xiemalin * @since 2.0.1 */ public class MessageOptionsPOJO { @Protobuf(order = MessageOptions.MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER) public Boolean messageSetWireFormat; @Protobuf(order = MessageOptions.NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER) public Boolean noStandardDescriptorAccessor; @Protobuf(order = MessageOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOptions; @Override public String toString() { return "MessageOptionsPOJO [messageSetWireFormat=" + messageSetWireFormat + ", noStandardDescriptorAccessor=" + noStandardDescriptorAccessor + ", uninterpretedOptions=" + uninterpretedOptions + "]"; } }
@Protobuf(order = FieldOptions.CTYPE_FIELD_NUMBER, fieldType = FieldType.ENUM) public CType ctype; @Protobuf(order = FieldOptions.PACKED_FIELD_NUMBER) public Boolean packed; @Protobuf(order = FieldOptions.DEPRECATED_FIELD_NUMBER) public Boolean deprecated; @Protobuf(order = FieldOptions.LAZY_FIELD_NUMBER) public Boolean lazy; @Protobuf(order = FieldOptions.WEAK_FIELD_NUMBER) public Boolean weak; @Protobuf(order = FieldOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOption;
@Protobuf(order = FieldDescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = FieldDescriptorProto.EXTENDEE_FIELD_NUMBER) public String extendee; @Protobuf(order = FieldDescriptorProto.NUMBER_FIELD_NUMBER) public Integer number; @Protobuf(order = FieldDescriptorProto.LABEL_FIELD_NUMBER, fieldType = FieldType.ENUM) public Label label; @Protobuf(order = FieldDescriptorProto.TYPE_FIELD_NUMBER, fieldType = FieldType.ENUM) public Type type; @Protobuf(order = FieldDescriptorProto.TYPE_NAME_FIELD_NUMBER) public String typeName; @Protobuf(order = FieldDescriptorProto.DEFAULT_VALUE_FIELD_NUMBER) public String defaultValue; @Protobuf(order = FieldDescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public FieldOptionsPOJO options;
@Protobuf(order = UninterpretedOption.NAME_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<NamePartPOJO> names; @Protobuf(order = UninterpretedOption.IDENTIFIER_VALUE_FIELD_NUMBER) public String identifierValue; @Protobuf(order = UninterpretedOption.POSITIVE_INT_VALUE_FIELD_NUMBER) public Long positiveIntValue; @Protobuf(order = UninterpretedOption.NEGATIVE_INT_VALUE_FIELD_NUMBER) public Long negativeIntValue; @Protobuf(order = UninterpretedOption.DOUBLE_VALUE_FIELD_NUMBER) public Double doubleValue; @Protobuf(order = UninterpretedOption.STRING_VALUE_FIELD_NUMBER) public String stringValue; @Protobuf(order = UninterpretedOption.AGGREGATE_VALUE_FIELD_NUMBER) public String aggregateValue;
@Protobuf(order = FileOptions.JAVA_PACKAGE_FIELD_NUMBER) public String javaPackage; @Protobuf(order = FileOptions.JAVA_OUTER_CLASSNAME_FIELD_NUMBER) public String javaOuterClassname; @Protobuf(order = FileOptions.OPTIMIZE_FOR_FIELD_NUMBER, fieldType = FieldType.ENUM) public OptimizeMode optimizeFor; @Protobuf(order = FileOptions.JAVA_MULTIPLE_FILES_FIELD_NUMBER) public Boolean javaMultipleFiles; @Protobuf(order = FileOptions.GO_PACKAGE_FIELD_NUMBER) public String goPackage; @Protobuf(order = FileOptions.CC_GENERIC_SERVICES_FIELD_NUMBER) public Boolean ccGenericServices; @Protobuf(order = FileOptions.JAVA_GENERIC_SERVICES_FIELD_NUMBER) public Boolean javaGenericServices; @Protobuf(order = FileOptions.PY_GENERIC_SERVICES_FIELD_NUMBER) public Boolean pyGenericServices; @Protobuf(order = FileOptions.JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER) public Boolean javaGenerateEqualsAndHash; @Protobuf(order = FileOptions.UNINTERPRETED_OPTION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<UninterpretedOptionPOJO> uninterpretedOptions;
@Protobuf(order = DescriptorProto.NAME_FIELD_NUMBER) public String name; @Protobuf(order = DescriptorProto.FIELD_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<FieldDescriptorProtoPOJO> fields; @Protobuf(order = DescriptorProto.NESTED_TYPE_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<DescriptorProtoPOJO> nestedTypes; @Protobuf(order = DescriptorProto.ENUM_TYPE_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<EnumDescriptorProtoPOJO> enumTypes; @Protobuf(order = DescriptorProto.EXTENSION_RANGE_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<ExtensionRangePOJO> extensionRanges; @Protobuf(order = DescriptorProto.EXTENSION_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<FieldDescriptorProtoPOJO> extensions; @Protobuf(order = DescriptorProto.OPTIONS_FIELD_NUMBER, fieldType = FieldType.OBJECT) public List<MessageOptionsPOJO> options;