<?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.ScheduledCallCreationMessage</code>
 */
class ScheduledCallCreationMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional int64 scheduledTimestampMs = 1;</code>
     */
    protected $scheduledTimestampMs = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ScheduledCallCreationMessage.CallType callType = 2;</code>
     */
    protected $callType = null;
    /**
     * Generated from protobuf field <code>optional string title = 3;</code>
     */
    protected $title = null;

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

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

    public function hasScheduledTimestampMs()
    {
        return isset($this->scheduledTimestampMs);
    }

    public function clearScheduledTimestampMs()
    {
        unset($this->scheduledTimestampMs);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ScheduledCallCreationMessage.CallType callType = 2;</code>
     * @return int
     */
    public function getCallType()
    {
        return isset($this->callType) ? $this->callType : 0;
    }

    public function hasCallType()
    {
        return isset($this->callType);
    }

    public function clearCallType()
    {
        unset($this->callType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ScheduledCallCreationMessage.CallType callType = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCallType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\ScheduledCallCreationMessage\CallType::class);
        $this->callType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string title = 3;</code>
     * @return string
     */
    public function getTitle()
    {
        return isset($this->title) ? $this->title : '';
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

}

