<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: PublicAggreDealsV3Api.proto

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

/**
 * Generated from protobuf message <code>PublicAggreDealsV3Api</code>
 */
class PublicAggreDealsV3Api extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .PublicAggreDealsV3ApiItem deals = 1;</code>
     */
    private $deals;
    /**
     * Generated from protobuf field <code>string eventType = 2;</code>
     */
    protected $eventType = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\PublicAggreDealsV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $deals
     *     @type string $eventType
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PublicAggreDealsV3Api::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .PublicAggreDealsV3ApiItem deals = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeals()
    {
        return $this->deals;
    }

    /**
     * Generated from protobuf field <code>repeated .PublicAggreDealsV3ApiItem deals = 1;</code>
     * @param array<\PublicAggreDealsV3ApiItem>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeals($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PublicAggreDealsV3ApiItem::class);
        $this->deals = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string eventType = 2;</code>
     * @return string
     */
    public function getEventType()
    {
        return $this->eventType;
    }

    /**
     * Generated from protobuf field <code>string eventType = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEventType($var)
    {
        GPBUtil::checkString($var, True);
        $this->eventType = $var;

        return $this;
    }

}

