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

namespace Google\Cloud\Monitoring\V3;

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

/**
 * The protocol for the `CreateUptimeCheckConfig` request.
 *
 * Generated from protobuf message <code>google.monitoring.v3.CreateUptimeCheckConfigRequest</code>
 */
class CreateUptimeCheckConfigRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The project in which to create the uptime check. The format is:
     *   `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     */
    private $parent = '';
    /**
     * The new uptime check configuration.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2;</code>
     */
    private $uptime_check_config = null;

    public function __construct() {
        \GPBMetadata\Google\Monitoring\V3\UptimeService::initOnce();
        parent::__construct();
    }

    /**
     * The project in which to create the uptime check. The format is:
     *   `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * The project in which to create the uptime check. The format is:
     *   `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * The new uptime check configuration.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2;</code>
     * @return \Google\Cloud\Monitoring\V3\UptimeCheckConfig
     */
    public function getUptimeCheckConfig()
    {
        return $this->uptime_check_config;
    }

    /**
     * The new uptime check configuration.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 2;</code>
     * @param \Google\Cloud\Monitoring\V3\UptimeCheckConfig $var
     * @return $this
     */
    public function setUptimeCheckConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\UptimeCheckConfig::class);
        $this->uptime_check_config = $var;

        return $this;
    }

}

