<?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.LocationMessage</code>
 */
class LocationMessage 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 string name = 3;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional string address = 4;</code>
     */
    protected $address = null;
    /**
     * Generated from protobuf field <code>optional string url = 5;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional bool isLive = 6;</code>
     */
    protected $isLive = null;
    /**
     * Generated from protobuf field <code>optional uint32 accuracyInMeters = 7;</code>
     */
    protected $accuracyInMeters = null;
    /**
     * Generated from protobuf field <code>optional float speedInMps = 8;</code>
     */
    protected $speedInMps = null;
    /**
     * Generated from protobuf field <code>optional uint32 degreesClockwiseFromMagneticNorth = 9;</code>
     */
    protected $degreesClockwiseFromMagneticNorth = null;
    /**
     * Generated from protobuf field <code>optional string comment = 11;</code>
     */
    protected $comment = 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 string $name
     *     @type string $address
     *     @type string $url
     *     @type bool $isLive
     *     @type int $accuracyInMeters
     *     @type float $speedInMps
     *     @type int $degreesClockwiseFromMagneticNorth
     *     @type string $comment
     *     @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 string name = 3;</code>
     * @return string
     */
    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

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

        return $this;
    }

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

    public function hasAddress()
    {
        return isset($this->address);
    }

    public function clearAddress()
    {
        unset($this->address);
    }

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

        return $this;
    }

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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isLive = 6;</code>
     * @return bool
     */
    public function getIsLive()
    {
        return isset($this->isLive) ? $this->isLive : false;
    }

    public function hasIsLive()
    {
        return isset($this->isLive);
    }

    public function clearIsLive()
    {
        unset($this->isLive);
    }

    /**
     * Generated from protobuf field <code>optional bool isLive = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsLive($var)
    {
        GPBUtil::checkBool($var);
        $this->isLive = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 accuracyInMeters = 7;</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 = 7;</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 = 8;</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 = 8;</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 = 9;</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 = 9;</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 comment = 11;</code>
     * @return string
     */
    public function getComment()
    {
        return isset($this->comment) ? $this->comment : '';
    }

    public function hasComment()
    {
        return isset($this->comment);
    }

    public function clearComment()
    {
        unset($this->comment);
    }

    /**
     * Generated from protobuf field <code>optional string comment = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setComment($var)
    {
        GPBUtil::checkString($var, True);
        $this->comment = $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;
    }

}

