[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\CloudRetail;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudRetailV2CustomAttribute extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'text';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $indexable;
|
---|
| 27 | public $numbers;
|
---|
| 28 | /**
|
---|
| 29 | * @var bool
|
---|
| 30 | */
|
---|
| 31 | public $searchable;
|
---|
| 32 | /**
|
---|
| 33 | * @var string[]
|
---|
| 34 | */
|
---|
| 35 | public $text;
|
---|
| 36 |
|
---|
| 37 | /**
|
---|
| 38 | * @param bool
|
---|
| 39 | */
|
---|
| 40 | public function setIndexable($indexable)
|
---|
| 41 | {
|
---|
| 42 | $this->indexable = $indexable;
|
---|
| 43 | }
|
---|
| 44 | /**
|
---|
| 45 | * @return bool
|
---|
| 46 | */
|
---|
| 47 | public function getIndexable()
|
---|
| 48 | {
|
---|
| 49 | return $this->indexable;
|
---|
| 50 | }
|
---|
| 51 | public function setNumbers($numbers)
|
---|
| 52 | {
|
---|
| 53 | $this->numbers = $numbers;
|
---|
| 54 | }
|
---|
| 55 | public function getNumbers()
|
---|
| 56 | {
|
---|
| 57 | return $this->numbers;
|
---|
| 58 | }
|
---|
| 59 | /**
|
---|
| 60 | * @param bool
|
---|
| 61 | */
|
---|
| 62 | public function setSearchable($searchable)
|
---|
| 63 | {
|
---|
| 64 | $this->searchable = $searchable;
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * @return bool
|
---|
| 68 | */
|
---|
| 69 | public function getSearchable()
|
---|
| 70 | {
|
---|
| 71 | return $this->searchable;
|
---|
| 72 | }
|
---|
| 73 | /**
|
---|
| 74 | * @param string[]
|
---|
| 75 | */
|
---|
| 76 | public function setText($text)
|
---|
| 77 | {
|
---|
| 78 | $this->text = $text;
|
---|
| 79 | }
|
---|
| 80 | /**
|
---|
| 81 | * @return string[]
|
---|
| 82 | */
|
---|
| 83 | public function getText()
|
---|
| 84 | {
|
---|
| 85 | return $this->text;
|
---|
| 86 | }
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 90 | class_alias(GoogleCloudRetailV2CustomAttribute::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2CustomAttribute');
|
---|