<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/data.proto
namespace SEOPressPro\Vendor\Google\Analytics\Data\V1alpha;

use SEOPressPro\Vendor\Google\Protobuf\Internal\GPBType;
use SEOPressPro\Vendor\Google\Protobuf\Internal\RepeatedField;
use SEOPressPro\Vendor\Google\Protobuf\Internal\GPBUtil;
/**
 * The funnel report's response metadata carries additional information about
 * the funnel report.
 *
 * Generated from protobuf message <code>google.analytics.data.v1alpha.FunnelResponseMetadata</code>
 */
class FunnelResponseMetadata extends \SEOPressPro\Vendor\Google\Protobuf\Internal\Message
{
    /**
     * If funnel report results are
     * [sampled](https://support.google.com/analytics/answer/13331292), this
     * describes what percentage of events were used in this funnel report. One
     * `samplingMetadatas` is populated for each date range. Each
     * `samplingMetadatas` corresponds to a date range in order that date ranges
     * were specified in the request.
     * However if the results are not sampled, this field will not be defined.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;</code>
     */
    private $sampling_metadatas;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $sampling_metadatas
     *           If funnel report results are
     *           [sampled](https://support.google.com/analytics/answer/13331292), this
     *           describes what percentage of events were used in this funnel report. One
     *           `samplingMetadatas` is populated for each date range. Each
     *           `samplingMetadatas` corresponds to a date range in order that date ranges
     *           were specified in the request.
     *           However if the results are not sampled, this field will not be defined.
     * }
     */
    public function __construct($data = NULL)
    {
        \SEOPressPro\Vendor\GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
        parent::__construct($data);
    }
    /**
     * If funnel report results are
     * [sampled](https://support.google.com/analytics/answer/13331292), this
     * describes what percentage of events were used in this funnel report. One
     * `samplingMetadatas` is populated for each date range. Each
     * `samplingMetadatas` corresponds to a date range in order that date ranges
     * were specified in the request.
     * However if the results are not sampled, this field will not be defined.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSamplingMetadatas()
    {
        return $this->sampling_metadatas;
    }
    /**
     * If funnel report results are
     * [sampled](https://support.google.com/analytics/answer/13331292), this
     * describes what percentage of events were used in this funnel report. One
     * `samplingMetadatas` is populated for each date range. Each
     * `samplingMetadatas` corresponds to a date range in order that date ranges
     * were specified in the request.
     * However if the results are not sampled, this field will not be defined.
     *
     * Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;</code>
     * @param array<\Google\Analytics\Data\V1alpha\SamplingMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSamplingMetadatas($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \SEOPressPro\Vendor\Google\Protobuf\Internal\GPBType::MESSAGE, \SEOPressPro\Vendor\Google\Analytics\Data\V1alpha\SamplingMetadata::class);
        $this->sampling_metadatas = $arr;
        return $this;
    }
}
