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

namespace Google\Cloud\OsConfig\V1;

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

/**
 * Represents a weekly schedule.
 *
 * Generated from protobuf message <code>google.cloud.osconfig.v1.WeeklySchedule</code>
 */
class WeeklySchedule extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Day of the week.
     *
     * Generated from protobuf field <code>.google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $day_of_week = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $day_of_week
     *           Required. Day of the week.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Osconfig\V1\PatchDeployments::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Day of the week.
     *
     * Generated from protobuf field <code>.google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getDayOfWeek()
    {
        return $this->day_of_week;
    }

    /**
     * Required. Day of the week.
     *
     * Generated from protobuf field <code>.google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setDayOfWeek($var)
    {
        GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class);
        $this->day_of_week = $var;

        return $this;
    }

}

