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

Breadcrumb

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

function Value::__construct

Constructor.

Parameters

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

@type int $null_value Represents a null value. @type float $number_value Represents a double value. @type string $string_value Represents a string value. @type bool $bool_value Represents a boolean value. @type \Google\Protobuf\Struct $struct_value Represents a structured value. @type \Google\Protobuf\ListValue $list_value Represents a repeated `Value`. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/Value.php, line 44

Class

Value
`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an…

Namespace

Google\Protobuf

Code

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