Debian Codegraph @

src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php

raw
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: src/proto/grpc/testing/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 * Accumulated stats for RPCs sent by a test client.
13 *
14 * Generated from protobuf message <code>grpc.testing.LoadBalancerAccumulatedStatsResponse</code>
15 */
16 class LoadBalancerAccumulatedStatsResponse extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * The total number of RPCs have ever issued for each type.
20 * Deprecated: use stats_per_method.rpcs_started instead.
21 *
22 * Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1 [deprecated = true];</code>
23 * @deprecated
24 */
25 private $num_rpcs_started_by_method;
26 /**
27 * The total number of RPCs have ever completed successfully for each type.
28 * Deprecated: use stats_per_method.result instead.
29 *
30 * Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2 [deprecated = true];</code>
31 * @deprecated
32 */
33 private $num_rpcs_succeeded_by_method;
34 /**
35 * The total number of RPCs have ever failed for each type.
36 * Deprecated: use stats_per_method.result instead.
37 *
38 * Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3 [deprecated = true];</code>
39 * @deprecated
40 */
41 private $num_rpcs_failed_by_method;
42 /**
43 * Per-method RPC statistics. The key is the RpcType in string form; e.g.
44 * 'EMPTY_CALL' or 'UNARY_CALL'
45 *
46 * Generated from protobuf field <code>map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4;</code>
47 */
48 private $stats_per_method;
49
50 /**
51 * Constructor.
52 *
53 * @param array $data {
54 * Optional. Data for populating the Message object.
55 *
56 * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_started_by_method
57 * The total number of RPCs have ever issued for each type.
58 * Deprecated: use stats_per_method.rpcs_started instead.
59 * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_succeeded_by_method
60 * The total number of RPCs have ever completed successfully for each type.
61 * Deprecated: use stats_per_method.result instead.
62 * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_failed_by_method
63 * The total number of RPCs have ever failed for each type.
64 * Deprecated: use stats_per_method.result instead.
65 * @type array|\Google\Protobuf\Internal\MapField $stats_per_method
66 * Per-method RPC statistics. The key is the RpcType in string form; e.g.
67 * 'EMPTY_CALL' or 'UNARY_CALL'
68 * }
69 */
70 public function __construct($data = NULL) {
71 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
72 parent::__construct($data);
73 }
74
75 /**
76 * The total number of RPCs have ever issued for each type.
77 * Deprecated: use stats_per_method.rpcs_started instead.
78 *
79 * Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1 [deprecated = true];</code>
80 * @return \Google\Protobuf\Internal\MapField
81 * @deprecated
82 */
83 public function getNumRpcsStartedByMethod()
84 {
85 @trigger_error('num_rpcs_started_by_method is deprecated.', E_USER_DEPRECATED);
86 return $this->num_rpcs_started_by_method;
87 }
88
89 /**
90 * The total number of RPCs have ever issued for each type.
91 * Deprecated: use stats_per_method.rpcs_started instead.
92 *
93 * Generated from protobuf field <code>map<string, int32> num_rpcs_started_by_method = 1 [deprecated = true];</code>
94 * @param array|\Google\Protobuf\Internal\MapField $var
95 * @return $this
96 * @deprecated
97 */
98 public function setNumRpcsStartedByMethod($var)
99 {
100 @trigger_error('num_rpcs_started_by_method is deprecated.', E_USER_DEPRECATED);
101 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
102 $this->num_rpcs_started_by_method = $arr;
103
104 return $this;
105 }
106
107 /**
108 * The total number of RPCs have ever completed successfully for each type.
109 * Deprecated: use stats_per_method.result instead.
110 *
111 * Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2 [deprecated = true];</code>
112 * @return \Google\Protobuf\Internal\MapField
113 * @deprecated
114 */
115 public function getNumRpcsSucceededByMethod()
116 {
117 @trigger_error('num_rpcs_succeeded_by_method is deprecated.', E_USER_DEPRECATED);
118 return $this->num_rpcs_succeeded_by_method;
119 }
120
121 /**
122 * The total number of RPCs have ever completed successfully for each type.
123 * Deprecated: use stats_per_method.result instead.
124 *
125 * Generated from protobuf field <code>map<string, int32> num_rpcs_succeeded_by_method = 2 [deprecated = true];</code>
126 * @param array|\Google\Protobuf\Internal\MapField $var
127 * @return $this
128 * @deprecated
129 */
130 public function setNumRpcsSucceededByMethod($var)
131 {
132 @trigger_error('num_rpcs_succeeded_by_method is deprecated.', E_USER_DEPRECATED);
133 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
134 $this->num_rpcs_succeeded_by_method = $arr;
135
136 return $this;
137 }
138
139 /**
140 * The total number of RPCs have ever failed for each type.
141 * Deprecated: use stats_per_method.result instead.
142 *
143 * Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3 [deprecated = true];</code>
144 * @return \Google\Protobuf\Internal\MapField
145 * @deprecated
146 */
147 public function getNumRpcsFailedByMethod()
148 {
149 @trigger_error('num_rpcs_failed_by_method is deprecated.', E_USER_DEPRECATED);
150 return $this->num_rpcs_failed_by_method;
151 }
152
153 /**
154 * The total number of RPCs have ever failed for each type.
155 * Deprecated: use stats_per_method.result instead.
156 *
157 * Generated from protobuf field <code>map<string, int32> num_rpcs_failed_by_method = 3 [deprecated = true];</code>
158 * @param array|\Google\Protobuf\Internal\MapField $var
159 * @return $this
160 * @deprecated
161 */
162 public function setNumRpcsFailedByMethod($var)
163 {
164 @trigger_error('num_rpcs_failed_by_method is deprecated.', E_USER_DEPRECATED);
165 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32);
166 $this->num_rpcs_failed_by_method = $arr;
167
168 return $this;
169 }
170
171 /**
172 * Per-method RPC statistics. The key is the RpcType in string form; e.g.
173 * 'EMPTY_CALL' or 'UNARY_CALL'
174 *
175 * Generated from protobuf field <code>map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4;</code>
176 * @return \Google\Protobuf\Internal\MapField
177 */
178 public function getStatsPerMethod()
179 {
180 return $this->stats_per_method;
181 }
182
183 /**
184 * Per-method RPC statistics. The key is the RpcType in string form; e.g.
185 * 'EMPTY_CALL' or 'UNARY_CALL'
186 *
187 * Generated from protobuf field <code>map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4;</code>
188 * @param array|\Google\Protobuf\Internal\MapField $var
189 * @return $this
190 */
191 public function setStatsPerMethod($var)
192 {
193 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\LoadBalancerAccumulatedStatsResponse\MethodStats::class);
194 $this->stats_per_method = $arr;
195
196 return $this;
197 }
198
199 }
200