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

Breadcrumb

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

function GPBUtil::checkMessage

46 calls to GPBUtil::checkMessage()
AnyValue::setArrayValue in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/AnyValue.php
Generated from protobuf field <code>.opentelemetry.proto.common.v1.ArrayValue array_value = 5;</code>
AnyValue::setKvlistValue in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/AnyValue.php
Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>
Api::setSourceContext in vendor/google/protobuf/src/Google/Protobuf/Api.php
Source context for the protocol buffer service represented by this message.
DescriptorProto::setOptions in vendor/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto.php
Generated from protobuf field <code>optional .google.protobuf.MessageOptions options = 7;</code>
Enum::setSourceContext in vendor/google/protobuf/src/Google/Protobuf/Enum.php
The source context.

... See full list

File

vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php, line 172

Class

GPBUtil

Namespace

Google\Protobuf\Internal

Code

public static function checkMessage(&$var, $klass, $newClass = null) {
    if (!$var instanceof $klass && !is_null($var)) {
        throw new \Exception("Expect {$klass}.");
    }
}

API Navigation

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