<?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 `UpdateUptimeCheckConfig` request.
 *
 * Generated from protobuf message <code>google.monitoring.v3.UpdateUptimeCheckConfigRequest</code>
 */
class UpdateUptimeCheckConfigRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. If present, only the listed fields in the current uptime check
     * configuration are updated with values from the new configuration. If this
     * field is empty, then the current configuration is completely replaced with
     * the new configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;
    /**
     * Required. If an `"updateMask"` has been specified, this field gives
     * the values for the set of fields mentioned in the `"updateMask"`. If an
     * `"updateMask"` has not been given, this uptime check configuration replaces
     * the current configuration. If a field is mentioned in `"updateMask`" but
     * the corresonding field is omitted in this partial uptime check
     * configuration, it has the effect of deleting/clearing the field from the
     * configuration on the server.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3;</code>
     */
    private $uptime_check_config = null;

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

    /**
     * Optional. If present, only the listed fields in the current uptime check
     * configuration are updated with values from the new configuration. If this
     * field is empty, then the current configuration is completely replaced with
     * the new configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    /**
     * Optional. If present, only the listed fields in the current uptime check
     * configuration are updated with values from the new configuration. If this
     * field is empty, then the current configuration is completely replaced with
     * the new configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

    /**
     * Required. If an `"updateMask"` has been specified, this field gives
     * the values for the set of fields mentioned in the `"updateMask"`. If an
     * `"updateMask"` has not been given, this uptime check configuration replaces
     * the current configuration. If a field is mentioned in `"updateMask`" but
     * the corresonding field is omitted in this partial uptime check
     * configuration, it has the effect of deleting/clearing the field from the
     * configuration on the server.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3;</code>
     * @return \Google\Cloud\Monitoring\V3\UptimeCheckConfig
     */
    public function getUptimeCheckConfig()
    {
        return $this->uptime_check_config;
    }

    /**
     * Required. If an `"updateMask"` has been specified, this field gives
     * the values for the set of fields mentioned in the `"updateMask"`. If an
     * `"updateMask"` has not been given, this uptime check configuration replaces
     * the current configuration. If a field is mentioned in `"updateMask`" but
     * the corresonding field is omitted in this partial uptime check
     * configuration, it has the effect of deleting/clearing the field from the
     * configuration on the server.
     *
     * Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3;</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;
    }

}

