public function getMetadata()
    {
        if (is_null($this->lastProtoResponse)) {
            return null;
        }
        /** @var Any $any */
        $any = $this->lastProtoResponse->getMetadata();
        if (is_null($this->metadataReturnType)) {
            return $any;
        }
        if (is_null($any) || is_null($any->getValue())) {
            return null;
        }
        $metadataReturnType = $this->metadataReturnType;
        /** @var Message $metadata */
        $metadata = new $metadataReturnType();
        $metadata->mergeFromString($any->getValue());
        return $metadata;
    }
public function getMetadata()
    {
        if (is_null($this->lastProtoResponse)) {
            return null;
        }
        /** @var Any $any */
        $any = $this->lastProtoResponse->getMetadata();
        if (is_null($this->metadataReturnType)) {
            return $any;
        }
        if (is_null($any) || is_null($any->getValue())) {
            return null;
        }
        $metadataReturnType = $this->metadataReturnType;
        /** @var Message $metadata */
        $metadata = new $metadataReturnType();
        $metadata->mergeFromString($any->getValue());
        return $metadata;
    }
public function getMetadata ( ) { if ( is_null ( $ this -> lastProtoResponse ) ) { return null ; } /** @var Any $any */ $ any = $ this -> lastProtoResponse -> getMetadata ( ) ; if ( is_null ( $ this -> metadataReturnType ) ) { return $ any ; } if ( is_null ( $ any ) || is_null ( $ any -> getValue ( ) ) ) { return null ; } $ metadataReturnType = $ this -> metadataReturnType ; /** @var Message $metadata */ $ metadata = new $ metadataReturnType ( ) ; $ metadata -> mergeFromString ( $ any -> getValue ( ) ) ; return $ metadata ; }
Get the metadata returned with the last proto response. If a metadata type was provided, then
the return value will be of that type - otherwise, the return value will be of type Any. If
no metadata object is available, returns null.

@return mixed The metadata returned from the server in the last response.
Get the metadata returned with the last proto response . If a metadata type was provided then the return value will be of that type - otherwise the return value will be of type Any . If no metadata object is available returns null .