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

namespace Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo;

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

/**
 * DoubleFieldInfo defines output for any double type field.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo</code>
 */
class DoubleFieldInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The average of non-null values of double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null rows.
     *
     * Generated from protobuf field <code>double average = 1;</code>
     */
    private $average = 0.0;
    /**
     * The standard deviation of non-null of double field in the sampled
     * data. Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double standard_deviation = 3;</code>
     */
    private $standard_deviation = 0.0;
    /**
     * The minimum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double min = 4;</code>
     */
    private $min = 0.0;
    /**
     * A quartile divide the numebr of data points into four parts, or
     * quarters, of more-or-less equal size. Three main quartiles used
     * are: The first quartile (Q1) splits off the lowest 25% of data from
     * the highest 75%. It is also known as the lower or 25th empirical
     * quartile, as 25% of the data is below this point. The second
     * quartile (Q2) is the median of a data set. So, 50% of the data lies
     * below this point. The third quartile (Q3) splits off the highest
     * 25% of data from the lowest 75%. It is known as the upper or 75th
     * empirical quartile, as 75% of the data lies below this point. So,
     * here the quartiles is provided as an ordered list of quartile
     * values, occurring in order Q1, median, Q3.
     *
     * Generated from protobuf field <code>repeated double quartiles = 6;</code>
     */
    private $quartiles;
    /**
     * The maximum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double max = 5;</code>
     */
    private $max = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $average
     *           The average of non-null values of double field in the sampled data.
     *           Return NaN, if the field has a NaN. Optional if zero non-null rows.
     *     @type float $standard_deviation
     *           The standard deviation of non-null of double field in the sampled
     *           data. Return NaN, if the field has a NaN. Optional if zero non-null
     *           rows.
     *     @type float $min
     *           The minimum value of a double field in the sampled data.
     *           Return NaN, if the field has a NaN. Optional if zero non-null
     *           rows.
     *     @type array<float>|\Google\Protobuf\Internal\RepeatedField $quartiles
     *           A quartile divide the numebr of data points into four parts, or
     *           quarters, of more-or-less equal size. Three main quartiles used
     *           are: The first quartile (Q1) splits off the lowest 25% of data from
     *           the highest 75%. It is also known as the lower or 25th empirical
     *           quartile, as 25% of the data is below this point. The second
     *           quartile (Q2) is the median of a data set. So, 50% of the data lies
     *           below this point. The third quartile (Q3) splits off the highest
     *           25% of data from the lowest 75%. It is known as the upper or 75th
     *           empirical quartile, as 75% of the data lies below this point. So,
     *           here the quartiles is provided as an ordered list of quartile
     *           values, occurring in order Q1, median, Q3.
     *     @type float $max
     *           The maximum value of a double field in the sampled data.
     *           Return NaN, if the field has a NaN. Optional if zero non-null
     *           rows.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * The average of non-null values of double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null rows.
     *
     * Generated from protobuf field <code>double average = 1;</code>
     * @return float
     */
    public function getAverage()
    {
        return $this->average;
    }

    /**
     * The average of non-null values of double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null rows.
     *
     * Generated from protobuf field <code>double average = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setAverage($var)
    {
        GPBUtil::checkDouble($var);
        $this->average = $var;

        return $this;
    }

    /**
     * The standard deviation of non-null of double field in the sampled
     * data. Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double standard_deviation = 3;</code>
     * @return float
     */
    public function getStandardDeviation()
    {
        return $this->standard_deviation;
    }

    /**
     * The standard deviation of non-null of double field in the sampled
     * data. Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double standard_deviation = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setStandardDeviation($var)
    {
        GPBUtil::checkDouble($var);
        $this->standard_deviation = $var;

        return $this;
    }

    /**
     * The minimum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double min = 4;</code>
     * @return float
     */
    public function getMin()
    {
        return $this->min;
    }

    /**
     * The minimum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double min = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setMin($var)
    {
        GPBUtil::checkDouble($var);
        $this->min = $var;

        return $this;
    }

    /**
     * A quartile divide the numebr of data points into four parts, or
     * quarters, of more-or-less equal size. Three main quartiles used
     * are: The first quartile (Q1) splits off the lowest 25% of data from
     * the highest 75%. It is also known as the lower or 25th empirical
     * quartile, as 25% of the data is below this point. The second
     * quartile (Q2) is the median of a data set. So, 50% of the data lies
     * below this point. The third quartile (Q3) splits off the highest
     * 25% of data from the lowest 75%. It is known as the upper or 75th
     * empirical quartile, as 75% of the data lies below this point. So,
     * here the quartiles is provided as an ordered list of quartile
     * values, occurring in order Q1, median, Q3.
     *
     * Generated from protobuf field <code>repeated double quartiles = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getQuartiles()
    {
        return $this->quartiles;
    }

    /**
     * A quartile divide the numebr of data points into four parts, or
     * quarters, of more-or-less equal size. Three main quartiles used
     * are: The first quartile (Q1) splits off the lowest 25% of data from
     * the highest 75%. It is also known as the lower or 25th empirical
     * quartile, as 25% of the data is below this point. The second
     * quartile (Q2) is the median of a data set. So, 50% of the data lies
     * below this point. The third quartile (Q3) splits off the highest
     * 25% of data from the lowest 75%. It is known as the upper or 75th
     * empirical quartile, as 75% of the data lies below this point. So,
     * here the quartiles is provided as an ordered list of quartile
     * values, occurring in order Q1, median, Q3.
     *
     * Generated from protobuf field <code>repeated double quartiles = 6;</code>
     * @param array<float>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setQuartiles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
        $this->quartiles = $arr;

        return $this;
    }

    /**
     * The maximum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double max = 5;</code>
     * @return float
     */
    public function getMax()
    {
        return $this->max;
    }

    /**
     * The maximum value of a double field in the sampled data.
     * Return NaN, if the field has a NaN. Optional if zero non-null
     * rows.
     *
     * Generated from protobuf field <code>double max = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setMax($var)
    {
        GPBUtil::checkDouble($var);
        $this->max = $var;

        return $this;
    }

}


