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\CloudSearch;
19
20class Metadata extends \Google\Collection
21{
22  protected $collection_key = 'fields';
23  /**
24   * @var string
25   */
26  public $createTime;
27  protected $displayOptionsType = ResultDisplayMetadata::class;
28  protected $displayOptionsDataType = '';
29  protected $fieldsType = NamedProperty::class;
30  protected $fieldsDataType = 'array';
31  /**
32   * @var string
33   */
34  public $mimeType;
35  /**
36   * @var string
37   */
38  public $objectType;
39  protected $ownerType = Person::class;
40  protected $ownerDataType = '';
41  protected $sourceType = Source::class;
42  protected $sourceDataType = '';
43  /**
44   * @var string
45   */
46  public $thumbnailUrl;
47  /**
48   * @var string
49   */
50  public $updateTime;
51
52  /**
53   * @param string
54   */
55  public function setCreateTime($createTime)
56  {
57    $this->createTime = $createTime;
58  }
59  /**
60   * @return string
61   */
62  public function getCreateTime()
63  {
64    return $this->createTime;
65  }
66  /**
67   * @param ResultDisplayMetadata
68   */
69  public function setDisplayOptions(ResultDisplayMetadata $displayOptions)
70  {
71    $this->displayOptions = $displayOptions;
72  }
73  /**
74   * @return ResultDisplayMetadata
75   */
76  public function getDisplayOptions()
77  {
78    return $this->displayOptions;
79  }
80  /**
81   * @param NamedProperty[]
82   */
83  public function setFields($fields)
84  {
85    $this->fields = $fields;
86  }
87  /**
88   * @return NamedProperty[]
89   */
90  public function getFields()
91  {
92    return $this->fields;
93  }
94  /**
95   * @param string
96   */
97  public function setMimeType($mimeType)
98  {
99    $this->mimeType = $mimeType;
100  }
101  /**
102   * @return string
103   */
104  public function getMimeType()
105  {
106    return $this->mimeType;
107  }
108  /**
109   * @param string
110   */
111  public function setObjectType($objectType)
112  {
113    $this->objectType = $objectType;
114  }
115  /**
116   * @return string
117   */
118  public function getObjectType()
119  {
120    return $this->objectType;
121  }
122  /**
123   * @param Person
124   */
125  public function setOwner(Person $owner)
126  {
127    $this->owner = $owner;
128  }
129  /**
130   * @return Person
131   */
132  public function getOwner()
133  {
134    return $this->owner;
135  }
136  /**
137   * @param Source
138   */
139  public function setSource(Source $source)
140  {
141    $this->source = $source;
142  }
143  /**
144   * @return Source
145   */
146  public function getSource()
147  {
148    return $this->source;
149  }
150  /**
151   * @param string
152   */
153  public function setThumbnailUrl($thumbnailUrl)
154  {
155    $this->thumbnailUrl = $thumbnailUrl;
156  }
157  /**
158   * @return string
159   */
160  public function getThumbnailUrl()
161  {
162    return $this->thumbnailUrl;
163  }
164  /**
165   * @param string
166   */
167  public function setUpdateTime($updateTime)
168  {
169    $this->updateTime = $updateTime;
170  }
171  /**
172   * @return string
173   */
174  public function getUpdateTime()
175  {
176    return $this->updateTime;
177  }
178}
179
180// Adding a class alias for backwards compatibility with the previous class name.
181class_alias(Metadata::class, 'Google_Service_CloudSearch_Metadata');
182