function EnumOptions::getDeprecatedLegacyJsonFieldConflicts
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>
Return value
bool
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumOptions.php, line 175
Class
- EnumOptions
- Generated from protobuf message <code>google.protobuf.EnumOptions</code>
Namespace
Google\Protobuf\InternalCode
public function getDeprecatedLegacyJsonFieldConflicts() {
@trigger_error('deprecated_legacy_json_field_conflicts is deprecated.', E_USER_DEPRECATED);
return isset($this->deprecated_legacy_json_field_conflicts) ? $this->deprecated_legacy_json_field_conflicts : false;
}