<?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.AIHomeState</code>
 */
class AIHomeState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional int64 lastFetchTime = 1;</code>
     */
    protected $lastFetchTime = null;
    /**
     * Generated from protobuf field <code>repeated .proto.AIHomeState.AIHomeOption capabilityOptions = 2;</code>
     */
    private $capabilityOptions;
    /**
     * Generated from protobuf field <code>repeated .proto.AIHomeState.AIHomeOption conversationOptions = 3;</code>
     */
    private $conversationOptions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $lastFetchTime
     *     @type \PhpWA\Protocol\Proto\AIHomeState\AIHomeOption[] $capabilityOptions
     *     @type \PhpWA\Protocol\Proto\AIHomeState\AIHomeOption[] $conversationOptions
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional int64 lastFetchTime = 1;</code>
     * @return int|string
     */
    public function getLastFetchTime()
    {
        return isset($this->lastFetchTime) ? $this->lastFetchTime : 0;
    }

    public function hasLastFetchTime()
    {
        return isset($this->lastFetchTime);
    }

    public function clearLastFetchTime()
    {
        unset($this->lastFetchTime);
    }

    /**
     * Generated from protobuf field <code>optional int64 lastFetchTime = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLastFetchTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->lastFetchTime = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIHomeState.AIHomeOption capabilityOptions = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIHomeState\AIHomeOption>
     */
    public function getCapabilityOptions()
    {
        return $this->capabilityOptions;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIHomeState.AIHomeOption conversationOptions = 3;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIHomeState\AIHomeOption>
     */
    public function getConversationOptions()
    {
        return $this->conversationOptions;
    }

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

        return $this;
    }

}

