function EnumOptions::setDeprecatedLegacyJsonFieldConflicts
Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO Remove this legacy behavior once downstream teams have had time to migrate.
Generated from protobuf field <code>optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];</code>
Parameters
bool $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumOptions.php, line 206
Class
- EnumOptions
- Generated from protobuf message <code>google.protobuf.EnumOptions</code>
Namespace
Google\Protobuf\InternalCode
public function setDeprecatedLegacyJsonFieldConflicts($var) {
@trigger_error('deprecated_legacy_json_field_conflicts is deprecated.', E_USER_DEPRECATED);
GPBUtil::checkBool($var);
$this->deprecated_legacy_json_field_conflicts = $var;
return $this;
}