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

namespace Google\Cloud\BaremetalSolution\V2;

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

/**
 * Message for updating a snapshot schedule policy in a project.
 *
 * Generated from protobuf message <code>google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest</code>
 */
class UpdateSnapshotSchedulePolicyRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The snapshot schedule policy to update.
     * The `name` field is used to identify the snapshot schedule policy to
     * update. Format:
     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
     *
     * Generated from protobuf field <code>.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $snapshot_schedule_policy = null;
    /**
     * Required. The list of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $snapshot_schedule_policy
     *           Required. The snapshot schedule policy to update.
     *           The `name` field is used to identify the snapshot schedule policy to
     *           update. Format:
     *           projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Required. The list of fields to update.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The snapshot schedule policy to update.
     * The `name` field is used to identify the snapshot schedule policy to
     * update. Format:
     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
     *
     * Generated from protobuf field <code>.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy|null
     */
    public function getSnapshotSchedulePolicy()
    {
        return $this->snapshot_schedule_policy;
    }

    public function hasSnapshotSchedulePolicy()
    {
        return isset($this->snapshot_schedule_policy);
    }

    public function clearSnapshotSchedulePolicy()
    {
        unset($this->snapshot_schedule_policy);
    }

    /**
     * Required. The snapshot schedule policy to update.
     * The `name` field is used to identify the snapshot schedule policy to
     * update. Format:
     * projects/{project}/locations/global/snapshotSchedulePolicies/{policy}
     *
     * Generated from protobuf field <code>.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $var
     * @return $this
     */
    public function setSnapshotSchedulePolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy::class);
        $this->snapshot_schedule_policy = $var;

        return $this;
    }

    /**
     * Required. The list of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Required. The list of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</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;
    }

}

