function FileOptions::getJavaStringCheckUtf8
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>
Return value
bool
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FileOptions.php, line 464
Class
- FileOptions
- Generated from protobuf message <code>google.protobuf.FileOptions</code>
Namespace
Google\Protobuf\InternalCode
public function getJavaStringCheckUtf8() {
return isset($this->java_string_check_utf8) ? $this->java_string_check_utf8 : false;
}