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

Breadcrumb

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

function EnumDescriptorProto::__construct

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type string $name @type array<\Google\Protobuf\Internal\EnumValueDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $value @type \Google\Protobuf\Internal\EnumOptions $options @type array<\Google\Protobuf\Internal\EnumDescriptorProto\EnumReservedRange>|\Google\Protobuf\Internal\RepeatedField $reserved_range Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap. @type array<string>|\Google\Protobuf\Internal\RepeatedField $reserved_name Reserved enum value names, which may not be reused. A given name may only be reserved once. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto.php, line 66

Class

EnumDescriptorProto
Describes an enum type.

Namespace

Google\Protobuf\Internal

Code

public function __construct($data = NULL) {
    \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
    parent::__construct($data);
}
RSS feed
Powered by Drupal