2021-04-16 14:38:16 +00:00

86 lines
2.0 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gradido/ManageNodeRequest.proto
namespace Proto\Gradido;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>proto.gradido.ManageNodeResponse</code>
*/
class ManageNodeResponse extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>bool success = 1;</code>
*/
private $success = false;
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
*/
private $error = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type bool $success
* @type int $error
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Gradido\ManageNodeRequest::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>bool success = 1;</code>
* @return bool
*/
public function getSuccess()
{
return $this->success;
}
/**
* Generated from protobuf field <code>bool success = 1;</code>
* @param bool $var
* @return $this
*/
public function setSuccess($var)
{
GPBUtil::checkBool($var);
$this->success = $var;
return $this;
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
* @return int
*/
public function getError()
{
return $this->error;
}
/**
* Generated from protobuf field <code>.proto.gradido.ManageNodeResponse.ErrorCode error = 2;</code>
* @param int $var
* @return $this
*/
public function setError($var)
{
GPBUtil::checkEnum($var, \Proto\Gradido\ManageNodeResponse_ErrorCode::class);
$this->error = $var;
return $this;
}
}