📄 Source: GooglePrivacyDlpV2DateTime.php
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\DLP;
class GooglePrivacyDlpV2DateTime extends \Google\Model
{
/**
* The day of the week is unspecified.
*/
public const DAY_OF_WEEK_DAY_OF_WEEK_UNSPECIFIED = 'DAY_OF_WEEK_UNSPECIFIED';
/**
* Monday
*/
public const DAY_OF_WEEK_MONDAY = 'MONDAY';
/**
* Tuesday
*/
public const DAY_OF_WEEK_TUESDAY = 'TUESDAY';
/**
* Wednesday
*/
public const DAY_OF_WEEK_WEDNESDAY = 'WEDNESDAY';
/**
* Thursday
*/
public const DAY_OF_WEEK_THURSDAY = 'THURSDAY';
/**
* Friday
*/
public const DAY_OF_WEEK_FRIDAY = 'FRIDAY';
/**
* Saturday
*/
public const DAY_OF_WEEK_SATURDAY = 'SATURDAY';
/**
* Sunday
*/
public const DAY_OF_WEEK_SUNDAY = 'SUNDAY';
protected $dateType = GoogleTypeDate::class;
protected $dateDataType = '';
/**
* Day of week
*
* @var string
*/
public $dayOfWeek;
protected $timeType = GoogleTypeTimeOfDay::class;
protected $timeDataType = '';
protected $timeZoneType = GooglePrivacyDlpV2TimeZone::class;
protected $timeZoneDataType = '';
/**
* One or more of the following must be set. Must be a valid date or time
* value.
*
* @param GoogleTypeDate $date
*/
public function setDate(GoogleTypeDate $date)
{
$this->date = $date;
}
/**
* @return GoogleTypeDate
*/
public function getDate()
{
return $this->date;
}
/**
* Day of week
*
* Accepted values: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY,
* THURSDAY, FRIDAY, SATURDAY, SUNDAY
*
* @param self::DAY_OF_WEEK_* $dayOfWeek
*/
public function setDayOfWeek($dayOfWeek)
{
$this->dayOfWeek = $dayOfWeek;
}
/**
* @return self::DAY_OF_WEEK_*
*/
public function getDayOfWeek()
{
return $this->dayOfWeek;
}
/**
* Time of day
*
* @param GoogleTypeTimeOfDay $time
*/
public function setTime(GoogleTypeTimeOfDay $time)
{
$this->time = $time;
}
/**
* @return GoogleTypeTimeOfDay
*/
public function getTime()
{
return $this->time;
}
/**
* Time zone
*
* @param GooglePrivacyDlpV2TimeZone $timeZone
*/
public function setTimeZone(GooglePrivacyDlpV2TimeZone $timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return GooglePrivacyDlpV2TimeZone
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GooglePrivacyDlpV2DateTime::class, 'Google_Service_DLP_GooglePrivacyDlpV2DateTime');
← Back