|
|
|
@ -5,15 +5,14 @@ |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class Point extends \DrSlump\Protobuf\Message { |
|
|
|
|
|
|
|
|
|
class Point extends \DrSlump\Protobuf\Message |
|
|
|
|
{ |
|
|
|
|
/** @var int */ |
|
|
|
|
public $latitude = 0; |
|
|
|
|
|
|
|
|
|
/** @var int */ |
|
|
|
|
public $longitude = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @var \Closure[] */ |
|
|
|
|
protected static $__extensions = array(); |
|
|
|
|
|
|
|
|
@ -24,7 +23,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 latitude = 1 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 1; |
|
|
|
|
$f->name = "latitude"; |
|
|
|
|
$f->name = 'latitude'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -33,7 +32,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 longitude = 2 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 2; |
|
|
|
|
$f->name = "longitude"; |
|
|
|
|
$f->name = 'longitude'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -47,76 +46,86 @@ namespace routeguide { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <latitude> has a value |
|
|
|
|
* Check if <latitude> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasLatitude(){ |
|
|
|
|
public function hasLatitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <latitude> value |
|
|
|
|
* Clear <latitude> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function clearLatitude(){ |
|
|
|
|
public function clearLatitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <latitude> value |
|
|
|
|
* Get <latitude> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getLatitude(){ |
|
|
|
|
public function getLatitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <latitude> value |
|
|
|
|
* Set <latitude> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function setLatitude( $value){ |
|
|
|
|
public function setLatitude($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(1, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <longitude> has a value |
|
|
|
|
* Check if <longitude> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasLongitude(){ |
|
|
|
|
public function hasLongitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <longitude> value |
|
|
|
|
* Clear <longitude> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function clearLongitude(){ |
|
|
|
|
public function clearLongitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <longitude> value |
|
|
|
|
* Get <longitude> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getLongitude(){ |
|
|
|
|
public function getLongitude() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <longitude> value |
|
|
|
|
* Set <longitude> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function setLongitude( $value){ |
|
|
|
|
public function setLongitude($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(2, $value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -124,15 +133,14 @@ namespace routeguide { |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class Rectangle extends \DrSlump\Protobuf\Message { |
|
|
|
|
|
|
|
|
|
class Rectangle extends \DrSlump\Protobuf\Message |
|
|
|
|
{ |
|
|
|
|
/** @var \routeguide\Point */ |
|
|
|
|
public $lo = null; |
|
|
|
|
|
|
|
|
|
/** @var \routeguide\Point */ |
|
|
|
|
public $hi = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @var \Closure[] */ |
|
|
|
|
protected static $__extensions = array(); |
|
|
|
|
|
|
|
|
@ -143,7 +151,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL MESSAGE lo = 1 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 1; |
|
|
|
|
$f->name = "lo"; |
|
|
|
|
$f->name = 'lo'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->reference = '\routeguide\Point'; |
|
|
|
@ -152,7 +160,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL MESSAGE hi = 2 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 2; |
|
|
|
|
$f->name = "hi"; |
|
|
|
|
$f->name = 'hi'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->reference = '\routeguide\Point'; |
|
|
|
@ -166,76 +174,86 @@ namespace routeguide { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <lo> has a value |
|
|
|
|
* Check if <lo> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasLo(){ |
|
|
|
|
public function hasLo() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <lo> value |
|
|
|
|
* Clear <lo> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Rectangle |
|
|
|
|
*/ |
|
|
|
|
public function clearLo(){ |
|
|
|
|
public function clearLo() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <lo> value |
|
|
|
|
* Get <lo> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function getLo(){ |
|
|
|
|
public function getLo() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <lo> value |
|
|
|
|
* Set <lo> value. |
|
|
|
|
* |
|
|
|
|
* @param \routeguide\Point $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Rectangle |
|
|
|
|
*/ |
|
|
|
|
public function setLo(\routeguide\Point $value){ |
|
|
|
|
public function setLo(\routeguide\Point $value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(1, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <hi> has a value |
|
|
|
|
* Check if <hi> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasHi(){ |
|
|
|
|
public function hasHi() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <hi> value |
|
|
|
|
* Clear <hi> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Rectangle |
|
|
|
|
*/ |
|
|
|
|
public function clearHi(){ |
|
|
|
|
public function clearHi() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <hi> value |
|
|
|
|
* Get <hi> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function getHi(){ |
|
|
|
|
public function getHi() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <hi> value |
|
|
|
|
* Set <hi> value. |
|
|
|
|
* |
|
|
|
|
* @param \routeguide\Point $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Rectangle |
|
|
|
|
*/ |
|
|
|
|
public function setHi(\routeguide\Point $value){ |
|
|
|
|
public function setHi(\routeguide\Point $value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(2, $value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -243,15 +261,14 @@ namespace routeguide { |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class Feature extends \DrSlump\Protobuf\Message { |
|
|
|
|
|
|
|
|
|
class Feature extends \DrSlump\Protobuf\Message |
|
|
|
|
{ |
|
|
|
|
/** @var string */ |
|
|
|
|
public $name = null; |
|
|
|
|
|
|
|
|
|
/** @var \routeguide\Point */ |
|
|
|
|
public $location = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @var \Closure[] */ |
|
|
|
|
protected static $__extensions = array(); |
|
|
|
|
|
|
|
|
@ -262,7 +279,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL STRING name = 1 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 1; |
|
|
|
|
$f->name = "name"; |
|
|
|
|
$f->name = 'name'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_STRING; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$descriptor->addField($f); |
|
|
|
@ -270,7 +287,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL MESSAGE location = 2 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 2; |
|
|
|
|
$f->name = "location"; |
|
|
|
|
$f->name = 'location'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->reference = '\routeguide\Point'; |
|
|
|
@ -284,76 +301,86 @@ namespace routeguide { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <name> has a value |
|
|
|
|
* Check if <name> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasName(){ |
|
|
|
|
public function hasName() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <name> value |
|
|
|
|
* Clear <name> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Feature |
|
|
|
|
*/ |
|
|
|
|
public function clearName(){ |
|
|
|
|
public function clearName() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <name> value |
|
|
|
|
* Get <name> value. |
|
|
|
|
* |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getName(){ |
|
|
|
|
public function getName() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <name> value |
|
|
|
|
* Set <name> value. |
|
|
|
|
* |
|
|
|
|
* @param string $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Feature |
|
|
|
|
*/ |
|
|
|
|
public function setName( $value){ |
|
|
|
|
public function setName($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(1, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <location> has a value |
|
|
|
|
* Check if <location> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasLocation(){ |
|
|
|
|
public function hasLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <location> value |
|
|
|
|
* Clear <location> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Feature |
|
|
|
|
*/ |
|
|
|
|
public function clearLocation(){ |
|
|
|
|
public function clearLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <location> value |
|
|
|
|
* Get <location> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function getLocation(){ |
|
|
|
|
public function getLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <location> value |
|
|
|
|
* Set <location> value. |
|
|
|
|
* |
|
|
|
|
* @param \routeguide\Point $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Feature |
|
|
|
|
*/ |
|
|
|
|
public function setLocation(\routeguide\Point $value){ |
|
|
|
|
public function setLocation(\routeguide\Point $value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(2, $value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -361,15 +388,14 @@ namespace routeguide { |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class RouteNote extends \DrSlump\Protobuf\Message { |
|
|
|
|
|
|
|
|
|
class RouteNote extends \DrSlump\Protobuf\Message |
|
|
|
|
{ |
|
|
|
|
/** @var \routeguide\Point */ |
|
|
|
|
public $location = null; |
|
|
|
|
|
|
|
|
|
/** @var string */ |
|
|
|
|
public $message = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @var \Closure[] */ |
|
|
|
|
protected static $__extensions = array(); |
|
|
|
|
|
|
|
|
@ -380,7 +406,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL MESSAGE location = 1 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 1; |
|
|
|
|
$f->name = "location"; |
|
|
|
|
$f->name = 'location'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->reference = '\routeguide\Point'; |
|
|
|
@ -389,7 +415,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL STRING message = 2 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 2; |
|
|
|
|
$f->name = "message"; |
|
|
|
|
$f->name = 'message'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_STRING; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$descriptor->addField($f); |
|
|
|
@ -402,76 +428,86 @@ namespace routeguide { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <location> has a value |
|
|
|
|
* Check if <location> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasLocation(){ |
|
|
|
|
public function hasLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <location> value |
|
|
|
|
* Clear <location> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteNote |
|
|
|
|
*/ |
|
|
|
|
public function clearLocation(){ |
|
|
|
|
public function clearLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <location> value |
|
|
|
|
* Get <location> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\Point |
|
|
|
|
*/ |
|
|
|
|
public function getLocation(){ |
|
|
|
|
public function getLocation() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <location> value |
|
|
|
|
* Set <location> value. |
|
|
|
|
* |
|
|
|
|
* @param \routeguide\Point $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteNote |
|
|
|
|
*/ |
|
|
|
|
public function setLocation(\routeguide\Point $value){ |
|
|
|
|
public function setLocation(\routeguide\Point $value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(1, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <message> has a value |
|
|
|
|
* Check if <message> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasMessage(){ |
|
|
|
|
public function hasMessage() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <message> value |
|
|
|
|
* Clear <message> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteNote |
|
|
|
|
*/ |
|
|
|
|
public function clearMessage(){ |
|
|
|
|
public function clearMessage() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <message> value |
|
|
|
|
* Get <message> value. |
|
|
|
|
* |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getMessage(){ |
|
|
|
|
public function getMessage() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <message> value |
|
|
|
|
* Set <message> value. |
|
|
|
|
* |
|
|
|
|
* @param string $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteNote |
|
|
|
|
*/ |
|
|
|
|
public function setMessage( $value){ |
|
|
|
|
public function setMessage($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(2, $value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -479,8 +515,8 @@ namespace routeguide { |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class RouteSummary extends \DrSlump\Protobuf\Message { |
|
|
|
|
|
|
|
|
|
class RouteSummary extends \DrSlump\Protobuf\Message |
|
|
|
|
{ |
|
|
|
|
/** @var int */ |
|
|
|
|
public $point_count = 0; |
|
|
|
|
|
|
|
|
@ -493,7 +529,6 @@ namespace routeguide { |
|
|
|
|
/** @var int */ |
|
|
|
|
public $elapsed_time = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @var \Closure[] */ |
|
|
|
|
protected static $__extensions = array(); |
|
|
|
|
|
|
|
|
@ -504,7 +539,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 point_count = 1 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 1; |
|
|
|
|
$f->name = "point_count"; |
|
|
|
|
$f->name = 'point_count'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -513,7 +548,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 feature_count = 2 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 2; |
|
|
|
|
$f->name = "feature_count"; |
|
|
|
|
$f->name = 'feature_count'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -522,7 +557,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 distance = 3 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 3; |
|
|
|
|
$f->name = "distance"; |
|
|
|
|
$f->name = 'distance'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -531,7 +566,7 @@ namespace routeguide { |
|
|
|
|
// OPTIONAL INT32 elapsed_time = 4 |
|
|
|
|
$f = new \DrSlump\Protobuf\Field(); |
|
|
|
|
$f->number = 4; |
|
|
|
|
$f->name = "elapsed_time"; |
|
|
|
|
$f->name = 'elapsed_time'; |
|
|
|
|
$f->type = \DrSlump\Protobuf::TYPE_INT32; |
|
|
|
|
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL; |
|
|
|
|
$f->default = 0; |
|
|
|
@ -545,150 +580,170 @@ namespace routeguide { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <point_count> has a value |
|
|
|
|
* Check if <point_count> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasPointCount(){ |
|
|
|
|
public function hasPointCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <point_count> value |
|
|
|
|
* Clear <point_count> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function clearPointCount(){ |
|
|
|
|
public function clearPointCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <point_count> value |
|
|
|
|
* Get <point_count> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getPointCount(){ |
|
|
|
|
public function getPointCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <point_count> value |
|
|
|
|
* Set <point_count> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function setPointCount( $value){ |
|
|
|
|
public function setPointCount($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(1, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <feature_count> has a value |
|
|
|
|
* Check if <feature_count> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasFeatureCount(){ |
|
|
|
|
public function hasFeatureCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <feature_count> value |
|
|
|
|
* Clear <feature_count> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function clearFeatureCount(){ |
|
|
|
|
public function clearFeatureCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <feature_count> value |
|
|
|
|
* Get <feature_count> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getFeatureCount(){ |
|
|
|
|
public function getFeatureCount() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <feature_count> value |
|
|
|
|
* Set <feature_count> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function setFeatureCount( $value){ |
|
|
|
|
public function setFeatureCount($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(2, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <distance> has a value |
|
|
|
|
* Check if <distance> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasDistance(){ |
|
|
|
|
public function hasDistance() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(3); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <distance> value |
|
|
|
|
* Clear <distance> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function clearDistance(){ |
|
|
|
|
public function clearDistance() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(3); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <distance> value |
|
|
|
|
* Get <distance> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getDistance(){ |
|
|
|
|
public function getDistance() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(3); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <distance> value |
|
|
|
|
* Set <distance> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function setDistance( $value){ |
|
|
|
|
public function setDistance($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(3, $value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Check if <elapsed_time> has a value |
|
|
|
|
* Check if <elapsed_time> has a value. |
|
|
|
|
* |
|
|
|
|
* @return boolean |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function hasElapsedTime(){ |
|
|
|
|
public function hasElapsedTime() |
|
|
|
|
{ |
|
|
|
|
return $this->_has(4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Clear <elapsed_time> value |
|
|
|
|
* Clear <elapsed_time> value. |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function clearElapsedTime(){ |
|
|
|
|
public function clearElapsedTime() |
|
|
|
|
{ |
|
|
|
|
return $this->_clear(4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get <elapsed_time> value |
|
|
|
|
* Get <elapsed_time> value. |
|
|
|
|
* |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getElapsedTime(){ |
|
|
|
|
public function getElapsedTime() |
|
|
|
|
{ |
|
|
|
|
return $this->_get(4); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Set <elapsed_time> value |
|
|
|
|
* Set <elapsed_time> value. |
|
|
|
|
* |
|
|
|
|
* @param int $value |
|
|
|
|
* |
|
|
|
|
* @return \routeguide\RouteSummary |
|
|
|
|
*/ |
|
|
|
|
public function setElapsedTime( $value){ |
|
|
|
|
public function setElapsedTime($value) |
|
|
|
|
{ |
|
|
|
|
return $this->_set(4, $value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -696,33 +751,38 @@ namespace routeguide { |
|
|
|
|
|
|
|
|
|
namespace routeguide { |
|
|
|
|
|
|
|
|
|
class RouteGuideClient extends \Grpc\BaseStub { |
|
|
|
|
|
|
|
|
|
public function __construct($hostname, $opts) { |
|
|
|
|
class RouteGuideClient extends \Grpc\BaseStub |
|
|
|
|
{ |
|
|
|
|
public function __construct($hostname, $opts) |
|
|
|
|
{ |
|
|
|
|
parent::__construct($hostname, $opts); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @param routeguide\Point $input |
|
|
|
|
*/ |
|
|
|
|
public function GetFeature(\routeguide\Point $argument, $metadata = array(), $options = array()) { |
|
|
|
|
public function GetFeature(\routeguide\Point $argument, $metadata = array(), $options = array()) |
|
|
|
|
{ |
|
|
|
|
return $this->_simpleRequest('/routeguide.RouteGuide/GetFeature', $argument, '\routeguide\Feature::deserialize', $metadata, $options); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @param routeguide\Rectangle $input |
|
|
|
|
*/ |
|
|
|
|
public function ListFeatures($argument, $metadata = array(), $options = array()) { |
|
|
|
|
public function ListFeatures($argument, $metadata = array(), $options = array()) |
|
|
|
|
{ |
|
|
|
|
return $this->_serverStreamRequest('/routeguide.RouteGuide/ListFeatures', $argument, '\routeguide\Feature::deserialize', $metadata, $options); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @param routeguide\Point $input |
|
|
|
|
*/ |
|
|
|
|
public function RecordRoute($metadata = array()) { |
|
|
|
|
public function RecordRoute($metadata = array()) |
|
|
|
|
{ |
|
|
|
|
return $this->_clientStreamRequest('/routeguide.RouteGuide/RecordRoute', '\routeguide\RouteSummary::deserialize', $metadata); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @param routeguide\RouteNote $input |
|
|
|
|
*/ |
|
|
|
|
public function RouteChat($metadata = array()) { |
|
|
|
|
public function RouteChat($metadata = array()) |
|
|
|
|
{ |
|
|
|
|
return $this->_bidiRequest('/routeguide.RouteGuide/RouteChat', '\routeguide\RouteNote::deserialize', $metadata); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|