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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseMapMetadata</code>
 */
class AIRichResponseMapMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional double centerLatitude = 1;</code>
     */
    protected $centerLatitude = null;
    /**
     * Generated from protobuf field <code>optional double centerLongitude = 2;</code>
     */
    protected $centerLongitude = null;
    /**
     * Generated from protobuf field <code>optional double latitudeDelta = 3;</code>
     */
    protected $latitudeDelta = null;
    /**
     * Generated from protobuf field <code>optional double longitudeDelta = 4;</code>
     */
    protected $longitudeDelta = null;
    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation annotations = 5;</code>
     */
    private $annotations;
    /**
     * Generated from protobuf field <code>optional bool showInfoList = 6;</code>
     */
    protected $showInfoList = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $centerLatitude
     *     @type float $centerLongitude
     *     @type float $latitudeDelta
     *     @type float $longitudeDelta
     *     @type \PhpWA\Protocol\Proto\AIRichResponseMapMetadata\AIRichResponseMapAnnotation[] $annotations
     *     @type bool $showInfoList
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasCenterLatitude()
    {
        return isset($this->centerLatitude);
    }

    public function clearCenterLatitude()
    {
        unset($this->centerLatitude);
    }

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

        return $this;
    }

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

    public function hasCenterLongitude()
    {
        return isset($this->centerLongitude);
    }

    public function clearCenterLongitude()
    {
        unset($this->centerLongitude);
    }

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

        return $this;
    }

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

    public function hasLatitudeDelta()
    {
        return isset($this->latitudeDelta);
    }

    public function clearLatitudeDelta()
    {
        unset($this->latitudeDelta);
    }

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

        return $this;
    }

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

    public function hasLongitudeDelta()
    {
        return isset($this->longitudeDelta);
    }

    public function clearLongitudeDelta()
    {
        unset($this->longitudeDelta);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation annotations = 5;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIRichResponseMapMetadata\AIRichResponseMapAnnotation>
     */
    public function getAnnotations()
    {
        return $this->annotations;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseMapMetadata.AIRichResponseMapAnnotation annotations = 5;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseMapMetadata\AIRichResponseMapAnnotation[] $var
     * @return $this
     */
    public function setAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\AIRichResponseMapMetadata\AIRichResponseMapAnnotation::class);
        $this->annotations = $arr;

        return $this;
    }

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

    public function hasShowInfoList()
    {
        return isset($this->showInfoList);
    }

    public function clearShowInfoList()
    {
        unset($this->showInfoList);
    }

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

        return $this;
    }

}

