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