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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Suggested summary of the conversation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SummarySuggestion</code>
 */
class SummarySuggestion extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. All the parts of generated summary.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $summary_sections;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\SummarySuggestion\SummarySection[] $summary_sections
     *           Required. All the parts of generated summary.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. All the parts of generated summary.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\SummarySuggestion\SummarySection>
     */
    public function getSummarySections()
    {
        return $this->summary_sections;
    }

    /**
     * Required. All the parts of generated summary.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dialogflow\V2\SummarySuggestion\SummarySection[] $var
     * @return $this
     */
    public function setSummarySections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SummarySuggestion\SummarySection::class);
        $this->summary_sections = $arr;

        return $this;
    }

}

