Adding scala accessors to the builder.