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

namespace Google\Cloud\Dialogflow\V2\HumanAgentAssistantConfig\SuggestionQueryConfig;

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

/**
 * Custom sections to return when requesting a summary of a conversation.
 * This is only supported when `baseline_model_version` == '2.0'.
 * Supported features: CONVERSATION_SUMMARIZATION,
 * CONVERSATION_SUMMARIZATION_VOICE.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections</code>
 */
class Sections extends \Google\Protobuf\Internal\Message
{
    /**
     * The selected sections chosen to return when requesting a summary of a
     * conversation. A duplicate selected section will be treated as a single
     * selected section. If section types are not provided, the default will
     * be {SITUATION, ACTION, RESULT}.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType section_types = 1;</code>
     */
    private $section_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int[] $section_types
     *           The selected sections chosen to return when requesting a summary of a
     *           conversation. A duplicate selected section will be treated as a single
     *           selected section. If section types are not provided, the default will
     *           be {SITUATION, ACTION, RESULT}.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * The selected sections chosen to return when requesting a summary of a
     * conversation. A duplicate selected section will be treated as a single
     * selected section. If section types are not provided, the default will
     * be {SITUATION, ACTION, RESULT}.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType section_types = 1;</code>
     * @return RepeatedField<int>
     */
    public function getSectionTypes()
    {
        return $this->section_types;
    }

    /**
     * The selected sections chosen to return when requesting a summary of a
     * conversation. A duplicate selected section will be treated as a single
     * selected section. If section types are not provided, the default will
     * be {SITUATION, ACTION, RESULT}.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections.SectionType section_types = 1;</code>
     * @param int[] $var
     * @return $this
     */
    public function setSectionTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dialogflow\V2\HumanAgentAssistantConfig\SuggestionQueryConfig\Sections\SectionType::class);
        $this->section_types = $arr;

        return $this;
    }

}

