• 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 * Parameters of poisson process distribution, which is a good representation
13 * of activity coming in from independent identical stationary sources.
14 *
15 * Generated from protobuf message <code>grpc.testing.PoissonParams</code>
16 */
17class PoissonParams extends \Google\Protobuf\Internal\Message
18{
19    /**
20     * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
21     *
22     * Generated from protobuf field <code>double offered_load = 1;</code>
23     */
24    private $offered_load = 0.0;
25
26    public function __construct() {
27        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
28        parent::__construct();
29    }
30
31    /**
32     * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
33     *
34     * Generated from protobuf field <code>double offered_load = 1;</code>
35     * @return float
36     */
37    public function getOfferedLoad()
38    {
39        return $this->offered_load;
40    }
41
42    /**
43     * The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
44     *
45     * Generated from protobuf field <code>double offered_load = 1;</code>
46     * @param float $var
47     * @return $this
48     */
49    public function setOfferedLoad($var)
50    {
51        GPBUtil::checkDouble($var);
52        $this->offered_load = $var;
53
54        return $this;
55    }
56
57}
58
59