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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.CommonNotifyEvent</code>
 */
class CommonNotifyEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string event = 1;</code>
     */
    protected $event = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.NotifyEventRoom room = 2;</code>
     */
    protected $room = null;
    /**
     * Generated from protobuf field <code>optional .livekit.ParticipantInfo participant = 3;</code>
     */
    protected $participant = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecordingInfoEvent recording_info = 4;</code>
     */
    protected $recording_info = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.SpeechServiceEvent speech_service = 5;</code>
     */
    protected $speech_service = null;
    /**
     * Generated from protobuf field <code>optional .livekit.TrackInfo track = 6;</code>
     */
    protected $track = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.AnalyticsEvent analytics = 7;</code>
     */
    protected $analytics = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactWebhookEvent room_artifact = 8;</code>
     */
    protected $room_artifact = null;
    /**
     * Generated from protobuf field <code>optional string id = 9;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>optional int64 created_at = 10;</code>
     */
    protected $created_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $event
     *     @type \Mynaparrot\PlugnmeetProto\NotifyEventRoom $room
     *     @type \Livekit\ParticipantInfo $participant
     *     @type \Mynaparrot\PlugnmeetProto\RecordingInfoEvent $recording_info
     *     @type \Mynaparrot\PlugnmeetProto\SpeechServiceEvent $speech_service
     *     @type \Livekit\TrackInfo $track
     *     @type \Mynaparrot\PlugnmeetProto\AnalyticsEvent $analytics
     *     @type \Mynaparrot\PlugnmeetProto\RoomArtifactWebhookEvent $room_artifact
     *     @type string $id
     *     @type int|string $created_at
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string event = 1;</code>
     * @return string
     */
    public function getEvent()
    {
        return isset($this->event) ? $this->event : '';
    }

    public function hasEvent()
    {
        return isset($this->event);
    }

    public function clearEvent()
    {
        unset($this->event);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.NotifyEventRoom room = 2;</code>
     * @return \Mynaparrot\PlugnmeetProto\NotifyEventRoom|null
     */
    public function getRoom()
    {
        return $this->room;
    }

    public function hasRoom()
    {
        return isset($this->room);
    }

    public function clearRoom()
    {
        unset($this->room);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.NotifyEventRoom room = 2;</code>
     * @param \Mynaparrot\PlugnmeetProto\NotifyEventRoom $var
     * @return $this
     */
    public function setRoom($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\NotifyEventRoom::class);
        $this->room = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .livekit.ParticipantInfo participant = 3;</code>
     * @return \Livekit\ParticipantInfo|null
     */
    public function getParticipant()
    {
        return $this->participant;
    }

    public function hasParticipant()
    {
        return isset($this->participant);
    }

    public function clearParticipant()
    {
        unset($this->participant);
    }

    /**
     * Generated from protobuf field <code>optional .livekit.ParticipantInfo participant = 3;</code>
     * @param \Livekit\ParticipantInfo $var
     * @return $this
     */
    public function setParticipant($var)
    {
        GPBUtil::checkMessage($var, \Livekit\ParticipantInfo::class);
        $this->participant = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecordingInfoEvent recording_info = 4;</code>
     * @return \Mynaparrot\PlugnmeetProto\RecordingInfoEvent|null
     */
    public function getRecordingInfo()
    {
        return $this->recording_info;
    }

    public function hasRecordingInfo()
    {
        return isset($this->recording_info);
    }

    public function clearRecordingInfo()
    {
        unset($this->recording_info);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecordingInfoEvent recording_info = 4;</code>
     * @param \Mynaparrot\PlugnmeetProto\RecordingInfoEvent $var
     * @return $this
     */
    public function setRecordingInfo($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\RecordingInfoEvent::class);
        $this->recording_info = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.SpeechServiceEvent speech_service = 5;</code>
     * @return \Mynaparrot\PlugnmeetProto\SpeechServiceEvent|null
     */
    public function getSpeechService()
    {
        return $this->speech_service;
    }

    public function hasSpeechService()
    {
        return isset($this->speech_service);
    }

    public function clearSpeechService()
    {
        unset($this->speech_service);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.SpeechServiceEvent speech_service = 5;</code>
     * @param \Mynaparrot\PlugnmeetProto\SpeechServiceEvent $var
     * @return $this
     */
    public function setSpeechService($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\SpeechServiceEvent::class);
        $this->speech_service = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .livekit.TrackInfo track = 6;</code>
     * @return \Livekit\TrackInfo|null
     */
    public function getTrack()
    {
        return $this->track;
    }

    public function hasTrack()
    {
        return isset($this->track);
    }

    public function clearTrack()
    {
        unset($this->track);
    }

    /**
     * Generated from protobuf field <code>optional .livekit.TrackInfo track = 6;</code>
     * @param \Livekit\TrackInfo $var
     * @return $this
     */
    public function setTrack($var)
    {
        GPBUtil::checkMessage($var, \Livekit\TrackInfo::class);
        $this->track = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.AnalyticsEvent analytics = 7;</code>
     * @return \Mynaparrot\PlugnmeetProto\AnalyticsEvent|null
     */
    public function getAnalytics()
    {
        return $this->analytics;
    }

    public function hasAnalytics()
    {
        return isset($this->analytics);
    }

    public function clearAnalytics()
    {
        unset($this->analytics);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.AnalyticsEvent analytics = 7;</code>
     * @param \Mynaparrot\PlugnmeetProto\AnalyticsEvent $var
     * @return $this
     */
    public function setAnalytics($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\AnalyticsEvent::class);
        $this->analytics = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactWebhookEvent room_artifact = 8;</code>
     * @return \Mynaparrot\PlugnmeetProto\RoomArtifactWebhookEvent|null
     */
    public function getRoomArtifact()
    {
        return $this->room_artifact;
    }

    public function hasRoomArtifact()
    {
        return isset($this->room_artifact);
    }

    public function clearRoomArtifact()
    {
        unset($this->room_artifact);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RoomArtifactWebhookEvent room_artifact = 8;</code>
     * @param \Mynaparrot\PlugnmeetProto\RoomArtifactWebhookEvent $var
     * @return $this
     */
    public function setRoomArtifact($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\RoomArtifactWebhookEvent::class);
        $this->room_artifact = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string id = 9;</code>
     * @return string
     */
    public function getId()
    {
        return isset($this->id) ? $this->id : '';
    }

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 created_at = 10;</code>
     * @return int|string
     */
    public function getCreatedAt()
    {
        return isset($this->created_at) ? $this->created_at : 0;
    }

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

    /**
     * Generated from protobuf field <code>optional int64 created_at = 10;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkInt64($var);
        $this->created_at = $var;

        return $this;
    }

}

