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
18namespace Google\Service\Spanner;
19
20class Backup extends \Google\Collection
21{
22  protected $collection_key = 'referencingDatabases';
23  /**
24   * @var string
25   */
26  public $createTime;
27  /**
28   * @var string
29   */
30  public $database;
31  /**
32   * @var string
33   */
34  public $databaseDialect;
35  protected $encryptionInfoType = EncryptionInfo::class;
36  protected $encryptionInfoDataType = '';
37  /**
38   * @var string
39   */
40  public $expireTime;
41  /**
42   * @var string
43   */
44  public $maxExpireTime;
45  /**
46   * @var string
47   */
48  public $name;
49  /**
50   * @var string[]
51   */
52  public $referencingBackups;
53  /**
54   * @var string[]
55   */
56  public $referencingDatabases;
57  /**
58   * @var string
59   */
60  public $sizeBytes;
61  /**
62   * @var string
63   */
64  public $state;
65  /**
66   * @var string
67   */
68  public $versionTime;
69
70  /**
71   * @param string
72   */
73  public function setCreateTime($createTime)
74  {
75    $this->createTime = $createTime;
76  }
77  /**
78   * @return string
79   */
80  public function getCreateTime()
81  {
82    return $this->createTime;
83  }
84  /**
85   * @param string
86   */
87  public function setDatabase($database)
88  {
89    $this->database = $database;
90  }
91  /**
92   * @return string
93   */
94  public function getDatabase()
95  {
96    return $this->database;
97  }
98  /**
99   * @param string
100   */
101  public function setDatabaseDialect($databaseDialect)
102  {
103    $this->databaseDialect = $databaseDialect;
104  }
105  /**
106   * @return string
107   */
108  public function getDatabaseDialect()
109  {
110    return $this->databaseDialect;
111  }
112  /**
113   * @param EncryptionInfo
114   */
115  public function setEncryptionInfo(EncryptionInfo $encryptionInfo)
116  {
117    $this->encryptionInfo = $encryptionInfo;
118  }
119  /**
120   * @return EncryptionInfo
121   */
122  public function getEncryptionInfo()
123  {
124    return $this->encryptionInfo;
125  }
126  /**
127   * @param string
128   */
129  public function setExpireTime($expireTime)
130  {
131    $this->expireTime = $expireTime;
132  }
133  /**
134   * @return string
135   */
136  public function getExpireTime()
137  {
138    return $this->expireTime;
139  }
140  /**
141   * @param string
142   */
143  public function setMaxExpireTime($maxExpireTime)
144  {
145    $this->maxExpireTime = $maxExpireTime;
146  }
147  /**
148   * @return string
149   */
150  public function getMaxExpireTime()
151  {
152    return $this->maxExpireTime;
153  }
154  /**
155   * @param string
156   */
157  public function setName($name)
158  {
159    $this->name = $name;
160  }
161  /**
162   * @return string
163   */
164  public function getName()
165  {
166    return $this->name;
167  }
168  /**
169   * @param string[]
170   */
171  public function setReferencingBackups($referencingBackups)
172  {
173    $this->referencingBackups = $referencingBackups;
174  }
175  /**
176   * @return string[]
177   */
178  public function getReferencingBackups()
179  {
180    return $this->referencingBackups;
181  }
182  /**
183   * @param string[]
184   */
185  public function setReferencingDatabases($referencingDatabases)
186  {
187    $this->referencingDatabases = $referencingDatabases;
188  }
189  /**
190   * @return string[]
191   */
192  public function getReferencingDatabases()
193  {
194    return $this->referencingDatabases;
195  }
196  /**
197   * @param string
198   */
199  public function setSizeBytes($sizeBytes)
200  {
201    $this->sizeBytes = $sizeBytes;
202  }
203  /**
204   * @return string
205   */
206  public function getSizeBytes()
207  {
208    return $this->sizeBytes;
209  }
210  /**
211   * @param string
212   */
213  public function setState($state)
214  {
215    $this->state = $state;
216  }
217  /**
218   * @return string
219   */
220  public function getState()
221  {
222    return $this->state;
223  }
224  /**
225   * @param string
226   */
227  public function setVersionTime($versionTime)
228  {
229    $this->versionTime = $versionTime;
230  }
231  /**
232   * @return string
233   */
234  public function getVersionTime()
235  {
236    return $this->versionTime;
237  }
238}
239
240// Adding a class alias for backwards compatibility with the previous class name.
241class_alias(Backup::class, 'Google_Service_Spanner_Backup');
242