<?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
{
    /**
     * Required. The notification channel to verify.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $name = '';
    /**
     * Required. 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 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Required. The notification channel to verify.
     *     @type string $code
     *           Required. 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);
    }

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

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

        return $this;
    }

    /**
     * Required. 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 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Required. 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 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->code = $var;

        return $this;
    }

}

