123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?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;
- /**
- * A RouteSummary is received in response to a RecordRoute rpc.
- * It contains the number of individual points received, the number of
- * detected features, and the total distance covered as the cumulative sum of
- * the distance between each point.
- *
- * Generated from protobuf message <code>routeguide.RouteSummary</code>
- */
- class RouteSummary extends \Google\Protobuf\Internal\Message
- {
- /**
- * The number of points received.
- *
- * Generated from protobuf field <code>int32 point_count = 1;</code>
- */
- protected $point_count = 0;
- /**
- * The number of known features passed while traversing the route.
- *
- * Generated from protobuf field <code>int32 feature_count = 2;</code>
- */
- protected $feature_count = 0;
- /**
- * The distance covered in metres.
- *
- * Generated from protobuf field <code>int32 distance = 3;</code>
- */
- protected $distance = 0;
- /**
- * The duration of the traversal in seconds.
- *
- * Generated from protobuf field <code>int32 elapsed_time = 4;</code>
- */
- 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 <code>int32 point_count = 1;</code>
- * @return int
- */
- public function getPointCount()
- {
- return $this->point_count;
- }
- /**
- * The number of points received.
- *
- * Generated from protobuf field <code>int32 point_count = 1;</code>
- * @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 <code>int32 feature_count = 2;</code>
- * @return int
- */
- public function getFeatureCount()
- {
- return $this->feature_count;
- }
- /**
- * The number of known features passed while traversing the route.
- *
- * Generated from protobuf field <code>int32 feature_count = 2;</code>
- * @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 <code>int32 distance = 3;</code>
- * @return int
- */
- public function getDistance()
- {
- return $this->distance;
- }
- /**
- * The distance covered in metres.
- *
- * Generated from protobuf field <code>int32 distance = 3;</code>
- * @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 <code>int32 elapsed_time = 4;</code>
- * @return int
- */
- public function getElapsedTime()
- {
- return $this->elapsed_time;
- }
- /**
- * The duration of the traversal in seconds.
- *
- * Generated from protobuf field <code>int32 elapsed_time = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setElapsedTime($var)
- {
- GPBUtil::checkInt32($var);
- $this->elapsed_time = $var;
- return $this;
- }
- }
|