Skip to content

Commit d3bcf4d

Browse files
1 parent 1a7dd23 commit d3bcf4d

1 file changed

Lines changed: 147 additions & 0 deletions

File tree

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\AlertCenter;
19+
20+
class DriveSyncStateChanged extends \Google\Model
21+
{
22+
/**
23+
* Unspecified state
24+
*/
25+
public const SYNC_STATE_SYNC_STATE_UNSPECIFIED = 'SYNC_STATE_UNSPECIFIED';
26+
/**
27+
* Sync is paused
28+
*/
29+
public const SYNC_STATE_PAUSED = 'PAUSED';
30+
/**
31+
* Sync is resumed
32+
*/
33+
public const SYNC_STATE_RESUMED = 'RESUMED';
34+
/**
35+
* Unspecified state change reason
36+
*/
37+
public const SYNC_STATE_CHANGE_REASON_SYNC_STATE_CHANGE_REASON_UNSPECIFIED = 'SYNC_STATE_CHANGE_REASON_UNSPECIFIED';
38+
/**
39+
* Sync state change reason is unusual activity
40+
*/
41+
public const SYNC_STATE_CHANGE_REASON_UNUSUAL_ACTIVITY = 'UNUSUAL_ACTIVITY';
42+
/**
43+
* Sync state change reason is user feedback true positive
44+
*/
45+
public const SYNC_STATE_CHANGE_REASON_USER_FEEDBACK_TRUE_POSITIVE = 'USER_FEEDBACK_TRUE_POSITIVE';
46+
/**
47+
* Sync state change reason is user feedback false positive
48+
*/
49+
public const SYNC_STATE_CHANGE_REASON_USER_FEEDBACK_FALSE_POSITIVE = 'USER_FEEDBACK_FALSE_POSITIVE';
50+
/**
51+
* Email of the user affected.
52+
*
53+
* @var string
54+
*/
55+
public $email;
56+
/**
57+
* Time at which sync was paused.
58+
*
59+
* @var string
60+
*/
61+
public $syncPauseStartTime;
62+
/**
63+
* The current sync state.
64+
*
65+
* @var string
66+
*/
67+
public $syncState;
68+
/**
69+
* The reason for the sync state change.
70+
*
71+
* @var string
72+
*/
73+
public $syncStateChangeReason;
74+
75+
/**
76+
* Email of the user affected.
77+
*
78+
* @param string $email
79+
*/
80+
public function setEmail($email)
81+
{
82+
$this->email = $email;
83+
}
84+
/**
85+
* @return string
86+
*/
87+
public function getEmail()
88+
{
89+
return $this->email;
90+
}
91+
/**
92+
* Time at which sync was paused.
93+
*
94+
* @param string $syncPauseStartTime
95+
*/
96+
public function setSyncPauseStartTime($syncPauseStartTime)
97+
{
98+
$this->syncPauseStartTime = $syncPauseStartTime;
99+
}
100+
/**
101+
* @return string
102+
*/
103+
public function getSyncPauseStartTime()
104+
{
105+
return $this->syncPauseStartTime;
106+
}
107+
/**
108+
* The current sync state.
109+
*
110+
* Accepted values: SYNC_STATE_UNSPECIFIED, PAUSED, RESUMED
111+
*
112+
* @param self::SYNC_STATE_* $syncState
113+
*/
114+
public function setSyncState($syncState)
115+
{
116+
$this->syncState = $syncState;
117+
}
118+
/**
119+
* @return self::SYNC_STATE_*
120+
*/
121+
public function getSyncState()
122+
{
123+
return $this->syncState;
124+
}
125+
/**
126+
* The reason for the sync state change.
127+
*
128+
* Accepted values: SYNC_STATE_CHANGE_REASON_UNSPECIFIED, UNUSUAL_ACTIVITY,
129+
* USER_FEEDBACK_TRUE_POSITIVE, USER_FEEDBACK_FALSE_POSITIVE
130+
*
131+
* @param self::SYNC_STATE_CHANGE_REASON_* $syncStateChangeReason
132+
*/
133+
public function setSyncStateChangeReason($syncStateChangeReason)
134+
{
135+
$this->syncStateChangeReason = $syncStateChangeReason;
136+
}
137+
/**
138+
* @return self::SYNC_STATE_CHANGE_REASON_*
139+
*/
140+
public function getSyncStateChangeReason()
141+
{
142+
return $this->syncStateChangeReason;
143+
}
144+
}
145+
146+
// Adding a class alias for backwards compatibility with the previous class name.
147+
class_alias(DriveSyncStateChanged::class, 'Google_Service_AlertCenter_DriveSyncStateChanged');

0 commit comments

Comments
 (0)