php: routeguide update codegen

pull/3168/head
Stanley Cheung 9 years ago
parent 72642455a1
commit c019d017af
  1. 24
      examples/php/route_guide/route_guide.php

@ -1,7 +1,7 @@
<?php
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0
// Source: route_guide.proto
// Date: 2015-06-12 00:32:41
// Date: 2015-08-31 21:11:45
namespace routeguide {
@ -696,36 +696,34 @@ namespace routeguide {
namespace routeguide {
class RouteGuideClient{
class RouteGuideClient extends \Grpc\BaseStub {
private $rpc_impl;
public function __construct($rpc_impl) {
$this->rpc_impl = $rpc_impl;
public function __construct($hostname, $opts) {
parent::__construct($hostname, $opts);
}
/**
* @param routeguide\Point $input
*/
public function GetFeature(\routeguide\Point $argument, $metadata = array()) {
return $this->rpc_impl->_simpleRequest('/routeguide.RouteGuide/GetFeature', $argument, '\routeguide\Feature::deserialize', $metadata);
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()) {
return $this->rpc_impl->_serverStreamRequest('/routeguide.RouteGuide/ListFeatures', $argument, '\routeguide\Feature::deserialize', $metadata);
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($arguments, $metadata = array()) {
return $this->rpc_impl->_clientStreamRequest('/routeguide.RouteGuide/RecordRoute', $arguments, '\routeguide\RouteSummary::deserialize', $metadata);
public function RecordRoute($metadata = array()) {
return $this->_clientStreamRequest('/routeguide.RouteGuide/RecordRoute', '\routeguide\RouteSummary::deserialize', $metadata);
}
/**
* @param routeguide\RouteNote $input
*/
public function RouteChat($metadata = array()) {
return $this->rpc_impl->_bidiRequest('/routeguide.RouteGuide/RouteChat', '\routeguide\RouteNote::deserialize', $metadata);
return $this->_bidiRequest('/routeguide.RouteGuide/RouteChat', '\routeguide\RouteNote::deserialize', $metadata);
}
}
}

Loading…
Cancel
Save