final int length = metadata.length();
int partCounter = 0;
// max 118 bytes (key+value)
for (int i = 0; i < length; i += 100, partCounter++) {
final String part = metadata.substring(i, Math.min(length, i + 100));
final Property property = new Property();
property.setKey("metadata" + partCounter);
property.setValue(part);
property.setVisibility("PRIVATE");
properties.add(property);
}
driveItem.setProperties(properties);
driveItem.setMimeType(item.isType(ItemType.FOLDER) ? FOLDER : FILE);