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\TrafficDirectorService;
|
---|
19 |
|
---|
20 | class Node extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'listeningAddresses';
|
---|
23 | /**
|
---|
24 | * @var string[]
|
---|
25 | */
|
---|
26 | public $clientFeatures;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $cluster;
|
---|
31 | protected $dynamicParametersType = ContextParams::class;
|
---|
32 | protected $dynamicParametersDataType = 'map';
|
---|
33 | protected $extensionsType = Extension::class;
|
---|
34 | protected $extensionsDataType = 'array';
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $id;
|
---|
39 | protected $listeningAddressesType = Address::class;
|
---|
40 | protected $listeningAddressesDataType = 'array';
|
---|
41 | protected $localityType = Locality::class;
|
---|
42 | protected $localityDataType = '';
|
---|
43 | /**
|
---|
44 | * @var array[]
|
---|
45 | */
|
---|
46 | public $metadata;
|
---|
47 | protected $userAgentBuildVersionType = BuildVersion::class;
|
---|
48 | protected $userAgentBuildVersionDataType = '';
|
---|
49 | /**
|
---|
50 | * @var string
|
---|
51 | */
|
---|
52 | public $userAgentName;
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $userAgentVersion;
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * @param string[]
|
---|
60 | */
|
---|
61 | public function setClientFeatures($clientFeatures)
|
---|
62 | {
|
---|
63 | $this->clientFeatures = $clientFeatures;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @return string[]
|
---|
67 | */
|
---|
68 | public function getClientFeatures()
|
---|
69 | {
|
---|
70 | return $this->clientFeatures;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @param string
|
---|
74 | */
|
---|
75 | public function setCluster($cluster)
|
---|
76 | {
|
---|
77 | $this->cluster = $cluster;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @return string
|
---|
81 | */
|
---|
82 | public function getCluster()
|
---|
83 | {
|
---|
84 | return $this->cluster;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @param ContextParams[]
|
---|
88 | */
|
---|
89 | public function setDynamicParameters($dynamicParameters)
|
---|
90 | {
|
---|
91 | $this->dynamicParameters = $dynamicParameters;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return ContextParams[]
|
---|
95 | */
|
---|
96 | public function getDynamicParameters()
|
---|
97 | {
|
---|
98 | return $this->dynamicParameters;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param Extension[]
|
---|
102 | */
|
---|
103 | public function setExtensions($extensions)
|
---|
104 | {
|
---|
105 | $this->extensions = $extensions;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return Extension[]
|
---|
109 | */
|
---|
110 | public function getExtensions()
|
---|
111 | {
|
---|
112 | return $this->extensions;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param string
|
---|
116 | */
|
---|
117 | public function setId($id)
|
---|
118 | {
|
---|
119 | $this->id = $id;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return string
|
---|
123 | */
|
---|
124 | public function getId()
|
---|
125 | {
|
---|
126 | return $this->id;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param Address[]
|
---|
130 | */
|
---|
131 | public function setListeningAddresses($listeningAddresses)
|
---|
132 | {
|
---|
133 | $this->listeningAddresses = $listeningAddresses;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return Address[]
|
---|
137 | */
|
---|
138 | public function getListeningAddresses()
|
---|
139 | {
|
---|
140 | return $this->listeningAddresses;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param Locality
|
---|
144 | */
|
---|
145 | public function setLocality(Locality $locality)
|
---|
146 | {
|
---|
147 | $this->locality = $locality;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return Locality
|
---|
151 | */
|
---|
152 | public function getLocality()
|
---|
153 | {
|
---|
154 | return $this->locality;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param array[]
|
---|
158 | */
|
---|
159 | public function setMetadata($metadata)
|
---|
160 | {
|
---|
161 | $this->metadata = $metadata;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return array[]
|
---|
165 | */
|
---|
166 | public function getMetadata()
|
---|
167 | {
|
---|
168 | return $this->metadata;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param BuildVersion
|
---|
172 | */
|
---|
173 | public function setUserAgentBuildVersion(BuildVersion $userAgentBuildVersion)
|
---|
174 | {
|
---|
175 | $this->userAgentBuildVersion = $userAgentBuildVersion;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return BuildVersion
|
---|
179 | */
|
---|
180 | public function getUserAgentBuildVersion()
|
---|
181 | {
|
---|
182 | return $this->userAgentBuildVersion;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param string
|
---|
186 | */
|
---|
187 | public function setUserAgentName($userAgentName)
|
---|
188 | {
|
---|
189 | $this->userAgentName = $userAgentName;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return string
|
---|
193 | */
|
---|
194 | public function getUserAgentName()
|
---|
195 | {
|
---|
196 | return $this->userAgentName;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param string
|
---|
200 | */
|
---|
201 | public function setUserAgentVersion($userAgentVersion)
|
---|
202 | {
|
---|
203 | $this->userAgentVersion = $userAgentVersion;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return string
|
---|
207 | */
|
---|
208 | public function getUserAgentVersion()
|
---|
209 | {
|
---|
210 | return $this->userAgentVersion;
|
---|
211 | }
|
---|
212 | }
|
---|
213 |
|
---|
214 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
215 | class_alias(Node::class, 'Google_Service_TrafficDirectorService_Node');
|
---|