I created the following protobuf object:
message House {
message Room {
message Attributes {
string bed = 1;
string desk = 2;
}
}
message Kitchen {
message Attributes {
string stove = 1;
string fridge = 2;
}
}
Room room = 1;
Kitchen kitchen = 2;
}
I'm trying to initialize a House object using:
attributes = House.Room.Attributes(
bed = "Queen",
desk = "Office desk"
)
request = House(
room=House.Room(
Attributes = attributes
),
sourceFactAttributes=None
)
However, I keep getting the following error:
ValueError: Protocol message Room has no "Attributes" field.