function FieldDescriptorProto::setJsonName
JSON name of this field. The value is set by protocol compiler. If the user has set a "json_name" option on this field, that option's value will be used. Otherwise, it's deduced from the field's name by converting it to camelCase.
Generated from protobuf field <code>optional string json_name = 10;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ FieldDescriptorProto.php, line 500
Class
- FieldDescriptorProto
- Describes a field within a message.
Namespace
Google\Protobuf\InternalCode
public function setJsonName($var) {
GPBUtil::checkString($var, True);
$this->json_name = $var;
return $this;
}