<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/common/asset_types.proto

namespace Google\Ads\GoogleAds\V23\Common;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Facebook Messenger information to use for messaging.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.FacebookMessengerBusinessMessageInfo</code>
 */
class FacebookMessengerBusinessMessageInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Facebook page name used for starting a chat on Facebook
     * Messenger.
     *
     * Generated from protobuf field <code>string page_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $page_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $page_name
     *           Required. Facebook page name used for starting a chat on Facebook
     *           Messenger.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Facebook page name used for starting a chat on Facebook
     * Messenger.
     *
     * Generated from protobuf field <code>string page_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPageName()
    {
        return $this->page_name;
    }

    /**
     * Required. Facebook page name used for starting a chat on Facebook
     * Messenger.
     *
     * Generated from protobuf field <code>string page_name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPageName($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_name = $var;

        return $this;
    }

}

