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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Zalo information to use for messaging.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.common.ZaloBusinessMessageInfo</code>
 */
class ZaloBusinessMessageInfo extends \Google\Protobuf\Internal\Message
{
    protected $zalo_id;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $oa_id
     *           Zalo Official Account ID of the advertiser.
     *     @type string $custom_name
     *           Custom name generated by the advertiser for their Zalo Account.
     *           These names will usually be registered brands or trademarks.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\AssetTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Zalo Official Account ID of the advertiser.
     *
     * Generated from protobuf field <code>int64 oa_id = 1;</code>
     * @return int|string
     */
    public function getOaId()
    {
        return $this->readOneof(1);
    }

    public function hasOaId()
    {
        return $this->hasOneof(1);
    }

    /**
     * Zalo Official Account ID of the advertiser.
     *
     * Generated from protobuf field <code>int64 oa_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setOaId($var)
    {
        GPBUtil::checkInt64($var);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Custom name generated by the advertiser for their Zalo Account.
     * These names will usually be registered brands or trademarks.
     *
     * Generated from protobuf field <code>string custom_name = 2;</code>
     * @return string
     */
    public function getCustomName()
    {
        return $this->readOneof(2);
    }

    public function hasCustomName()
    {
        return $this->hasOneof(2);
    }

    /**
     * Custom name generated by the advertiser for their Zalo Account.
     * These names will usually be registered brands or trademarks.
     *
     * Generated from protobuf field <code>string custom_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCustomName($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getZaloId()
    {
        return $this->whichOneof("zalo_id");
    }

}

