<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/vision/v1/image_annotator.proto

namespace Google\Cloud\Vision\V1;

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

/**
 * Rectangle determined by min and max `LatLng` pairs.
 *
 * Generated from protobuf message <code>google.cloud.vision.v1.LatLongRect</code>
 */
class LatLongRect extends \Google\Protobuf\Internal\Message
{
    /**
     * Min lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng min_lat_lng = 1;</code>
     */
    private $min_lat_lng = null;
    /**
     * Max lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng max_lat_lng = 2;</code>
     */
    private $max_lat_lng = null;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Vision\V1\ImageAnnotator::initOnce();
        parent::__construct();
    }

    /**
     * Min lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng min_lat_lng = 1;</code>
     * @return \Google\Type\LatLng
     */
    public function getMinLatLng()
    {
        return $this->min_lat_lng;
    }

    /**
     * Min lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng min_lat_lng = 1;</code>
     * @param \Google\Type\LatLng $var
     * @return $this
     */
    public function setMinLatLng($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\LatLng::class);
        $this->min_lat_lng = $var;

        return $this;
    }

    /**
     * Max lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng max_lat_lng = 2;</code>
     * @return \Google\Type\LatLng
     */
    public function getMaxLatLng()
    {
        return $this->max_lat_lng;
    }

    /**
     * Max lat/long pair.
     *
     * Generated from protobuf field <code>.google.type.LatLng max_lat_lng = 2;</code>
     * @param \Google\Type\LatLng $var
     * @return $this
     */
    public function setMaxLatLng($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\LatLng::class);
        $this->max_lat_lng = $var;

        return $this;
    }

}

