public function is($klass)
    {
        $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
        $desc = $pool->getDescriptorByClassName($klass);
        $fully_qualifed_name = $desc->getFullName();
        $type_url = GPBUtil::TYPE_URL_PREFIX.substr(
            $fully_qualifed_name, 1, strlen($fully_qualifed_name));
        return $this->type_url === $type_url;
    }
public function is($klass)
    {
        $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
        $desc = $pool->getDescriptorByClassName($klass);
        $fully_qualifed_name = $desc->getFullName();
        $type_url = GPBUtil::TYPE_URL_PREFIX.substr(
            $fully_qualifed_name, 1, strlen($fully_qualifed_name));
        return $this->type_url === $type_url;
    }
public function is ( $ klass ) { $ pool = \ Google \ Protobuf \ Internal \ DescriptorPool :: getGeneratedPool ( ) ; $ desc = $ pool -> getDescriptorByClassName ( $ klass ) ; $ fully_qualifed_name = $ desc -> getFullName ( ) ; $ type_url = GPBUtil :: TYPE_URL_PREFIX . substr ( $ fully_qualifed_name , 1 , strlen ( $ fully_qualifed_name ) ) ; return $ this -> type_url === $ type_url ; }
This method returns whether the type_url in any_message is corresponded
to the given class.
@param klass: The fully qualified PHP class name of a proto message type.
This method returns whether the type_url in any_message is corresponded to the given class .