public function setTransferMessages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\TransferMessage::class);
        $this->transfer_messages = $arr;

        return $this;
    }
public function setTransferMessages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\TransferMessage::class);
        $this->transfer_messages = $arr;

        return $this;
    }
public function setTransferMessages ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ BigQuery \ DataTransfer \ V1 \ TransferMessage :: class ) ; $ this -> transfer_messages = $ arr ; return $ this ; }
Output only. The stored pipeline transfer messages.

Generated from protobuf field <code>repeated .google.cloud.bigquery.datatransfer.v1.TransferMessage transfer_messages = 1;</code>
@param \Google\Cloud\BigQuery\DataTransfer\V1\TransferMessage[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Output only . The stored pipeline transfer messages .