<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/ad/v1/keyapis_ad_salepoint_v1.proto

namespace Keyapis\Ad\V1;

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

/**
 * Ответ на запрос получения точки продаж
 *
 * Generated from protobuf message <code>keyapis.ad.v1.GetSalepointResponse</code>
 */
class GetSalepointResponse extends \Google\Protobuf\Internal\Message
{
    protected $type;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Ad\V1\Salepoint $data
     *           Точка продаж
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Ad\V1\KeyapisAdSalepointV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Точка продаж
     *
     * Generated from protobuf field <code>.keyapis.ad.v1.Salepoint data = 1;</code>
     * @return \Keyapis\Ad\V1\Salepoint|null
     */
    public function getData()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Точка продаж
     *
     * Generated from protobuf field <code>.keyapis.ad.v1.Salepoint data = 1;</code>
     * @param \Keyapis\Ad\V1\Salepoint $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Ad\V1\Salepoint::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

