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\SemanticTile;
19
20class Feature extends \Google\Collection
21{
22  protected $collection_key = 'relations';
23  public $displayName;
24  protected $geometryType = Geometry::class;
25  protected $geometryDataType = '';
26  public $placeId;
27  protected $relationsType = Relation::class;
28  protected $relationsDataType = 'array';
29  protected $segmentInfoType = SegmentInfo::class;
30  protected $segmentInfoDataType = '';
31  public $type;
32
33  public function setDisplayName($displayName)
34  {
35    $this->displayName = $displayName;
36  }
37  public function getDisplayName()
38  {
39    return $this->displayName;
40  }
41  /**
42   * @param Geometry
43   */
44  public function setGeometry(Geometry $geometry)
45  {
46    $this->geometry = $geometry;
47  }
48  /**
49   * @return Geometry
50   */
51  public function getGeometry()
52  {
53    return $this->geometry;
54  }
55  public function setPlaceId($placeId)
56  {
57    $this->placeId = $placeId;
58  }
59  public function getPlaceId()
60  {
61    return $this->placeId;
62  }
63  /**
64   * @param Relation[]
65   */
66  public function setRelations($relations)
67  {
68    $this->relations = $relations;
69  }
70  /**
71   * @return Relation[]
72   */
73  public function getRelations()
74  {
75    return $this->relations;
76  }
77  /**
78   * @param SegmentInfo
79   */
80  public function setSegmentInfo(SegmentInfo $segmentInfo)
81  {
82    $this->segmentInfo = $segmentInfo;
83  }
84  /**
85   * @return SegmentInfo
86   */
87  public function getSegmentInfo()
88  {
89    return $this->segmentInfo;
90  }
91  public function setType($type)
92  {
93    $this->type = $type;
94  }
95  public function getType()
96  {
97    return $this->type;
98  }
99}
100
101// Adding a class alias for backwards compatibility with the previous class name.
102class_alias(Feature::class, 'Google_Service_SemanticTile_Feature');
103