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

namespace Google\Cloud\Dialogflow\V2\SummarySuggestion;

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

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

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

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

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

        return $this;
    }

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

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

        return $this;
    }

}


