Skip to content

Commit

Permalink
Regenerate php proto files. (vitessio#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivanof authored Sep 22, 2016
1 parent 157e7ea commit 2d3a213
Show file tree
Hide file tree
Showing 29 changed files with 1,315 additions and 46 deletions.
4 changes: 2 additions & 2 deletions php/src/Vitess/Proto/Automationservice/AutomationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class AutomationClient extends \Grpc\BaseStub {

public function __construct($hostname, $opts) {
parent::__construct($hostname, $opts);
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* @param Vitess\Proto\Automation\EnqueueClusterOperationRequest $input
Expand Down
4 changes: 2 additions & 2 deletions php/src/Vitess/Proto/Binlogservice/UpdateStreamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class UpdateStreamClient extends \Grpc\BaseStub {

public function __construct($hostname, $opts) {
parent::__construct($hostname, $opts);
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* @param Vitess\Proto\Binlogdata\StreamKeyRangeRequest $input
Expand Down
4 changes: 2 additions & 2 deletions php/src/Vitess/Proto/Mysqlctl/MysqlCtlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class MysqlCtlClient extends \Grpc\BaseStub {

public function __construct($hostname, $opts) {
parent::__construct($hostname, $opts);
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* @param Vitess\Proto\Mysqlctl\StartRequest $input
Expand Down
49 changes: 49 additions & 0 deletions php/src/Vitess/Proto/Query/BeginExecuteBatchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class BeginExecuteBatchRequest extends \DrSlump\Protobuf\Message {
/** @var boolean */
public $as_transaction = null;

/** @var \Vitess\Proto\Query\ExecuteOptions */
public $options = null;


/** @var \Closure[] */
protected static $__extensions = array();
Expand Down Expand Up @@ -73,6 +76,15 @@ public static function descriptor()
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
$descriptor->addField($f);

// OPTIONAL MESSAGE options = 6
$f = new \DrSlump\Protobuf\Field();
$f->number = 6;
$f->name = "options";
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
$f->reference = '\Vitess\Proto\Query\ExecuteOptions';
$descriptor->addField($f);

foreach (self::$__extensions as $cb) {
$descriptor->addField($cb(), true);
}
Expand Down Expand Up @@ -284,6 +296,43 @@ public function getAsTransaction(){
public function setAsTransaction( $value){
return $this->_set(5, $value);
}

/**
* Check if <options> has a value
*
* @return boolean
*/
public function hasOptions(){
return $this->_has(6);
}

/**
* Clear <options> value
*
* @return \Vitess\Proto\Query\BeginExecuteBatchRequest
*/
public function clearOptions(){
return $this->_clear(6);
}

/**
* Get <options> value
*
* @return \Vitess\Proto\Query\ExecuteOptions
*/
public function getOptions(){
return $this->_get(6);
}

/**
* Set <options> value
*
* @param \Vitess\Proto\Query\ExecuteOptions $value
* @return \Vitess\Proto\Query\BeginExecuteBatchRequest
*/
public function setOptions(\Vitess\Proto\Query\ExecuteOptions $value){
return $this->_set(6, $value);
}
}
}

49 changes: 49 additions & 0 deletions php/src/Vitess/Proto/Query/BeginExecuteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class BeginExecuteRequest extends \DrSlump\Protobuf\Message {
/** @var \Vitess\Proto\Query\BoundQuery */
public $query = null;

/** @var \Vitess\Proto\Query\ExecuteOptions */
public $options = null;


/** @var \Closure[] */
protected static $__extensions = array();
Expand Down Expand Up @@ -62,6 +65,15 @@ public static function descriptor()
$f->reference = '\Vitess\Proto\Query\BoundQuery';
$descriptor->addField($f);

// OPTIONAL MESSAGE options = 5
$f = new \DrSlump\Protobuf\Field();
$f->number = 5;
$f->name = "options";
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
$f->reference = '\Vitess\Proto\Query\ExecuteOptions';
$descriptor->addField($f);

foreach (self::$__extensions as $cb) {
$descriptor->addField($cb(), true);
}
Expand Down Expand Up @@ -216,6 +228,43 @@ public function getQuery(){
public function setQuery(\Vitess\Proto\Query\BoundQuery $value){
return $this->_set(4, $value);
}

/**
* Check if <options> has a value
*
* @return boolean
*/
public function hasOptions(){
return $this->_has(5);
}

/**
* Clear <options> value
*
* @return \Vitess\Proto\Query\BeginExecuteRequest
*/
public function clearOptions(){
return $this->_clear(5);
}

/**
* Get <options> value
*
* @return \Vitess\Proto\Query\ExecuteOptions
*/
public function getOptions(){
return $this->_get(5);
}

/**
* Set <options> value
*
* @param \Vitess\Proto\Query\ExecuteOptions $value
* @return \Vitess\Proto\Query\BeginExecuteRequest
*/
public function setOptions(\Vitess\Proto\Query\ExecuteOptions $value){
return $this->_set(5, $value);
}
}
}

49 changes: 49 additions & 0 deletions php/src/Vitess/Proto/Query/ExecuteBatchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class ExecuteBatchRequest extends \DrSlump\Protobuf\Message {
/** @var int */
public $transaction_id = null;

/** @var \Vitess\Proto\Query\ExecuteOptions */
public $options = null;


/** @var \Closure[] */
protected static $__extensions = array();
Expand Down Expand Up @@ -84,6 +87,15 @@ public static function descriptor()
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
$descriptor->addField($f);

// OPTIONAL MESSAGE options = 7
$f = new \DrSlump\Protobuf\Field();
$f->number = 7;
$f->name = "options";
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
$f->reference = '\Vitess\Proto\Query\ExecuteOptions';
$descriptor->addField($f);

foreach (self::$__extensions as $cb) {
$descriptor->addField($cb(), true);
}
Expand Down Expand Up @@ -332,6 +344,43 @@ public function getTransactionId(){
public function setTransactionId( $value){
return $this->_set(6, $value);
}

/**
* Check if <options> has a value
*
* @return boolean
*/
public function hasOptions(){
return $this->_has(7);
}

/**
* Clear <options> value
*
* @return \Vitess\Proto\Query\ExecuteBatchRequest
*/
public function clearOptions(){
return $this->_clear(7);
}

/**
* Get <options> value
*
* @return \Vitess\Proto\Query\ExecuteOptions
*/
public function getOptions(){
return $this->_get(7);
}

/**
* Set <options> value
*
* @param \Vitess\Proto\Query\ExecuteOptions $value
* @return \Vitess\Proto\Query\ExecuteBatchRequest
*/
public function setOptions(\Vitess\Proto\Query\ExecuteOptions $value){
return $this->_set(7, $value);
}
}
}

Loading

0 comments on commit 2d3a213

Please sign in to comment.