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

namespace Google\Cloud\AIPlatform\V1\SupervisedTuningDatasetDistribution;

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

/**
 * Dataset bucket used to create a histogram for the distribution given a
 * population of values.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.SupervisedTuningDatasetDistribution.DatasetBucket</code>
 */
class DatasetBucket extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Number of values in the bucket.
     *
     * Generated from protobuf field <code>double count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $count = 0.0;
    /**
     * Output only. Left bound of the bucket.
     *
     * Generated from protobuf field <code>double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $left = 0.0;
    /**
     * Output only. Right bound of the bucket.
     *
     * Generated from protobuf field <code>double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $right = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $count
     *           Output only. Number of values in the bucket.
     *     @type float $left
     *           Output only. Left bound of the bucket.
     *     @type float $right
     *           Output only. Right bound of the bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TuningJob::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Number of values in the bucket.
     *
     * Generated from protobuf field <code>double count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return float
     */
    public function getCount()
    {
        return $this->count;
    }

    /**
     * Output only. Number of values in the bucket.
     *
     * Generated from protobuf field <code>double count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param float $var
     * @return $this
     */
    public function setCount($var)
    {
        GPBUtil::checkDouble($var);
        $this->count = $var;

        return $this;
    }

    /**
     * Output only. Left bound of the bucket.
     *
     * Generated from protobuf field <code>double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return float
     */
    public function getLeft()
    {
        return $this->left;
    }

    /**
     * Output only. Left bound of the bucket.
     *
     * Generated from protobuf field <code>double left = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param float $var
     * @return $this
     */
    public function setLeft($var)
    {
        GPBUtil::checkDouble($var);
        $this->left = $var;

        return $this;
    }

    /**
     * Output only. Right bound of the bucket.
     *
     * Generated from protobuf field <code>double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return float
     */
    public function getRight()
    {
        return $this->right;
    }

    /**
     * Output only. Right bound of the bucket.
     *
     * Generated from protobuf field <code>double right = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param float $var
     * @return $this
     */
    public function setRight($var)
    {
        GPBUtil::checkDouble($var);
        $this->right = $var;

        return $this;
    }

}


