<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/monitoring/v3/notification_service.proto

namespace Google\Cloud\Monitoring\V3;

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

/**
 * The `VerifyNotificationChannel` request.
 *
 * Generated from protobuf message <code>google.monitoring.v3.VerifyNotificationChannelRequest</code>
 */
class VerifyNotificationChannelRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The notification channel to verify.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * The verification code that was delivered to the channel as
     * a result of invoking the `SendNotificationChannelVerificationCode` API
     * method or that was retrieved from a verified channel via
     * `GetNotificationChannelVerificationCode`. For example, one might have
     * "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
     * guaranteed that the code is valid UTF-8; one should not
     * make any assumptions regarding the structure or format of the code).
     *
     * Generated from protobuf field <code>string code = 2;</code>
     */
    private $code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The notification channel to verify.
     *     @type string $code
     *           The verification code that was delivered to the channel as
     *           a result of invoking the `SendNotificationChannelVerificationCode` API
     *           method or that was retrieved from a verified channel via
     *           `GetNotificationChannelVerificationCode`. For example, one might have
     *           "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
     *           guaranteed that the code is valid UTF-8; one should not
     *           make any assumptions regarding the structure or format of the code).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Monitoring\V3\NotificationService::initOnce();
        parent::__construct($data);
    }

    /**
     * The notification channel to verify.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The notification channel to verify.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The verification code that was delivered to the channel as
     * a result of invoking the `SendNotificationChannelVerificationCode` API
     * method or that was retrieved from a verified channel via
     * `GetNotificationChannelVerificationCode`. For example, one might have
     * "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
     * guaranteed that the code is valid UTF-8; one should not
     * make any assumptions regarding the structure or format of the code).
     *
     * Generated from protobuf field <code>string code = 2;</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * The verification code that was delivered to the channel as
     * a result of invoking the `SendNotificationChannelVerificationCode` API
     * method or that was retrieved from a verified channel via
     * `GetNotificationChannelVerificationCode`. For example, one might have
     * "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
     * guaranteed that the code is valid UTF-8; one should not
     * make any assumptions regarding the structure or format of the code).
     *
     * Generated from protobuf field <code>string code = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

}

