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

Breadcrumb

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

function FileDescriptorProto::__construct

Constructor.

Parameters

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

@type string $name file name, relative to root of source tree @type string $package e.g. "foo", "foo.bar", etc. @type array<string>|\Google\Protobuf\Internal\RepeatedField $dependency Names of files imported by this file. @type array<int>|\Google\Protobuf\Internal\RepeatedField $public_dependency Indexes of the public imported files in the dependency list above. @type array<int>|\Google\Protobuf\Internal\RepeatedField $weak_dependency Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use. @type array<\Google\Protobuf\Internal\DescriptorProto>|\Google\Protobuf\Internal\RepeatedField $message_type All top-level definitions in this file. @type array<\Google\Protobuf\Internal\EnumDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $enum_type @type array<\Google\Protobuf\Internal\ServiceDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $service @type array<\Google\Protobuf\Internal\FieldDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $extension @type \Google\Protobuf\Internal\FileOptions $options @type \Google\Protobuf\Internal\SourceCodeInfo $source_code_info This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools. @type string $syntax The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". @type string $edition The edition of the proto file, which is an opaque string. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorProto.php, line 133

Class

FileDescriptorProto
Describes a complete .proto file.

Namespace

Google\Protobuf\Internal

Code

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

API Navigation

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