<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/migrationcenter/v1/migrationcenter.proto

namespace Google\Cloud\MigrationCenter\V1\Aggregation;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Histogram of bucketed assets counts by field value.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.Aggregation.Histogram</code>
 */
class Histogram extends \Google\Protobuf\Internal\Message
{
    /**
     * Lower bounds of buckets.
     * The response will contain `n+1` buckets for `n` bounds.
     * The first bucket will count all assets for which the field value is
     * smaller than the first bound.
     * Subsequent buckets will count assets for which the field value is
     * greater or equal to a lower bound and smaller than the next one.
     * The last bucket will count assets for which the field value is greater or
     * equal to the final lower bound.
     * You can define up to 20 lower bounds.
     *
     * Generated from protobuf field <code>repeated double lower_bounds = 1;</code>
     */
    private $lower_bounds;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<float>|\Google\Protobuf\Internal\RepeatedField $lower_bounds
     *           Lower bounds of buckets.
     *           The response will contain `n+1` buckets for `n` bounds.
     *           The first bucket will count all assets for which the field value is
     *           smaller than the first bound.
     *           Subsequent buckets will count assets for which the field value is
     *           greater or equal to a lower bound and smaller than the next one.
     *           The last bucket will count assets for which the field value is greater or
     *           equal to the final lower bound.
     *           You can define up to 20 lower bounds.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Lower bounds of buckets.
     * The response will contain `n+1` buckets for `n` bounds.
     * The first bucket will count all assets for which the field value is
     * smaller than the first bound.
     * Subsequent buckets will count assets for which the field value is
     * greater or equal to a lower bound and smaller than the next one.
     * The last bucket will count assets for which the field value is greater or
     * equal to the final lower bound.
     * You can define up to 20 lower bounds.
     *
     * Generated from protobuf field <code>repeated double lower_bounds = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLowerBounds()
    {
        return $this->lower_bounds;
    }

    /**
     * Lower bounds of buckets.
     * The response will contain `n+1` buckets for `n` bounds.
     * The first bucket will count all assets for which the field value is
     * smaller than the first bound.
     * Subsequent buckets will count assets for which the field value is
     * greater or equal to a lower bound and smaller than the next one.
     * The last bucket will count assets for which the field value is greater or
     * equal to the final lower bound.
     * You can define up to 20 lower bounds.
     *
     * Generated from protobuf field <code>repeated double lower_bounds = 1;</code>
     * @param array<float>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLowerBounds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->lower_bounds = $arr;

        return $this;
    }

}


