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

Breadcrumb

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

function Option::__construct

Constructor.

Parameters

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

@type string $name The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, `"map_entry"`. For custom options, it should be the fully-qualified name. For example, `"google.api.http"`. @type \Google\Protobuf\Any $value The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/Option.php, line 56

Class

Option
A protocol buffer option, which can be attached to a message, field, enumeration, etc.

Namespace

Google\Protobuf

Code

public function __construct($data = NULL) {
    \GPBMetadata\Google\Protobuf\Type::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