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

Breadcrumb

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

function DescriptorProto::setReservedName

Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.

Generated from protobuf field <code>repeated string reserved_name = 10;</code>

Parameters

array<string>|\Google\Protobuf\Internal\RepeatedField $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto.php, line 327

Class

DescriptorProto
Describes a message type.

Namespace

Google\Protobuf\Internal

Code

public function setReservedName($var) {
    $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
    $this->reserved_name = $arr;
    return $this;
}

API Navigation

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