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

namespace Google\Cloud\SecurityCenter\V1;

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

/**
 * Request message for updating a SecurityMarks resource.
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.UpdateSecurityMarksRequest</code>
 */
class UpdateSecurityMarksRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The security marks resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 1;</code>
     */
    private $security_marks = null;
    /**
     * The FieldMask to use when updating the security marks resource.
     * The field mask must not contain duplicate fields.
     * If empty or set to "marks", all marks will be replaced.  Individual
     * marks can be updated using "marks.<mark_key>".
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;
    /**
     * The time at which the updated SecurityMarks take effect.
     * If not set uses current server time.  Updates will be applied to the
     * SecurityMarks that are active immediately preceding this time.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 3;</code>
     */
    private $start_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\SecurityCenter\V1\SecurityMarks $security_marks
     *           The security marks resource to update.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           The FieldMask to use when updating the security marks resource.
     *           The field mask must not contain duplicate fields.
     *           If empty or set to "marks", all marks will be replaced.  Individual
     *           marks can be updated using "marks.<mark_key>".
     *     @type \Google\Protobuf\Timestamp $start_time
     *           The time at which the updated SecurityMarks take effect.
     *           If not set uses current server time.  Updates will be applied to the
     *           SecurityMarks that are active immediately preceding this time.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\SecuritycenterService::initOnce();
        parent::__construct($data);
    }

    /**
     * The security marks resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 1;</code>
     * @return \Google\Cloud\SecurityCenter\V1\SecurityMarks
     */
    public function getSecurityMarks()
    {
        return $this->security_marks;
    }

    /**
     * The security marks resource to update.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 1;</code>
     * @param \Google\Cloud\SecurityCenter\V1\SecurityMarks $var
     * @return $this
     */
    public function setSecurityMarks($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\SecurityMarks::class);
        $this->security_marks = $var;

        return $this;
    }

    /**
     * The FieldMask to use when updating the security marks resource.
     * The field mask must not contain duplicate fields.
     * If empty or set to "marks", all marks will be replaced.  Individual
     * marks can be updated using "marks.<mark_key>".
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     * @return \Google\Protobuf\FieldMask
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    /**
     * The FieldMask to use when updating the security marks resource.
     * The field mask must not contain duplicate fields.
     * If empty or set to "marks", all marks will be replaced.  Individual
     * marks can be updated using "marks.<mark_key>".
     *
     * 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;
    }

    /**
     * The time at which the updated SecurityMarks take effect.
     * If not set uses current server time.  Updates will be applied to the
     * SecurityMarks that are active immediately preceding this time.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 3;</code>
     * @return \Google\Protobuf\Timestamp
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

    /**
     * The time at which the updated SecurityMarks take effect.
     * If not set uses current server time.  Updates will be applied to the
     * SecurityMarks that are active immediately preceding this time.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->start_time = $var;

        return $this;
    }

}

