<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\AIRichResponseMapMetadata;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation</code>
 */
class AIRichResponseMapAnnotation extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 annotationNumber = 1;</code>
     */
    protected $annotationNumber = null;
    /**
     * Generated from protobuf field <code>optional double latitude = 2;</code>
     */
    protected $latitude = null;
    /**
     * Generated from protobuf field <code>optional double longitude = 3;</code>
     */
    protected $longitude = null;
    /**
     * Generated from protobuf field <code>optional string title = 4;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string body = 5;</code>
     */
    protected $body = null;

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

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

    public function hasAnnotationNumber()
    {
        return isset($this->annotationNumber);
    }

    public function clearAnnotationNumber()
    {
        unset($this->annotationNumber);
    }

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

        return $this;
    }

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

    public function hasLatitude()
    {
        return isset($this->latitude);
    }

    public function clearLatitude()
    {
        unset($this->latitude);
    }

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

        return $this;
    }

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

    public function hasLongitude()
    {
        return isset($this->longitude);
    }

    public function clearLongitude()
    {
        unset($this->longitude);
    }

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

        return $this;
    }

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

        return $this;
    }

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

    public function hasBody()
    {
        return isset($this->body);
    }

    public function clearBody()
    {
        unset($this->body);
    }

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

        return $this;
    }

}

