| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: src/proto/grpc/testing/stats.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 |
* Generated from protobuf message <code>grpc.testing.RequestResultCount</code> |
| 13 |
*/ |
| 14 |
class RequestResultCount extends \Google\Protobuf\Internal\Message |
| 15 |
{ |
| 16 |
/** |
| 17 |
* Generated from protobuf field <code>int32 status_code = 1;</code> |
| 18 |
*/ |
| 19 |
protected $status_code = 0; |
| 20 |
/** |
| 21 |
* Generated from protobuf field <code>int64 count = 2;</code> |
| 22 |
*/ |
| 23 |
protected $count = 0; |
| 24 |
|
| 25 |
/** |
| 26 |
* Constructor. |
| 27 |
* |
| 28 |
* @param array $data { |
| 29 |
* Optional. Data for populating the Message object. |
| 30 |
* |
| 31 |
* @type int $status_code |
| 32 |
* @type int|string $count |
| 33 |
* } |
| 34 |
*/ |
| 35 |
public function __construct($data = NULL) { |
| 36 |
\GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce(); |
| 37 |
parent::__construct($data); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Generated from protobuf field <code>int32 status_code = 1;</code> |
| 42 |
* @return int |
| 43 |
*/ |
| 44 |
public function getStatusCode() |
| 45 |
{ |
| 46 |
return $this->status_code; |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* Generated from protobuf field <code>int32 status_code = 1;</code> |
| 51 |
* @param int $var |
| 52 |
* @return $this |
| 53 |
*/ |
| 54 |
public function setStatusCode($var) |
| 55 |
{ |
| 56 |
GPBUtil::checkInt32($var); |
| 57 |
$this->status_code = $var; |
| 58 |
|
| 59 |
return $this; |
| 60 |
} |
| 61 |
|
| 62 |
/** |
| 63 |
* Generated from protobuf field <code>int64 count = 2;</code> |
| 64 |
* @return int|string |
| 65 |
*/ |
| 66 |
public function getCount() |
| 67 |
{ |
| 68 |
return $this->count; |
| 69 |
} |
| 70 |
|
| 71 |
/** |
| 72 |
* Generated from protobuf field <code>int64 count = 2;</code> |
| 73 |
* @param int|string $var |
| 74 |
* @return $this |
| 75 |
*/ |
| 76 |
public function setCount($var) |
| 77 |
{ |
| 78 |
GPBUtil::checkInt64($var); |
| 79 |
$this->count = $var; |
| 80 |
|
| 81 |
return $this; |
| 82 |
} |
| 83 |
|
| 84 |
} |
| 85 |
|