|
|
@@ -139,7 +139,7 @@ Status Message2Operator::ParseField(const google::protobuf::Reflection *reflecti |
|
|
void Message2Operator::ParseRepeatedBaseTypeField(const google::protobuf::Reflection *reflection, |
|
|
void Message2Operator::ParseRepeatedBaseTypeField(const google::protobuf::Reflection *reflection, |
|
|
const google::protobuf::Message *message, |
|
|
const google::protobuf::Message *message, |
|
|
const google::protobuf::FieldDescriptor *field, |
|
|
const google::protobuf::FieldDescriptor *field, |
|
|
ge::Operator &ops) { |
|
|
|
|
|
|
|
|
ge::Operator &ops, const int field_size) { |
|
|
switch (field->cpp_type()) { |
|
|
switch (field->cpp_type()) { |
|
|
case google::protobuf::FieldDescriptor::CPPTYPE_INT32: { |
|
|
case google::protobuf::FieldDescriptor::CPPTYPE_INT32: { |
|
|
std::vector<int32_t> attr_value; |
|
|
std::vector<int32_t> attr_value; |
|
|
@@ -213,7 +213,7 @@ Status Message2Operator::ParseRepeatedField(const google::protobuf::Reflection * |
|
|
return FAILED; |
|
|
return FAILED; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ParseRepeatedBaseTypeField(reflection, message, field, ops); |
|
|
|
|
|
|
|
|
ParseRepeatedBaseTypeField(reflection, message, field, ops, field_size); |
|
|
switch (field->cpp_type()) { |
|
|
switch (field->cpp_type()) { |
|
|
case google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE: { |
|
|
case google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE: { |
|
|
nlohmann::json message_json; |
|
|
nlohmann::json message_json; |
|
|
|