<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




class LiveLocationMessage extends \Google\Protobuf\Internal\Message
{
    


    protected $degreesLatitude = null;
    


    protected $degreesLongitude = null;
    


    protected $accuracyInMeters = null;
    


    protected $speedInMps = null;
    


    protected $degreesClockwiseFromMagneticNorth = null;
    


    protected $caption = null;
    


    protected $sequenceNumber = null;
    


    protected $timeOffset = null;
    


    protected $jpegThumbnail = null;
    


    protected $contextInfo = null;

    

















    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getDegreesLatitude()
    {
        return isset($this->degreesLatitude) ? $this->degreesLatitude : 0.0;
    }

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

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

    




    public function setDegreesLatitude($var)
    {
        GPBUtil::checkDouble($var);
        $this->degreesLatitude = $var;

        return $this;
    }

    



    public function getDegreesLongitude()
    {
        return isset($this->degreesLongitude) ? $this->degreesLongitude : 0.0;
    }

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

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

    




    public function setDegreesLongitude($var)
    {
        GPBUtil::checkDouble($var);
        $this->degreesLongitude = $var;

        return $this;
    }

    



    public function getAccuracyInMeters()
    {
        return isset($this->accuracyInMeters) ? $this->accuracyInMeters : 0;
    }

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

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

    




    public function setAccuracyInMeters($var)
    {
        GPBUtil::checkUint32($var);
        $this->accuracyInMeters = $var;

        return $this;
    }

    



    public function getSpeedInMps()
    {
        return isset($this->speedInMps) ? $this->speedInMps : 0.0;
    }

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

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

    




    public function setSpeedInMps($var)
    {
        GPBUtil::checkFloat($var);
        $this->speedInMps = $var;

        return $this;
    }

    



    public function getDegreesClockwiseFromMagneticNorth()
    {
        return isset($this->degreesClockwiseFromMagneticNorth) ? $this->degreesClockwiseFromMagneticNorth : 0;
    }

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

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

    




    public function setDegreesClockwiseFromMagneticNorth($var)
    {
        GPBUtil::checkUint32($var);
        $this->degreesClockwiseFromMagneticNorth = $var;

        return $this;
    }

    



    public function getCaption()
    {
        return isset($this->caption) ? $this->caption : '';
    }

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

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

    




    public function setCaption($var)
    {
        GPBUtil::checkString($var, True);
        $this->caption = $var;

        return $this;
    }

    



    public function getSequenceNumber()
    {
        return isset($this->sequenceNumber) ? $this->sequenceNumber : 0;
    }

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

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

    




    public function setSequenceNumber($var)
    {
        GPBUtil::checkInt64($var);
        $this->sequenceNumber = $var;

        return $this;
    }

    



    public function getTimeOffset()
    {
        return isset($this->timeOffset) ? $this->timeOffset : 0;
    }

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

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

    




    public function setTimeOffset($var)
    {
        GPBUtil::checkUint32($var);
        $this->timeOffset = $var;

        return $this;
    }

    



    public function getJpegThumbnail()
    {
        return isset($this->jpegThumbnail) ? $this->jpegThumbnail : '';
    }

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

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

    




    public function setJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->jpegThumbnail = $var;

        return $this;
    }

    



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

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

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

    




    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

}

