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

namespace Google\Cloud\Functions\V1;

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

/**
 * Describes HttpsTrigger, could be used to connect web hooks to function.
 *
 * Generated from protobuf message <code>google.cloud.functions.v1.HttpsTrigger</code>
 */
class HttpsTrigger extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The deployed url for the function.
     *
     * Generated from protobuf field <code>string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $url = '';
    /**
     * The security level for the function.
     *
     * Generated from protobuf field <code>.google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2;</code>
     */
    private $security_level = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *           Output only. The deployed url for the function.
     *     @type int $security_level
     *           The security level for the function.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Functions\V1\Functions::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The deployed url for the function.
     *
     * Generated from protobuf field <code>string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

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

        return $this;
    }

    /**
     * The security level for the function.
     *
     * Generated from protobuf field <code>.google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2;</code>
     * @return int
     */
    public function getSecurityLevel()
    {
        return $this->security_level;
    }

    /**
     * The security level for the function.
     *
     * Generated from protobuf field <code>.google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSecurityLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Functions\V1\HttpsTrigger\SecurityLevel::class);
        $this->security_level = $var;

        return $this;
    }

}

