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\BigtableAdmin;
|
---|
19 |
|
---|
20 | class Table extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $automatedBackupPolicyType = AutomatedBackupPolicy::class;
|
---|
23 | protected $automatedBackupPolicyDataType = '';
|
---|
24 | protected $changeStreamConfigType = ChangeStreamConfig::class;
|
---|
25 | protected $changeStreamConfigDataType = '';
|
---|
26 | protected $clusterStatesType = ClusterState::class;
|
---|
27 | protected $clusterStatesDataType = 'map';
|
---|
28 | protected $columnFamiliesType = ColumnFamily::class;
|
---|
29 | protected $columnFamiliesDataType = 'map';
|
---|
30 | /**
|
---|
31 | * @var bool
|
---|
32 | */
|
---|
33 | public $deletionProtection;
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $granularity;
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $name;
|
---|
42 | protected $restoreInfoType = RestoreInfo::class;
|
---|
43 | protected $restoreInfoDataType = '';
|
---|
44 | protected $statsType = TableStats::class;
|
---|
45 | protected $statsDataType = '';
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * @param AutomatedBackupPolicy
|
---|
49 | */
|
---|
50 | public function setAutomatedBackupPolicy(AutomatedBackupPolicy $automatedBackupPolicy)
|
---|
51 | {
|
---|
52 | $this->automatedBackupPolicy = $automatedBackupPolicy;
|
---|
53 | }
|
---|
54 | /**
|
---|
55 | * @return AutomatedBackupPolicy
|
---|
56 | */
|
---|
57 | public function getAutomatedBackupPolicy()
|
---|
58 | {
|
---|
59 | return $this->automatedBackupPolicy;
|
---|
60 | }
|
---|
61 | /**
|
---|
62 | * @param ChangeStreamConfig
|
---|
63 | */
|
---|
64 | public function setChangeStreamConfig(ChangeStreamConfig $changeStreamConfig)
|
---|
65 | {
|
---|
66 | $this->changeStreamConfig = $changeStreamConfig;
|
---|
67 | }
|
---|
68 | /**
|
---|
69 | * @return ChangeStreamConfig
|
---|
70 | */
|
---|
71 | public function getChangeStreamConfig()
|
---|
72 | {
|
---|
73 | return $this->changeStreamConfig;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @param ClusterState[]
|
---|
77 | */
|
---|
78 | public function setClusterStates($clusterStates)
|
---|
79 | {
|
---|
80 | $this->clusterStates = $clusterStates;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @return ClusterState[]
|
---|
84 | */
|
---|
85 | public function getClusterStates()
|
---|
86 | {
|
---|
87 | return $this->clusterStates;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @param ColumnFamily[]
|
---|
91 | */
|
---|
92 | public function setColumnFamilies($columnFamilies)
|
---|
93 | {
|
---|
94 | $this->columnFamilies = $columnFamilies;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @return ColumnFamily[]
|
---|
98 | */
|
---|
99 | public function getColumnFamilies()
|
---|
100 | {
|
---|
101 | return $this->columnFamilies;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @param bool
|
---|
105 | */
|
---|
106 | public function setDeletionProtection($deletionProtection)
|
---|
107 | {
|
---|
108 | $this->deletionProtection = $deletionProtection;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @return bool
|
---|
112 | */
|
---|
113 | public function getDeletionProtection()
|
---|
114 | {
|
---|
115 | return $this->deletionProtection;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @param string
|
---|
119 | */
|
---|
120 | public function setGranularity($granularity)
|
---|
121 | {
|
---|
122 | $this->granularity = $granularity;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @return string
|
---|
126 | */
|
---|
127 | public function getGranularity()
|
---|
128 | {
|
---|
129 | return $this->granularity;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @param string
|
---|
133 | */
|
---|
134 | public function setName($name)
|
---|
135 | {
|
---|
136 | $this->name = $name;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @return string
|
---|
140 | */
|
---|
141 | public function getName()
|
---|
142 | {
|
---|
143 | return $this->name;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @param RestoreInfo
|
---|
147 | */
|
---|
148 | public function setRestoreInfo(RestoreInfo $restoreInfo)
|
---|
149 | {
|
---|
150 | $this->restoreInfo = $restoreInfo;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @return RestoreInfo
|
---|
154 | */
|
---|
155 | public function getRestoreInfo()
|
---|
156 | {
|
---|
157 | return $this->restoreInfo;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @param TableStats
|
---|
161 | */
|
---|
162 | public function setStats(TableStats $stats)
|
---|
163 | {
|
---|
164 | $this->stats = $stats;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @return TableStats
|
---|
168 | */
|
---|
169 | public function getStats()
|
---|
170 | {
|
---|
171 | return $this->stats;
|
---|
172 | }
|
---|
173 | }
|
---|
174 |
|
---|
175 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
176 | class_alias(Table::class, 'Google_Service_BigtableAdmin_Table');
|
---|