I used to be able to write to the following information on Google Fit, but now it seems that it is not possible.
DataType.TYPE_ACTIVITY_SEGMENT