<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/vc/v1/keyapis_vc_camera_video_data_v1.proto

namespace Keyapis\Vc\V1\CameraVideoData;

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

/**
 * Координаты месторасположения
 *
 * Generated from protobuf message <code>keyapis.vc.v1.CameraVideoData.Location</code>
 */
class Location extends \Google\Protobuf\Internal\Message
{
    /**
     * Широта
     *
     * Generated from protobuf field <code>double lat = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $lat = 0.0;
    /**
     * Долгота
     *
     * Generated from protobuf field <code>double lng = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $lng = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $lat
     *           Широта
     *     @type float $lng
     *           Долгота
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraVideoDataV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Широта
     *
     * Generated from protobuf field <code>double lat = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return float
     */
    public function getLat()
    {
        return $this->lat;
    }

    /**
     * Широта
     *
     * Generated from protobuf field <code>double lat = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param float $var
     * @return $this
     */
    public function setLat($var)
    {
        GPBUtil::checkDouble($var);
        $this->lat = $var;

        return $this;
    }

    /**
     * Долгота
     *
     * Generated from protobuf field <code>double lng = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return float
     */
    public function getLng()
    {
        return $this->lng;
    }

    /**
     * Долгота
     *
     * Generated from protobuf field <code>double lng = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param float $var
     * @return $this
     */
    public function setLng($var)
    {
        GPBUtil::checkDouble($var);
        $this->lng = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, \Keyapis\Vc\V1\CameraVideoData_Location::class);

