<?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;

/**
 * Whatsapp information to use for messaging.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.WhatsappBusinessMessageInfo</code>
 */
class WhatsappBusinessMessageInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Two-letter country code of the phone number. Examples: 'US',
     * 'us'.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $country_code = '';
    /**
     * Required. Whatsapp phone number of the business. Examples: '1234567890',
     * '(123)456-7890'.
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $phone_number = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $country_code
     *           Required. Two-letter country code of the phone number. Examples: 'US',
     *           'us'.
     *     @type string $phone_number
     *           Required. Whatsapp phone number of the business. Examples: '1234567890',
     *           '(123)456-7890'.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Two-letter country code of the phone number. Examples: 'US',
     * 'us'.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCountryCode()
    {
        return $this->country_code;
    }

    /**
     * Required. Two-letter country code of the phone number. Examples: 'US',
     * 'us'.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->country_code = $var;

        return $this;
    }

    /**
     * Required. Whatsapp phone number of the business. Examples: '1234567890',
     * '(123)456-7890'.
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPhoneNumber()
    {
        return $this->phone_number;
    }

    /**
     * Required. Whatsapp phone number of the business. Examples: '1234567890',
     * '(123)456-7890'.
     *
     * Generated from protobuf field <code>string phone_number = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone_number = $var;

        return $this;
    }

}

