Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldDescriptorProto.php

function FieldDescriptorProto::getJsonName

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>

Return value

string

File

vendor/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto.php, line 475

Class

FieldDescriptorProto
Describes a field within a message.

Namespace

Google\Protobuf\Internal

Code

public function getJsonName() {
    return isset($this->json_name) ? $this->json_name : '';
}
RSS feed
Powered by Drupal