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.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 172
Class
Namespace
Google\Protobuf\InternalCode
public static function checkMessage(&$var, $klass, $newClass = null) {
if (!$var instanceof $klass && !is_null($var)) {
throw new \Exception("Expect {$klass}.");
}
}