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

namespace Google\Apps\Script\Type;

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

/**
 * Options for sending requests to add-on HTTP endpoints
 *
 * Generated from protobuf message <code>google.apps.script.type.HttpOptions</code>
 */
class HttpOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Configuration for the token sent in the HTTP Authorization header
     *
     * Generated from protobuf field <code>.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;</code>
     */
    protected $authorization_header = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $authorization_header
     *           Configuration for the token sent in the HTTP Authorization header
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Apps\Script\Type\ScriptManifest::initOnce();
        parent::__construct($data);
    }

    /**
     * Configuration for the token sent in the HTTP Authorization header
     *
     * Generated from protobuf field <code>.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;</code>
     * @return int
     */
    public function getAuthorizationHeader()
    {
        return $this->authorization_header;
    }

    /**
     * Configuration for the token sent in the HTTP Authorization header
     *
     * Generated from protobuf field <code>.google.apps.script.type.HttpAuthorizationHeader authorization_header = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAuthorizationHeader($var)
    {
        GPBUtil::checkEnum($var, \Google\Apps\Script\Type\HttpAuthorizationHeader::class);
        $this->authorization_header = $var;

        return $this;
    }

}

