function invalid(field, expected) {
    return field.name + ": " + expected + (field.repeated && expected !== "array" ? "[]" : field.map && expected !== "object" ? "{k:"+field.keyType+"}" : "") + " expected";
}
Default conversion options used for toJSON implementations. Converts longs, enums and bytes to strings.
@type {ConversionOptions}