• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/control.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Generated from protobuf message <code>grpc.testing.ServerStatus</code>
13 */
14class ServerStatus extends \Google\Protobuf\Internal\Message
15{
16    /**
17     * Generated from protobuf field <code>.grpc.testing.ServerStats stats = 1;</code>
18     */
19    private $stats = null;
20    /**
21     * the port bound by the server
22     *
23     * Generated from protobuf field <code>int32 port = 2;</code>
24     */
25    private $port = 0;
26    /**
27     * Number of cores available to the server
28     *
29     * Generated from protobuf field <code>int32 cores = 3;</code>
30     */
31    private $cores = 0;
32
33    public function __construct() {
34        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
35        parent::__construct();
36    }
37
38    /**
39     * Generated from protobuf field <code>.grpc.testing.ServerStats stats = 1;</code>
40     * @return \Grpc\Testing\ServerStats
41     */
42    public function getStats()
43    {
44        return $this->stats;
45    }
46
47    /**
48     * Generated from protobuf field <code>.grpc.testing.ServerStats stats = 1;</code>
49     * @param \Grpc\Testing\ServerStats $var
50     * @return $this
51     */
52    public function setStats($var)
53    {
54        GPBUtil::checkMessage($var, \Grpc\Testing\ServerStats::class);
55        $this->stats = $var;
56
57        return $this;
58    }
59
60    /**
61     * the port bound by the server
62     *
63     * Generated from protobuf field <code>int32 port = 2;</code>
64     * @return int
65     */
66    public function getPort()
67    {
68        return $this->port;
69    }
70
71    /**
72     * the port bound by the server
73     *
74     * Generated from protobuf field <code>int32 port = 2;</code>
75     * @param int $var
76     * @return $this
77     */
78    public function setPort($var)
79    {
80        GPBUtil::checkInt32($var);
81        $this->port = $var;
82
83        return $this;
84    }
85
86    /**
87     * Number of cores available to the server
88     *
89     * Generated from protobuf field <code>int32 cores = 3;</code>
90     * @return int
91     */
92    public function getCores()
93    {
94        return $this->cores;
95    }
96
97    /**
98     * Number of cores available to the server
99     *
100     * Generated from protobuf field <code>int32 cores = 3;</code>
101     * @param int $var
102     * @return $this
103     */
104    public function setCores($var)
105    {
106        GPBUtil::checkInt32($var);
107        $this->cores = $var;
108
109        return $this;
110    }
111
112}
113
114