<?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.LiveLocationMessage</code>
 */
class LiveLocationMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional double degreesLatitude = 1;</code>
     */
    protected $degreesLatitude = null;
    /**
     * Generated from protobuf field <code>optional double degreesLongitude = 2;</code>
     */
    protected $degreesLongitude = null;
    /**
     * Generated from protobuf field <code>optional uint32 accuracyInMeters = 3;</code>
     */
    protected $accuracyInMeters = null;
    /**
     * Generated from protobuf field <code>optional float speedInMps = 4;</code>
     */
    protected $speedInMps = null;
    /**
     * Generated from protobuf field <code>optional uint32 degreesClockwiseFromMagneticNorth = 5;</code>
     */
    protected $degreesClockwiseFromMagneticNorth = null;
    /**
     * Generated from protobuf field <code>optional string caption = 6;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional int64 sequenceNumber = 7;</code>
     */
    protected $sequenceNumber = null;
    /**
     * Generated from protobuf field <code>optional uint32 timeOffset = 8;</code>
     */
    protected $timeOffset = null;
    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     */
    protected $jpegThumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     */
    protected $contextInfo = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $degreesLatitude
     *     @type float $degreesLongitude
     *     @type int $accuracyInMeters
     *     @type float $speedInMps
     *     @type int $degreesClockwiseFromMagneticNorth
     *     @type string $caption
     *     @type int|string $sequenceNumber
     *     @type int $timeOffset
     *     @type string $jpegThumbnail
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional double degreesLatitude = 1;</code>
     * @return float
     */
    public function getDegreesLatitude()
    {
        return isset($this->degreesLatitude) ? $this->degreesLatitude : 0.0;
    }

    public function hasDegreesLatitude()
    {
        return isset($this->degreesLatitude);
    }

    public function clearDegreesLatitude()
    {
        unset($this->degreesLatitude);
    }

    /**
     * Generated from protobuf field <code>optional double degreesLatitude = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setDegreesLatitude($var)
    {
        GPBUtil::checkDouble($var);
        $this->degreesLatitude = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double degreesLongitude = 2;</code>
     * @return float
     */
    public function getDegreesLongitude()
    {
        return isset($this->degreesLongitude) ? $this->degreesLongitude : 0.0;
    }

    public function hasDegreesLongitude()
    {
        return isset($this->degreesLongitude);
    }

    public function clearDegreesLongitude()
    {
        unset($this->degreesLongitude);
    }

    /**
     * Generated from protobuf field <code>optional double degreesLongitude = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setDegreesLongitude($var)
    {
        GPBUtil::checkDouble($var);
        $this->degreesLongitude = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 accuracyInMeters = 3;</code>
     * @return int
     */
    public function getAccuracyInMeters()
    {
        return isset($this->accuracyInMeters) ? $this->accuracyInMeters : 0;
    }

    public function hasAccuracyInMeters()
    {
        return isset($this->accuracyInMeters);
    }

    public function clearAccuracyInMeters()
    {
        unset($this->accuracyInMeters);
    }

    /**
     * Generated from protobuf field <code>optional uint32 accuracyInMeters = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setAccuracyInMeters($var)
    {
        GPBUtil::checkUint32($var);
        $this->accuracyInMeters = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional float speedInMps = 4;</code>
     * @return float
     */
    public function getSpeedInMps()
    {
        return isset($this->speedInMps) ? $this->speedInMps : 0.0;
    }

    public function hasSpeedInMps()
    {
        return isset($this->speedInMps);
    }

    public function clearSpeedInMps()
    {
        unset($this->speedInMps);
    }

    /**
     * Generated from protobuf field <code>optional float speedInMps = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setSpeedInMps($var)
    {
        GPBUtil::checkFloat($var);
        $this->speedInMps = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 degreesClockwiseFromMagneticNorth = 5;</code>
     * @return int
     */
    public function getDegreesClockwiseFromMagneticNorth()
    {
        return isset($this->degreesClockwiseFromMagneticNorth) ? $this->degreesClockwiseFromMagneticNorth : 0;
    }

    public function hasDegreesClockwiseFromMagneticNorth()
    {
        return isset($this->degreesClockwiseFromMagneticNorth);
    }

    public function clearDegreesClockwiseFromMagneticNorth()
    {
        unset($this->degreesClockwiseFromMagneticNorth);
    }

    /**
     * Generated from protobuf field <code>optional uint32 degreesClockwiseFromMagneticNorth = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setDegreesClockwiseFromMagneticNorth($var)
    {
        GPBUtil::checkUint32($var);
        $this->degreesClockwiseFromMagneticNorth = $var;

        return $this;
    }

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

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

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

        return $this;
    }

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

    public function hasSequenceNumber()
    {
        return isset($this->sequenceNumber);
    }

    public function clearSequenceNumber()
    {
        unset($this->sequenceNumber);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 timeOffset = 8;</code>
     * @return int
     */
    public function getTimeOffset()
    {
        return isset($this->timeOffset) ? $this->timeOffset : 0;
    }

    public function hasTimeOffset()
    {
        return isset($this->timeOffset);
    }

    public function clearTimeOffset()
    {
        unset($this->timeOffset);
    }

    /**
     * Generated from protobuf field <code>optional uint32 timeOffset = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setTimeOffset($var)
    {
        GPBUtil::checkUint32($var);
        $this->timeOffset = $var;

        return $this;
    }

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

    public function hasJpegThumbnail()
    {
        return isset($this->jpegThumbnail);
    }

    public function clearJpegThumbnail()
    {
        unset($this->jpegThumbnail);
    }

    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     * @param string $var
     * @return $this
     */
    public function setJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->jpegThumbnail = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</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 = 17;</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;
    }

}

