grpc.testing.LoadBalancerAccumulatedStatsResponse */ class LoadBalancerAccumulatedStatsResponse extends \Google\Protobuf\Internal\Message { /** * The total number of RPCs have ever issued for each type. * Deprecated: use stats_per_method.rpcs_started instead. * * Generated from protobuf field map num_rpcs_started_by_method = 1 [deprecated = true]; */ private $num_rpcs_started_by_method; /** * The total number of RPCs have ever completed successfully for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_succeeded_by_method = 2 [deprecated = true]; */ private $num_rpcs_succeeded_by_method; /** * The total number of RPCs have ever failed for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_failed_by_method = 3 [deprecated = true]; */ private $num_rpcs_failed_by_method; /** * Per-method RPC statistics. The key is the full method path; i.e. * "/proto.package.ServiceName/MethodName". * * Generated from protobuf field map stats_per_method = 4; */ private $stats_per_method; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_started_by_method * The total number of RPCs have ever issued for each type. * Deprecated: use stats_per_method.rpcs_started instead. * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_succeeded_by_method * The total number of RPCs have ever completed successfully for each type. * Deprecated: use stats_per_method.result instead. * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_failed_by_method * The total number of RPCs have ever failed for each type. * Deprecated: use stats_per_method.result instead. * @type array|\Google\Protobuf\Internal\MapField $stats_per_method * Per-method RPC statistics. The key is the full method path; i.e. * "/proto.package.ServiceName/MethodName". * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); parent::__construct($data); } /** * The total number of RPCs have ever issued for each type. * Deprecated: use stats_per_method.rpcs_started instead. * * Generated from protobuf field map num_rpcs_started_by_method = 1 [deprecated = true]; * @return \Google\Protobuf\Internal\MapField */ public function getNumRpcsStartedByMethod() { return $this->num_rpcs_started_by_method; } /** * The total number of RPCs have ever issued for each type. * Deprecated: use stats_per_method.rpcs_started instead. * * Generated from protobuf field map num_rpcs_started_by_method = 1 [deprecated = true]; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setNumRpcsStartedByMethod($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); $this->num_rpcs_started_by_method = $arr; return $this; } /** * The total number of RPCs have ever completed successfully for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_succeeded_by_method = 2 [deprecated = true]; * @return \Google\Protobuf\Internal\MapField */ public function getNumRpcsSucceededByMethod() { return $this->num_rpcs_succeeded_by_method; } /** * The total number of RPCs have ever completed successfully for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_succeeded_by_method = 2 [deprecated = true]; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setNumRpcsSucceededByMethod($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); $this->num_rpcs_succeeded_by_method = $arr; return $this; } /** * The total number of RPCs have ever failed for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_failed_by_method = 3 [deprecated = true]; * @return \Google\Protobuf\Internal\MapField */ public function getNumRpcsFailedByMethod() { return $this->num_rpcs_failed_by_method; } /** * The total number of RPCs have ever failed for each type. * Deprecated: use stats_per_method.result instead. * * Generated from protobuf field map num_rpcs_failed_by_method = 3 [deprecated = true]; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setNumRpcsFailedByMethod($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); $this->num_rpcs_failed_by_method = $arr; return $this; } /** * Per-method RPC statistics. The key is the full method path; i.e. * "/proto.package.ServiceName/MethodName". * * Generated from protobuf field map stats_per_method = 4; * @return \Google\Protobuf\Internal\MapField */ public function getStatsPerMethod() { return $this->stats_per_method; } /** * Per-method RPC statistics. The key is the full method path; i.e. * "/proto.package.ServiceName/MethodName". * * Generated from protobuf field map stats_per_method = 4; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setStatsPerMethod($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\LoadBalancerAccumulatedStatsResponse\MethodStats::class); $this->stats_per_method = $arr; return $this; } }