javaStringCheckUtf8 property

  1. @TagNumber(27)
bool javaStringCheckUtf8

If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field. Message reflection will do the same. However, an extension field still accepts non-UTF-8 byte sequences. This option has no effect on when used with the lite runtime.

Implementation

@$pb.TagNumber(27)
$core.bool get javaStringCheckUtf8 => $_getBF(10);
  1. @TagNumber(27)
void javaStringCheckUtf8=(bool v)

Implementation

@$pb.TagNumber(27)
set javaStringCheckUtf8($core.bool v) { $_setBool(10, v); }