Debian Codegraph @

src/php/tests/qps/generated_code/Grpc/Testing/CoreResponse.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: src/proto/grpc/testing/control.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.CoreResponse</code>
13 */
14 class CoreResponse extends \Google\Protobuf\Internal\Message
15 {
16 /**
17 * Number of cores available on the server
18 *
19 * Generated from protobuf field <code>int32 cores = 1;</code>
20 */
21 protected $cores = 0;
22
23 /**
24 * Constructor.
25 *
26 * @param array $data {
27 * Optional. Data for populating the Message object.
28 *
29 * @type int $cores
30 * Number of cores available on the server
31 * }
32 */
33 public function __construct($data = NULL) {
34 \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
35 parent::__construct($data);
36 }
37
38 /**
39 * Number of cores available on the server
40 *
41 * Generated from protobuf field <code>int32 cores = 1;</code>
42 * @return int
43 */
44 public function getCores()
45 {
46 return $this->cores;
47 }
48
49 /**
50 * Number of cores available on the server
51 *
52 * Generated from protobuf field <code>int32 cores = 1;</code>
53 * @param int $var
54 * @return $this
55 */
56 public function setCores($var)
57 {
58 GPBUtil::checkInt32($var);
59 $this->cores = $var;
60
61 return $this;
62 }
63
64 }
65