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\Logging;
19
20class TableFieldSchema extends \Google\Collection
21{
22  protected $collection_key = 'fields';
23  public $description;
24  protected $fieldsType = TableFieldSchema::class;
25  protected $fieldsDataType = 'array';
26  public $mode;
27  public $name;
28  public $type;
29
30  public function setDescription($description)
31  {
32    $this->description = $description;
33  }
34  public function getDescription()
35  {
36    return $this->description;
37  }
38  /**
39   * @param TableFieldSchema[]
40   */
41  public function setFields($fields)
42  {
43    $this->fields = $fields;
44  }
45  /**
46   * @return TableFieldSchema[]
47   */
48  public function getFields()
49  {
50    return $this->fields;
51  }
52  public function setMode($mode)
53  {
54    $this->mode = $mode;
55  }
56  public function getMode()
57  {
58    return $this->mode;
59  }
60  public function setName($name)
61  {
62    $this->name = $name;
63  }
64  public function getName()
65  {
66    return $this->name;
67  }
68  public function setType($type)
69  {
70    $this->type = $type;
71  }
72  public function getType()
73  {
74    return $this->type;
75  }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(TableFieldSchema::class, 'Google_Service_Logging_TableFieldSchema');
80