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

namespace Google\Cloud\Dialogflow\V2\SuggestConversationSummaryResponse\Summary;

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

/**
 * A component of the generated summary.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary.SummarySection</code>
 */
class SummarySection extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Name of the section.
     *
     * Generated from protobuf field <code>string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $section = '';
    /**
     * Output only. Summary text for the section.
     *
     * Generated from protobuf field <code>string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $summary = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $section
     *           Output only. Name of the section.
     *     @type string $summary
     *           Output only. Summary text for the section.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Name of the section.
     *
     * Generated from protobuf field <code>string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSection()
    {
        return $this->section;
    }

    /**
     * Output only. Name of the section.
     *
     * Generated from protobuf field <code>string section = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSection($var)
    {
        GPBUtil::checkString($var, True);
        $this->section = $var;

        return $this;
    }

    /**
     * Output only. Summary text for the section.
     *
     * Generated from protobuf field <code>string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSummary()
    {
        return $this->summary;
    }

    /**
     * Output only. Summary text for the section.
     *
     * Generated from protobuf field <code>string summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSummary($var)
    {
        GPBUtil::checkString($var, True);
        $this->summary = $var;

        return $this;
    }

}

