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

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * The data statistics of a series of ARRAY values.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.ArrayStats</code>
 */
class ArrayStats extends \Google\Protobuf\Internal\Message
{
    /**
     * Stats of all the values of all arrays, as if they were a single long
     * series of data. The type depends on the element type of the array.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DataStats member_stats = 2;</code>
     */
    private $member_stats = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AutoMl\V1beta1\DataStats $member_stats
     *           Stats of all the values of all arrays, as if they were a single long
     *           series of data. The type depends on the element type of the array.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataStats::initOnce();
        parent::__construct($data);
    }

    /**
     * Stats of all the values of all arrays, as if they were a single long
     * series of data. The type depends on the element type of the array.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DataStats member_stats = 2;</code>
     * @return \Google\Cloud\AutoMl\V1beta1\DataStats|null
     */
    public function getMemberStats()
    {
        return $this->member_stats;
    }

    public function hasMemberStats()
    {
        return isset($this->member_stats);
    }

    public function clearMemberStats()
    {
        unset($this->member_stats);
    }

    /**
     * Stats of all the values of all arrays, as if they were a single long
     * series of data. The type depends on the element type of the array.
     *
     * Generated from protobuf field <code>.google.cloud.automl.v1beta1.DataStats member_stats = 2;</code>
     * @param \Google\Cloud\AutoMl\V1beta1\DataStats $var
     * @return $this
     */
    public function setMemberStats($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\DataStats::class);
        $this->member_stats = $var;

        return $this;
    }

}

