| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: src/proto/grpc/testing/echo_messages.proto |
| 4 |
|
| 5 |
namespace Grpc\Testing; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\RepeatedField; |
| 9 |
use Google\Protobuf\Internal\GPBUtil; |
| 10 |
|
| 11 |
/** |
| 12 |
* Error status client expects to see. |
| 13 |
* |
| 14 |
* Generated from protobuf message <code>grpc.testing.ErrorStatus</code> |
| 15 |
*/ |
| 16 |
class ErrorStatus extends \Google\Protobuf\Internal\Message |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Generated from protobuf field <code>int32 code = 1;</code> |
| 20 |
*/ |
| 21 |
protected $code = 0; |
| 22 |
/** |
| 23 |
* Generated from protobuf field <code>string error_message = 2;</code> |
| 24 |
*/ |
| 25 |
protected $error_message = ''; |
| 26 |
/** |
| 27 |
* Generated from protobuf field <code>string binary_error_details = 3;</code> |
| 28 |
*/ |
| 29 |
protected $binary_error_details = ''; |
| 30 |
|
| 31 |
/** |
| 32 |
* Constructor. |
| 33 |
* |
| 34 |
* @param array $data { |
| 35 |
* Optional. Data for populating the Message object. |
| 36 |
* |
| 37 |
* @type int $code |
| 38 |
* @type string $error_message |
| 39 |
* @type string $binary_error_details |
| 40 |
* } |
| 41 |
*/ |
| 42 |
public function __construct($data = NULL) { |
| 43 |
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce(); |
| 44 |
parent::__construct($data); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Generated from protobuf field <code>int32 code = 1;</code> |
| 49 |
* @return int |
| 50 |
*/ |
| 51 |
public function getCode() |
| 52 |
{ |
| 53 |
return $this->code; |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* Generated from protobuf field <code>int32 code = 1;</code> |
| 58 |
* @param int $var |
| 59 |
* @return $this |
| 60 |
*/ |
| 61 |
public function setCode($var) |
| 62 |
{ |
| 63 |
GPBUtil::checkInt32($var); |
| 64 |
$this->code = $var; |
| 65 |
|
| 66 |
return $this; |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* Generated from protobuf field <code>string error_message = 2;</code> |
| 71 |
* @return string |
| 72 |
*/ |
| 73 |
public function getErrorMessage() |
| 74 |
{ |
| 75 |
return $this->error_message; |
| 76 |
} |
| 77 |
|
| 78 |
/** |
| 79 |
* Generated from protobuf field <code>string error_message = 2;</code> |
| 80 |
* @param string $var |
| 81 |
* @return $this |
| 82 |
*/ |
| 83 |
public function setErrorMessage($var) |
| 84 |
{ |
| 85 |
GPBUtil::checkString($var, True); |
| 86 |
$this->error_message = $var; |
| 87 |
|
| 88 |
return $this; |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* Generated from protobuf field <code>string binary_error_details = 3;</code> |
| 93 |
* @return string |
| 94 |
*/ |
| 95 |
public function getBinaryErrorDetails() |
| 96 |
{ |
| 97 |
return $this->binary_error_details; |
| 98 |
} |
| 99 |
|
| 100 |
/** |
| 101 |
* Generated from protobuf field <code>string binary_error_details = 3;</code> |
| 102 |
* @param string $var |
| 103 |
* @return $this |
| 104 |
*/ |
| 105 |
public function setBinaryErrorDetails($var) |
| 106 |
{ |
| 107 |
GPBUtil::checkString($var, True); |
| 108 |
$this->binary_error_details = $var; |
| 109 |
|
| 110 |
return $this; |
| 111 |
} |
| 112 |
|
| 113 |
} |
| 114 |
|