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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.BotUnifiedResponseMutation</code>
 */
class BotUnifiedResponseMutation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotUnifiedResponseMutation.SideBySideMetadata sbsMetadata = 1;</code>
     */
    protected $sbsMetadata = null;
    /**
     * Generated from protobuf field <code>repeated .proto.BotUnifiedResponseMutation.MediaDetailsMetadata mediaDetailsMetadataList = 2;</code>
     */
    private $mediaDetailsMetadataList;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\SideBySideMetadata $sbsMetadata
     *     @type \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\MediaDetailsMetadata[] $mediaDetailsMetadataList
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotUnifiedResponseMutation.SideBySideMetadata sbsMetadata = 1;</code>
     * @return \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\SideBySideMetadata|null
     */
    public function getSbsMetadata()
    {
        return $this->sbsMetadata;
    }

    public function hasSbsMetadata()
    {
        return isset($this->sbsMetadata);
    }

    public function clearSbsMetadata()
    {
        unset($this->sbsMetadata);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotUnifiedResponseMutation.SideBySideMetadata sbsMetadata = 1;</code>
     * @param \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\SideBySideMetadata $var
     * @return $this
     */
    public function setSbsMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\SideBySideMetadata::class);
        $this->sbsMetadata = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotUnifiedResponseMutation.MediaDetailsMetadata mediaDetailsMetadataList = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\BotUnifiedResponseMutation\MediaDetailsMetadata>
     */
    public function getMediaDetailsMetadataList()
    {
        return $this->mediaDetailsMetadataList;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotUnifiedResponseMutation.MediaDetailsMetadata mediaDetailsMetadataList = 2;</code>
     * @param \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\MediaDetailsMetadata[] $var
     * @return $this
     */
    public function setMediaDetailsMetadataList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\BotUnifiedResponseMutation\MediaDetailsMetadata::class);
        $this->mediaDetailsMetadataList = $arr;

        return $this;
    }

}

