public override void WriteTo(pb::ICodedOutputStream output) { int size = SerializedSize; string[] field_names = _crafterDataFieldNames; if (recipes_.Count > 0) { output.WriteSFixed32Array(1, field_names[3], recipes_); } if (availableEnchants_.Count > 0) { output.WriteSFixed32Array(2, field_names[0], availableEnchants_); } if (hasLevel) { output.WriteInt32(3, field_names[2], Level); } if (hasCooldownEnd) { output.WriteSFixed64(4, field_names[1], CooldownEnd); } UnknownFields.WriteTo(output); }