routeguide.Point */ class Point extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 latitude = 1; */ protected $latitude = 0; /** * Generated from protobuf field int32 longitude = 2; */ 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 int32 latitude = 1; * @return int */ public function getLatitude() { return $this->latitude; } /** * Generated from protobuf field int32 latitude = 1; * @param int $var * @return $this */ public function setLatitude($var) { GPBUtil::checkInt32($var); $this->latitude = $var; return $this; } /** * Generated from protobuf field int32 longitude = 2; * @return int */ public function getLongitude() { return $this->longitude; } /** * Generated from protobuf field int32 longitude = 2; * @param int $var * @return $this */ public function setLongitude($var) { GPBUtil::checkInt32($var); $this->longitude = $var; return $this; } }