123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: route_guide.proto
- namespace Routeguide;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Points are represented as latitude-longitude pairs in the E7 representation
- * (degrees multiplied by 10**7 and rounded to the nearest integer).
- * Latitudes should be in the range +/- 90 degrees and longitude should be in
- * the range +/- 180 degrees (inclusive).
- *
- * Generated from protobuf message <code>routeguide.Point</code>
- */
- class Point extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>int32 latitude = 1;</code>
- */
- protected $latitude = 0;
- /**
- * Generated from protobuf field <code>int32 longitude = 2;</code>
- */
- protected $longitude = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $latitude
- * @type int $longitude
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\RouteGuide::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>int32 latitude = 1;</code>
- * @return int
- */
- public function getLatitude()
- {
- return $this->latitude;
- }
- /**
- * Generated from protobuf field <code>int32 latitude = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setLatitude($var)
- {
- GPBUtil::checkInt32($var);
- $this->latitude = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 longitude = 2;</code>
- * @return int
- */
- public function getLongitude()
- {
- return $this->longitude;
- }
- /**
- * Generated from protobuf field <code>int32 longitude = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setLongitude($var)
- {
- GPBUtil::checkInt32($var);
- $this->longitude = $var;
- return $this;
- }
- }
|