function FileOptions::setJavaStringCheckUtf8
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.
Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
Parameters
bool $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileOptions.php, line 491
Class
- FileOptions
- Generated from protobuf message <code>google.protobuf.FileOptions</code>
Namespace
Google\Protobuf\InternalCode
public function setJavaStringCheckUtf8($var) {
GPBUtil::checkBool($var);
$this->java_string_check_utf8 = $var;
return $this;
}