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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * A single artifact entry in the list response
 *
 * Generated from protobuf message <code>plugnmeet.ArtifactInfo</code>
 */
class ArtifactInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string artifact_id = 1;</code>
     */
    protected $artifact_id = '';
    /**
     * Generated from protobuf field <code>string room_id = 2;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactType type = 3;</code>
     */
    protected $type = 0;
    /**
     * Generated from protobuf field <code>string created = 4;</code>
     */
    protected $created = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactMetadata metadata = 5;</code>
     */
    protected $metadata = null;

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

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

    /**
     * Generated from protobuf field <code>string artifact_id = 1;</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>string room_id = 2;</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomArtifactType type = 3;</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 created = 4;</code>
     * @return string
     */
    public function getCreated()
    {
        return $this->created;
    }

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

        return $this;
    }

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

        return $this;
    }

}

