PubSub/src/V1/ReceivedMessage.php
public function setMessage($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\PubsubMessage::class);
        $this->message = $var;

        return $this;
    }
public function setMessage($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\PubSub\V1\PubsubMessage::class);
        $this->message = $var;

        return $this;
    }
public function setMessage ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ PubSub \ V1 \ PubsubMessage :: class ) ; $ this -> message = $ var ; return $ this ; }
The message.

Generated from protobuf field <code>.google.pubsub.v1.PubsubMessage message = 2;</code>
@param \Google\Cloud\PubSub\V1\PubsubMessage $var
@return $this
The message .