这是indexloc提供的服务,不要输入任何密码
Skip to content

Nested repeated submessages #1102

@Benjamin-commit

Description

@Benjamin-commit

Hi,

I am having tremendous issues with nested submessages with repeating submessages

I have a proto of which looks like this:

syntax = "proto3";

package messages.v1;

message DeviceReading {
message Value {
uint64 time = 1;
float value = 2;
}

enum Type {
GAUGE = 0;
COUNTER = 1;
}

string name = 1;
Type type = 2;
string unit = 3;
string input = 4;
string application = 5;
repeated Value values = 6;
}

message DeviceReadings {
repeated DeviceReading readings = 1;
}

I can make messages of which contain Device Reading with no issue, but when I try to pack them into DeviceReadings i get submsg size changed errors. And in the occations I don't get those I get core dumps. Is there some sample code I can view or can someone point me in the proper direction. I can provide source code upon request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions