routeguide.RouteSummary
*/
class RouteSummary extends \Google\Protobuf\Internal\Message
{
/**
* The number of points received.
*
* Generated from protobuf field int32 point_count = 1;
*/
protected $point_count = 0;
/**
* The number of known features passed while traversing the route.
*
* Generated from protobuf field int32 feature_count = 2;
*/
protected $feature_count = 0;
/**
* The distance covered in metres.
*
* Generated from protobuf field int32 distance = 3;
*/
protected $distance = 0;
/**
* The duration of the traversal in seconds.
*
* Generated from protobuf field int32 elapsed_time = 4;
*/
protected $elapsed_time = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $point_count
* The number of points received.
* @type int $feature_count
* The number of known features passed while traversing the route.
* @type int $distance
* The distance covered in metres.
* @type int $elapsed_time
* The duration of the traversal in seconds.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\RouteGuide::initOnce();
parent::__construct($data);
}
/**
* The number of points received.
*
* Generated from protobuf field int32 point_count = 1;
* @return int
*/
public function getPointCount()
{
return $this->point_count;
}
/**
* The number of points received.
*
* Generated from protobuf field int32 point_count = 1;
* @param int $var
* @return $this
*/
public function setPointCount($var)
{
GPBUtil::checkInt32($var);
$this->point_count = $var;
return $this;
}
/**
* The number of known features passed while traversing the route.
*
* Generated from protobuf field int32 feature_count = 2;
* @return int
*/
public function getFeatureCount()
{
return $this->feature_count;
}
/**
* The number of known features passed while traversing the route.
*
* Generated from protobuf field int32 feature_count = 2;
* @param int $var
* @return $this
*/
public function setFeatureCount($var)
{
GPBUtil::checkInt32($var);
$this->feature_count = $var;
return $this;
}
/**
* The distance covered in metres.
*
* Generated from protobuf field int32 distance = 3;
* @return int
*/
public function getDistance()
{
return $this->distance;
}
/**
* The distance covered in metres.
*
* Generated from protobuf field int32 distance = 3;
* @param int $var
* @return $this
*/
public function setDistance($var)
{
GPBUtil::checkInt32($var);
$this->distance = $var;
return $this;
}
/**
* The duration of the traversal in seconds.
*
* Generated from protobuf field int32 elapsed_time = 4;
* @return int
*/
public function getElapsedTime()
{
return $this->elapsed_time;
}
/**
* The duration of the traversal in seconds.
*
* Generated from protobuf field int32 elapsed_time = 4;
* @param int $var
* @return $this
*/
public function setElapsedTime($var)
{
GPBUtil::checkInt32($var);
$this->elapsed_time = $var;
return $this;
}
}