1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/stats.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Histogram params based on grpc/support/histogram.c
13 *
14 * Generated from protobuf message <code>grpc.testing.HistogramParams</code>
15 */
16class HistogramParams extends \Google\Protobuf\Internal\Message
17{
18    /**
19     * first bucket is [0, 1 + resolution)
20     *
21     * Generated from protobuf field <code>double resolution = 1;</code>
22     */
23    private $resolution = 0.0;
24    /**
25     * use enough buckets to allow this value
26     *
27     * Generated from protobuf field <code>double max_possible = 2;</code>
28     */
29    private $max_possible = 0.0;
30
31    public function __construct() {
32        \GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce();
33        parent::__construct();
34    }
35
36    /**
37     * first bucket is [0, 1 + resolution)
38     *
39     * Generated from protobuf field <code>double resolution = 1;</code>
40     * @return float
41     */
42    public function getResolution()
43    {
44        return $this->resolution;
45    }
46
47    /**
48     * first bucket is [0, 1 + resolution)
49     *
50     * Generated from protobuf field <code>double resolution = 1;</code>
51     * @param float $var
52     * @return $this
53     */
54    public function setResolution($var)
55    {
56        GPBUtil::checkDouble($var);
57        $this->resolution = $var;
58
59        return $this;
60    }
61
62    /**
63     * use enough buckets to allow this value
64     *
65     * Generated from protobuf field <code>double max_possible = 2;</code>
66     * @return float
67     */
68    public function getMaxPossible()
69    {
70        return $this->max_possible;
71    }
72
73    /**
74     * use enough buckets to allow this value
75     *
76     * Generated from protobuf field <code>double max_possible = 2;</code>
77     * @param float $var
78     * @return $this
79     */
80    public function setMaxPossible($var)
81    {
82        GPBUtil::checkDouble($var);
83        $this->max_possible = $var;
84
85        return $this;
86    }
87
88}
89
90