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

namespace PhpWA\Protocol\Proto\BotUnifiedResponseMutation;

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

/**
 * Generated from protobuf message <code>proto.BotUnifiedResponseMutation.MediaDetailsMetadata</code>
 */
class MediaDetailsMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotMediaMetadata highResMedia = 2;</code>
     */
    protected $highResMedia = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotMediaMetadata previewMedia = 3;</code>
     */
    protected $previewMedia = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type \PhpWA\Protocol\Proto\BotMediaMetadata $highResMedia
     *     @type \PhpWA\Protocol\Proto\BotMediaMetadata $previewMedia
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string id = 1;</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 = 1;</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 .proto.BotMediaMetadata highResMedia = 2;</code>
     * @return \PhpWA\Protocol\Proto\BotMediaMetadata|null
     */
    public function getHighResMedia()
    {
        return $this->highResMedia;
    }

    public function hasHighResMedia()
    {
        return isset($this->highResMedia);
    }

    public function clearHighResMedia()
    {
        unset($this->highResMedia);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMediaMetadata highResMedia = 2;</code>
     * @param \PhpWA\Protocol\Proto\BotMediaMetadata $var
     * @return $this
     */
    public function setHighResMedia($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\BotMediaMetadata::class);
        $this->highResMedia = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMediaMetadata previewMedia = 3;</code>
     * @return \PhpWA\Protocol\Proto\BotMediaMetadata|null
     */
    public function getPreviewMedia()
    {
        return $this->previewMedia;
    }

    public function hasPreviewMedia()
    {
        return isset($this->previewMedia);
    }

    public function clearPreviewMedia()
    {
        unset($this->previewMedia);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMediaMetadata previewMedia = 3;</code>
     * @param \PhpWA\Protocol\Proto\BotMediaMetadata $var
     * @return $this
     */
    public function setPreviewMedia($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\BotMediaMetadata::class);
        $this->previewMedia = $var;

        return $this;
    }

}

