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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Webhook-specific Messages
 *
 * Generated from protobuf message <code>plugnmeet.RoomArtifactWebhookEvent</code>
 */
class RoomArtifactWebhookEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactType type = 1;</code>
     */
    protected $type = 0;
    /**
     * Generated from protobuf field <code>string artifact_id = 2;</code>
     */
    protected $artifact_id = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactMetadata metadata = 3;</code>
     */
    protected $metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *     @type string $artifact_id
     *     @type \Mynaparrot\PlugnmeetProto\RoomArtifactMetadata $metadata
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRoomArtifacts::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactType type = 1;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactType type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\RoomArtifactType::class);
        $this->type = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactMetadata metadata = 3;</code>
     * @return \Mynaparrot\PlugnmeetProto\RoomArtifactMetadata|null
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactMetadata metadata = 3;</code>
     * @param \Mynaparrot\PlugnmeetProto\RoomArtifactMetadata $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\RoomArtifactMetadata::class);
        $this->metadata = $var;

        return $this;
    }

}

