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

Breadcrumb

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

function EnumValueDescriptorProto::setName

Generated from protobuf field <code>optional string name = 1;</code>

Parameters

string $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php, line 73

Class

EnumValueDescriptorProto
Describes a value within an enum.

Namespace

Google\Protobuf\Internal

Code

public function setName($var) {
    GPBUtil::checkString($var, True);
    $this->name = $var;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal