routeguide.Rectangle */ class Rectangle extends \Google\Protobuf\Internal\Message { /** * One corner of the rectangle. * * Generated from protobuf field .routeguide.Point lo = 1; */ protected $lo = null; /** * The other corner of the rectangle. * * Generated from protobuf field .routeguide.Point hi = 2; */ protected $hi = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Routeguide\Point $lo * One corner of the rectangle. * @type \Routeguide\Point $hi * The other corner of the rectangle. * } */ public function __construct($data = NULL) { \GPBMetadata\RouteGuide::initOnce(); parent::__construct($data); } /** * One corner of the rectangle. * * Generated from protobuf field .routeguide.Point lo = 1; * @return \Routeguide\Point|null */ public function getLo() { return isset($this->lo) ? $this->lo : null; } public function hasLo() { return isset($this->lo); } public function clearLo() { unset($this->lo); } /** * One corner of the rectangle. * * Generated from protobuf field .routeguide.Point lo = 1; * @param \Routeguide\Point $var * @return $this */ public function setLo($var) { GPBUtil::checkMessage($var, \Routeguide\Point::class); $this->lo = $var; return $this; } /** * The other corner of the rectangle. * * Generated from protobuf field .routeguide.Point hi = 2; * @return \Routeguide\Point|null */ public function getHi() { return isset($this->hi) ? $this->hi : null; } public function hasHi() { return isset($this->hi); } public function clearHi() { unset($this->hi); } /** * The other corner of the rectangle. * * Generated from protobuf field .routeguide.Point hi = 2; * @param \Routeguide\Point $var * @return $this */ public function setHi($var) { GPBUtil::checkMessage($var, \Routeguide\Point::class); $this->hi = $var; return $this; } }