Tadah.Response */ class Response extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Tadah.Operation operation = 1; */ protected $operation = 0; /** * Generated from protobuf field bool success = 2; */ protected $success = false; /** * Generated from protobuf field string message = 3; */ protected $message = ''; /** * Generated from protobuf field string data = 4; */ protected $data = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $operation * @type bool $success * @type string $message * @type string $data * } */ public function __construct($data = NULL) { \GPBMetadata\Resources\Tadah::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .Tadah.Operation operation = 1; * @return int */ public function getOperation() { return $this->operation; } /** * Generated from protobuf field .Tadah.Operation operation = 1; * @param int $var * @return $this */ public function setOperation($var) { GPBUtil::checkEnum($var, \App\Proto\Operation::class); $this->operation = $var; return $this; } /** * Generated from protobuf field bool success = 2; * @return bool */ public function getSuccess() { return $this->success; } /** * Generated from protobuf field bool success = 2; * @param bool $var * @return $this */ public function setSuccess($var) { GPBUtil::checkBool($var); $this->success = $var; return $this; } /** * Generated from protobuf field string message = 3; * @return string */ public function getMessage() { return $this->message; } /** * Generated from protobuf field string message = 3; * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } /** * Generated from protobuf field string data = 4; * @return string */ public function getData() { return $this->data; } /** * Generated from protobuf field string data = 4; * @param string $var * @return $this */ public function setData($var) { GPBUtil::checkString($var, True); $this->data = $var; return $this; } }