<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/chat/v1/section.proto

namespace Google\Apps\Chat\V1;

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

/**
 * Response message for positioning a section.
 *
 * Generated from protobuf message <code>google.chat.v1.PositionSectionResponse</code>
 */
class PositionSectionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The updated section.
     *
     * Generated from protobuf field <code>.google.chat.v1.Section section = 1;</code>
     */
    protected $section = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Apps\Chat\V1\Section $section
     *           The updated section.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Chat\V1\Section::initOnce();
        parent::__construct($data);
    }

    /**
     * The updated section.
     *
     * Generated from protobuf field <code>.google.chat.v1.Section section = 1;</code>
     * @return \Google\Apps\Chat\V1\Section|null
     */
    public function getSection()
    {
        return $this->section;
    }

    public function hasSection()
    {
        return isset($this->section);
    }

    public function clearSection()
    {
        unset($this->section);
    }

    /**
     * The updated section.
     *
     * Generated from protobuf field <code>.google.chat.v1.Section section = 1;</code>
     * @param \Google\Apps\Chat\V1\Section $var
     * @return $this
     */
    public function setSection($var)
    {
        GPBUtil::checkMessage($var, \Google\Apps\Chat\V1\Section::class);
        $this->section = $var;

        return $this;
    }

}

