[f9c482b] | 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 |
|
---|
| 18 | namespace Google\Service\Contentwarehouse;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudContentwarehouseV1PropertyDefinition extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'schemaSources';
|
---|
| 23 | protected $dateTimeTypeOptionsType = GoogleCloudContentwarehouseV1DateTimeTypeOptions::class;
|
---|
| 24 | protected $dateTimeTypeOptionsDataType = '';
|
---|
| 25 | /**
|
---|
| 26 | * @var string
|
---|
| 27 | */
|
---|
| 28 | public $displayName;
|
---|
| 29 | protected $enumTypeOptionsType = GoogleCloudContentwarehouseV1EnumTypeOptions::class;
|
---|
| 30 | protected $enumTypeOptionsDataType = '';
|
---|
| 31 | protected $floatTypeOptionsType = GoogleCloudContentwarehouseV1FloatTypeOptions::class;
|
---|
| 32 | protected $floatTypeOptionsDataType = '';
|
---|
| 33 | protected $integerTypeOptionsType = GoogleCloudContentwarehouseV1IntegerTypeOptions::class;
|
---|
| 34 | protected $integerTypeOptionsDataType = '';
|
---|
| 35 | /**
|
---|
| 36 | * @var bool
|
---|
| 37 | */
|
---|
| 38 | public $isFilterable;
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $isMetadata;
|
---|
| 43 | /**
|
---|
| 44 | * @var bool
|
---|
| 45 | */
|
---|
| 46 | public $isRepeatable;
|
---|
| 47 | /**
|
---|
| 48 | * @var bool
|
---|
| 49 | */
|
---|
| 50 | public $isRequired;
|
---|
| 51 | /**
|
---|
| 52 | * @var bool
|
---|
| 53 | */
|
---|
| 54 | public $isSearchable;
|
---|
| 55 | protected $mapTypeOptionsType = GoogleCloudContentwarehouseV1MapTypeOptions::class;
|
---|
| 56 | protected $mapTypeOptionsDataType = '';
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $name;
|
---|
| 61 | protected $propertyTypeOptionsType = GoogleCloudContentwarehouseV1PropertyTypeOptions::class;
|
---|
| 62 | protected $propertyTypeOptionsDataType = '';
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $retrievalImportance;
|
---|
| 67 | protected $schemaSourcesType = GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource::class;
|
---|
| 68 | protected $schemaSourcesDataType = 'array';
|
---|
| 69 | protected $textTypeOptionsType = GoogleCloudContentwarehouseV1TextTypeOptions::class;
|
---|
| 70 | protected $textTypeOptionsDataType = '';
|
---|
| 71 | protected $timestampTypeOptionsType = GoogleCloudContentwarehouseV1TimestampTypeOptions::class;
|
---|
| 72 | protected $timestampTypeOptionsDataType = '';
|
---|
| 73 |
|
---|
| 74 | /**
|
---|
| 75 | * @param GoogleCloudContentwarehouseV1DateTimeTypeOptions
|
---|
| 76 | */
|
---|
| 77 | public function setDateTimeTypeOptions(GoogleCloudContentwarehouseV1DateTimeTypeOptions $dateTimeTypeOptions)
|
---|
| 78 | {
|
---|
| 79 | $this->dateTimeTypeOptions = $dateTimeTypeOptions;
|
---|
| 80 | }
|
---|
| 81 | /**
|
---|
| 82 | * @return GoogleCloudContentwarehouseV1DateTimeTypeOptions
|
---|
| 83 | */
|
---|
| 84 | public function getDateTimeTypeOptions()
|
---|
| 85 | {
|
---|
| 86 | return $this->dateTimeTypeOptions;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @param string
|
---|
| 90 | */
|
---|
| 91 | public function setDisplayName($displayName)
|
---|
| 92 | {
|
---|
| 93 | $this->displayName = $displayName;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @return string
|
---|
| 97 | */
|
---|
| 98 | public function getDisplayName()
|
---|
| 99 | {
|
---|
| 100 | return $this->displayName;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @param GoogleCloudContentwarehouseV1EnumTypeOptions
|
---|
| 104 | */
|
---|
| 105 | public function setEnumTypeOptions(GoogleCloudContentwarehouseV1EnumTypeOptions $enumTypeOptions)
|
---|
| 106 | {
|
---|
| 107 | $this->enumTypeOptions = $enumTypeOptions;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return GoogleCloudContentwarehouseV1EnumTypeOptions
|
---|
| 111 | */
|
---|
| 112 | public function getEnumTypeOptions()
|
---|
| 113 | {
|
---|
| 114 | return $this->enumTypeOptions;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param GoogleCloudContentwarehouseV1FloatTypeOptions
|
---|
| 118 | */
|
---|
| 119 | public function setFloatTypeOptions(GoogleCloudContentwarehouseV1FloatTypeOptions $floatTypeOptions)
|
---|
| 120 | {
|
---|
| 121 | $this->floatTypeOptions = $floatTypeOptions;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return GoogleCloudContentwarehouseV1FloatTypeOptions
|
---|
| 125 | */
|
---|
| 126 | public function getFloatTypeOptions()
|
---|
| 127 | {
|
---|
| 128 | return $this->floatTypeOptions;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param GoogleCloudContentwarehouseV1IntegerTypeOptions
|
---|
| 132 | */
|
---|
| 133 | public function setIntegerTypeOptions(GoogleCloudContentwarehouseV1IntegerTypeOptions $integerTypeOptions)
|
---|
| 134 | {
|
---|
| 135 | $this->integerTypeOptions = $integerTypeOptions;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return GoogleCloudContentwarehouseV1IntegerTypeOptions
|
---|
| 139 | */
|
---|
| 140 | public function getIntegerTypeOptions()
|
---|
| 141 | {
|
---|
| 142 | return $this->integerTypeOptions;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param bool
|
---|
| 146 | */
|
---|
| 147 | public function setIsFilterable($isFilterable)
|
---|
| 148 | {
|
---|
| 149 | $this->isFilterable = $isFilterable;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return bool
|
---|
| 153 | */
|
---|
| 154 | public function getIsFilterable()
|
---|
| 155 | {
|
---|
| 156 | return $this->isFilterable;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param bool
|
---|
| 160 | */
|
---|
| 161 | public function setIsMetadata($isMetadata)
|
---|
| 162 | {
|
---|
| 163 | $this->isMetadata = $isMetadata;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return bool
|
---|
| 167 | */
|
---|
| 168 | public function getIsMetadata()
|
---|
| 169 | {
|
---|
| 170 | return $this->isMetadata;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param bool
|
---|
| 174 | */
|
---|
| 175 | public function setIsRepeatable($isRepeatable)
|
---|
| 176 | {
|
---|
| 177 | $this->isRepeatable = $isRepeatable;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return bool
|
---|
| 181 | */
|
---|
| 182 | public function getIsRepeatable()
|
---|
| 183 | {
|
---|
| 184 | return $this->isRepeatable;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param bool
|
---|
| 188 | */
|
---|
| 189 | public function setIsRequired($isRequired)
|
---|
| 190 | {
|
---|
| 191 | $this->isRequired = $isRequired;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return bool
|
---|
| 195 | */
|
---|
| 196 | public function getIsRequired()
|
---|
| 197 | {
|
---|
| 198 | return $this->isRequired;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param bool
|
---|
| 202 | */
|
---|
| 203 | public function setIsSearchable($isSearchable)
|
---|
| 204 | {
|
---|
| 205 | $this->isSearchable = $isSearchable;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return bool
|
---|
| 209 | */
|
---|
| 210 | public function getIsSearchable()
|
---|
| 211 | {
|
---|
| 212 | return $this->isSearchable;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param GoogleCloudContentwarehouseV1MapTypeOptions
|
---|
| 216 | */
|
---|
| 217 | public function setMapTypeOptions(GoogleCloudContentwarehouseV1MapTypeOptions $mapTypeOptions)
|
---|
| 218 | {
|
---|
| 219 | $this->mapTypeOptions = $mapTypeOptions;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return GoogleCloudContentwarehouseV1MapTypeOptions
|
---|
| 223 | */
|
---|
| 224 | public function getMapTypeOptions()
|
---|
| 225 | {
|
---|
| 226 | return $this->mapTypeOptions;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string
|
---|
| 230 | */
|
---|
| 231 | public function setName($name)
|
---|
| 232 | {
|
---|
| 233 | $this->name = $name;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string
|
---|
| 237 | */
|
---|
| 238 | public function getName()
|
---|
| 239 | {
|
---|
| 240 | return $this->name;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param GoogleCloudContentwarehouseV1PropertyTypeOptions
|
---|
| 244 | */
|
---|
| 245 | public function setPropertyTypeOptions(GoogleCloudContentwarehouseV1PropertyTypeOptions $propertyTypeOptions)
|
---|
| 246 | {
|
---|
| 247 | $this->propertyTypeOptions = $propertyTypeOptions;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return GoogleCloudContentwarehouseV1PropertyTypeOptions
|
---|
| 251 | */
|
---|
| 252 | public function getPropertyTypeOptions()
|
---|
| 253 | {
|
---|
| 254 | return $this->propertyTypeOptions;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param string
|
---|
| 258 | */
|
---|
| 259 | public function setRetrievalImportance($retrievalImportance)
|
---|
| 260 | {
|
---|
| 261 | $this->retrievalImportance = $retrievalImportance;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return string
|
---|
| 265 | */
|
---|
| 266 | public function getRetrievalImportance()
|
---|
| 267 | {
|
---|
| 268 | return $this->retrievalImportance;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource[]
|
---|
| 272 | */
|
---|
| 273 | public function setSchemaSources($schemaSources)
|
---|
| 274 | {
|
---|
| 275 | $this->schemaSources = $schemaSources;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource[]
|
---|
| 279 | */
|
---|
| 280 | public function getSchemaSources()
|
---|
| 281 | {
|
---|
| 282 | return $this->schemaSources;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param GoogleCloudContentwarehouseV1TextTypeOptions
|
---|
| 286 | */
|
---|
| 287 | public function setTextTypeOptions(GoogleCloudContentwarehouseV1TextTypeOptions $textTypeOptions)
|
---|
| 288 | {
|
---|
| 289 | $this->textTypeOptions = $textTypeOptions;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return GoogleCloudContentwarehouseV1TextTypeOptions
|
---|
| 293 | */
|
---|
| 294 | public function getTextTypeOptions()
|
---|
| 295 | {
|
---|
| 296 | return $this->textTypeOptions;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param GoogleCloudContentwarehouseV1TimestampTypeOptions
|
---|
| 300 | */
|
---|
| 301 | public function setTimestampTypeOptions(GoogleCloudContentwarehouseV1TimestampTypeOptions $timestampTypeOptions)
|
---|
| 302 | {
|
---|
| 303 | $this->timestampTypeOptions = $timestampTypeOptions;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return GoogleCloudContentwarehouseV1TimestampTypeOptions
|
---|
| 307 | */
|
---|
| 308 | public function getTimestampTypeOptions()
|
---|
| 309 | {
|
---|
| 310 | return $this->timestampTypeOptions;
|
---|
| 311 | }
|
---|
| 312 | }
|
---|
| 313 |
|
---|
| 314 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 315 | class_alias(GoogleCloudContentwarehouseV1PropertyDefinition::class, 'Google_Service_Contentwarehouse_GoogleCloudContentwarehouseV1PropertyDefinition');
|
---|