Class LazyGetProtobufSizeMethodGenerator
java.lang.Object
com.hedera.pbj.compiler.impl.generators.protobuf.LazyGetProtobufSizeMethodGenerator
Code to generate the measure record method for Codec classes. This measures the number of bytes that would be
written if the record was serialized in protobuf format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringbuildFieldSizeOfLines(String modelClassName, String schemaClassName, List<Field> fields, Function<Field, String> getValueBuilder, boolean skipDefault) (package private) static Stringstatic StringgenerateLazyGetProtobufSize(List<Field> fields, String schemaClassName)
-
Constructor Details
-
LazyGetProtobufSizeMethodGenerator
public LazyGetProtobufSizeMethodGenerator()
-
-
Method Details
-
generateLazyGetProtobufSize
-
buildFieldSizeOfLines
-
formatUnknownFieldsSizeOfLines
-