Rommel
03/28/2024, 12:23 AMsyntax = "proto3";
package com.mystuff.main.proto;
option java_multiple_files = true;
option java_outer_classname = "PowerhouseDSLProtoTable";
option java_package = "com.mystuff.proto.table";
message DataType {
oneof details {
PrimitiveDataType primitive_data_type = 1;
ComplexDataType complex_data_type = 2;
}
}
and after generating java code using protoc, i ran into msg like this in Flink
class com.mystuff.proto.table.DataType does not contain a getter for field detailsCase_
16:04:34,021 INFO org.apache.flink.api.java.typeutils.TypeExtractor [] - Class class com.mystuff.proto.table.DataType cannot be used as a POJO type because not all fields are valid POJO fields, and must be processed as GenericType. Please read the Flink documentation on "Data Types & Serialization" for details of the effect on performance and schema evolution.
i used protoc to generate the java code. So I assume I used protoc wrong? Can anyone help me shine some light on this one? Thank you