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\ServiceNetworking;
19
20class Field extends \Google\Collection
21{
22  protected $collection_key = 'options';
23  /**
24   * @var string
25   */
26  public $cardinality;
27  /**
28   * @var string
29   */
30  public $defaultValue;
31  /**
32   * @var string
33   */
34  public $jsonName;
35  /**
36   * @var string
37   */
38  public $kind;
39  /**
40   * @var string
41   */
42  public $name;
43  /**
44   * @var int
45   */
46  public $number;
47  /**
48   * @var int
49   */
50  public $oneofIndex;
51  protected $optionsType = Option::class;
52  protected $optionsDataType = 'array';
53  /**
54   * @var bool
55   */
56  public $packed;
57  /**
58   * @var string
59   */
60  public $typeUrl;
61
62  /**
63   * @param string
64   */
65  public function setCardinality($cardinality)
66  {
67    $this->cardinality = $cardinality;
68  }
69  /**
70   * @return string
71   */
72  public function getCardinality()
73  {
74    return $this->cardinality;
75  }
76  /**
77   * @param string
78   */
79  public function setDefaultValue($defaultValue)
80  {
81    $this->defaultValue = $defaultValue;
82  }
83  /**
84   * @return string
85   */
86  public function getDefaultValue()
87  {
88    return $this->defaultValue;
89  }
90  /**
91   * @param string
92   */
93  public function setJsonName($jsonName)
94  {
95    $this->jsonName = $jsonName;
96  }
97  /**
98   * @return string
99   */
100  public function getJsonName()
101  {
102    return $this->jsonName;
103  }
104  /**
105   * @param string
106   */
107  public function setKind($kind)
108  {
109    $this->kind = $kind;
110  }
111  /**
112   * @return string
113   */
114  public function getKind()
115  {
116    return $this->kind;
117  }
118  /**
119   * @param string
120   */
121  public function setName($name)
122  {
123    $this->name = $name;
124  }
125  /**
126   * @return string
127   */
128  public function getName()
129  {
130    return $this->name;
131  }
132  /**
133   * @param int
134   */
135  public function setNumber($number)
136  {
137    $this->number = $number;
138  }
139  /**
140   * @return int
141   */
142  public function getNumber()
143  {
144    return $this->number;
145  }
146  /**
147   * @param int
148   */
149  public function setOneofIndex($oneofIndex)
150  {
151    $this->oneofIndex = $oneofIndex;
152  }
153  /**
154   * @return int
155   */
156  public function getOneofIndex()
157  {
158    return $this->oneofIndex;
159  }
160  /**
161   * @param Option[]
162   */
163  public function setOptions($options)
164  {
165    $this->options = $options;
166  }
167  /**
168   * @return Option[]
169   */
170  public function getOptions()
171  {
172    return $this->options;
173  }
174  /**
175   * @param bool
176   */
177  public function setPacked($packed)
178  {
179    $this->packed = $packed;
180  }
181  /**
182   * @return bool
183   */
184  public function getPacked()
185  {
186    return $this->packed;
187  }
188  /**
189   * @param string
190   */
191  public function setTypeUrl($typeUrl)
192  {
193    $this->typeUrl = $typeUrl;
194  }
195  /**
196   * @return string
197   */
198  public function getTypeUrl()
199  {
200    return $this->typeUrl;
201  }
202}
203
204// Adding a class alias for backwards compatibility with the previous class name.
205class_alias(Field::class, 'Google_Service_ServiceNetworking_Field');
206