<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/apps/script/type/docs/docs_addon_manifest.proto

namespace Google\Apps\Script\Type\Docs;

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

/**
 * Common format for declaring a Docs add-on's triggers.
 *
 * Generated from protobuf message <code>google.apps.script.type.docs.DocsExtensionPoint</code>
 */
class DocsExtensionPoint extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The endpoint to execute when this extension point is activated.
     *
     * Generated from protobuf field <code>string run_function = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $run_function = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $run_function
     *           Required. The endpoint to execute when this extension point is activated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Apps\Script\Type\Docs\DocsAddonManifest::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The endpoint to execute when this extension point is activated.
     *
     * Generated from protobuf field <code>string run_function = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getRunFunction()
    {
        return $this->run_function;
    }

    /**
     * Required. The endpoint to execute when this extension point is activated.
     *
     * Generated from protobuf field <code>string run_function = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setRunFunction($var)
    {
        GPBUtil::checkString($var, True);
        $this->run_function = $var;

        return $this;
    }

}

