setting required fields for the protobuf model