public Struct put(Field field, Object value) {
        if (null == field)
            throw new DataException("field cannot be null.");
        ConnectSchema.validateValue(field.name(), field.schema(), value);
        values[field.index()] = value;
        return this;
    }
Set the value of a field. Validates the value, throwing a {@link DataException} if it does not match the field's
{@link Schema}.
@param field the field to set
@param value the value of the field
@return the Struct, to allow chaining of {@link #put(String, Object)} calls
connect/api/src/main/java/org/apache/kafka/connect/data/Struct.java