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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.InteractiveResponseMessage</code>
 */
class InteractiveResponseMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveResponseMessage.Body body = 1;</code>
     */
    protected $body = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 15;</code>
     */
    protected $contextInfo = null;
    protected $interactiveResponseMessage;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\Body $body
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\NativeFlowResponseMessage $nativeFlowResponseMessage
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.InteractiveResponseMessage.Body body = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\Body|null
     */
    public function getBody()
    {
        return $this->body;
    }

    public function hasBody()
    {
        return isset($this->body);
    }

    public function clearBody()
    {
        unset($this->body);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 15;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveResponseMessage.NativeFlowResponseMessage nativeFlowResponseMessage = 2;</code>
     * @return \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\NativeFlowResponseMessage|null
     */
    public function getNativeFlowResponseMessage()
    {
        return $this->readOneof(2);
    }

    public function hasNativeFlowResponseMessage()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.InteractiveResponseMessage.NativeFlowResponseMessage nativeFlowResponseMessage = 2;</code>
     * @param \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\NativeFlowResponseMessage $var
     * @return $this
     */
    public function setNativeFlowResponseMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\InteractiveResponseMessage\NativeFlowResponseMessage::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getInteractiveResponseMessage()
    {
        return $this->whichOneof("interactiveResponseMessage");
    }

}

