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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Message to represent the latency of the service.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.ServiceLatency</code>
 */
class ServiceLatency extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of internal service latencies.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1;</code>
     */
    private $internal_service_latencies;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\ServiceLatency\InternalServiceLatency[] $internal_service_latencies
     *           A list of internal service latencies.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of internal service latencies.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1;</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\ServiceLatency\InternalServiceLatency>
     */
    public function getInternalServiceLatencies()
    {
        return $this->internal_service_latencies;
    }

    /**
     * A list of internal service latencies.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency internal_service_latencies = 1;</code>
     * @param \Google\Cloud\Dialogflow\V2\ServiceLatency\InternalServiceLatency[] $var
     * @return $this
     */
    public function setInternalServiceLatencies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\ServiceLatency\InternalServiceLatency::class);
        $this->internal_service_latencies = $arr;

        return $this;
    }

}

