public function decodeMessage($message, $data)
    {
        // Get message descriptor
        $pool = DescriptorPool::getGeneratedPool();
        $messageType = $pool->getDescriptorByClassName(get_class($message));
        try {
            return $this->decodeMessageImpl($message, $messageType, $data);
        } catch (\Exception $e) {
            throw new ValidationException(
                "Error decoding message: " . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public function decodeMessage($message, $data)
    {
        // Get message descriptor
        $pool = DescriptorPool::getGeneratedPool();
        $messageType = $pool->getDescriptorByClassName(get_class($message));
        try {
            return $this->decodeMessageImpl($message, $messageType, $data);
        } catch (\Exception $e) {
            throw new ValidationException(
                "Error decoding message: " . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }
public function decodeMessage ( $ message , $ data ) { // Get message descriptor $ pool = DescriptorPool :: getGeneratedPool ( ) ; $ messageType = $ pool -> getDescriptorByClassName ( get_class ( $ message ) ) ; try { return $ this -> decodeMessageImpl ( $ message , $ messageType , $ data ) ; } catch ( \ Exception $ e ) { throw new ValidationException ( "Error decoding message: " . $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Decode PHP array into the specified protobuf message

@param mixed $message
@param array $data
@return mixed
@throws ValidationException
Decode PHP array into the specified protobuf message