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\CloudRetail;
19
20class GoogleCloudRetailV2SearchResponse extends \Google\Collection
21{
22  protected $collection_key = 'results';
23  /**
24   * @var string[]
25   */
26  public $appliedControls;
27  /**
28   * @var string
29   */
30  public $attributionToken;
31  /**
32   * @var string
33   */
34  public $correctedQuery;
35  protected $facetsType = GoogleCloudRetailV2SearchResponseFacet::class;
36  protected $facetsDataType = 'array';
37  protected $invalidConditionBoostSpecsType = GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::class;
38  protected $invalidConditionBoostSpecsDataType = 'array';
39  /**
40   * @var string
41   */
42  public $nextPageToken;
43  protected $queryExpansionInfoType = GoogleCloudRetailV2SearchResponseQueryExpansionInfo::class;
44  protected $queryExpansionInfoDataType = '';
45  /**
46   * @var string
47   */
48  public $redirectUri;
49  protected $resultsType = GoogleCloudRetailV2SearchResponseSearchResult::class;
50  protected $resultsDataType = 'array';
51  /**
52   * @var int
53   */
54  public $totalSize;
55
56  /**
57   * @param string[]
58   */
59  public function setAppliedControls($appliedControls)
60  {
61    $this->appliedControls = $appliedControls;
62  }
63  /**
64   * @return string[]
65   */
66  public function getAppliedControls()
67  {
68    return $this->appliedControls;
69  }
70  /**
71   * @param string
72   */
73  public function setAttributionToken($attributionToken)
74  {
75    $this->attributionToken = $attributionToken;
76  }
77  /**
78   * @return string
79   */
80  public function getAttributionToken()
81  {
82    return $this->attributionToken;
83  }
84  /**
85   * @param string
86   */
87  public function setCorrectedQuery($correctedQuery)
88  {
89    $this->correctedQuery = $correctedQuery;
90  }
91  /**
92   * @return string
93   */
94  public function getCorrectedQuery()
95  {
96    return $this->correctedQuery;
97  }
98  /**
99   * @param GoogleCloudRetailV2SearchResponseFacet[]
100   */
101  public function setFacets($facets)
102  {
103    $this->facets = $facets;
104  }
105  /**
106   * @return GoogleCloudRetailV2SearchResponseFacet[]
107   */
108  public function getFacets()
109  {
110    return $this->facets;
111  }
112  /**
113   * @param GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec[]
114   */
115  public function setInvalidConditionBoostSpecs($invalidConditionBoostSpecs)
116  {
117    $this->invalidConditionBoostSpecs = $invalidConditionBoostSpecs;
118  }
119  /**
120   * @return GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec[]
121   */
122  public function getInvalidConditionBoostSpecs()
123  {
124    return $this->invalidConditionBoostSpecs;
125  }
126  /**
127   * @param string
128   */
129  public function setNextPageToken($nextPageToken)
130  {
131    $this->nextPageToken = $nextPageToken;
132  }
133  /**
134   * @return string
135   */
136  public function getNextPageToken()
137  {
138    return $this->nextPageToken;
139  }
140  /**
141   * @param GoogleCloudRetailV2SearchResponseQueryExpansionInfo
142   */
143  public function setQueryExpansionInfo(GoogleCloudRetailV2SearchResponseQueryExpansionInfo $queryExpansionInfo)
144  {
145    $this->queryExpansionInfo = $queryExpansionInfo;
146  }
147  /**
148   * @return GoogleCloudRetailV2SearchResponseQueryExpansionInfo
149   */
150  public function getQueryExpansionInfo()
151  {
152    return $this->queryExpansionInfo;
153  }
154  /**
155   * @param string
156   */
157  public function setRedirectUri($redirectUri)
158  {
159    $this->redirectUri = $redirectUri;
160  }
161  /**
162   * @return string
163   */
164  public function getRedirectUri()
165  {
166    return $this->redirectUri;
167  }
168  /**
169   * @param GoogleCloudRetailV2SearchResponseSearchResult[]
170   */
171  public function setResults($results)
172  {
173    $this->results = $results;
174  }
175  /**
176   * @return GoogleCloudRetailV2SearchResponseSearchResult[]
177   */
178  public function getResults()
179  {
180    return $this->results;
181  }
182  /**
183   * @param int
184   */
185  public function setTotalSize($totalSize)
186  {
187    $this->totalSize = $totalSize;
188  }
189  /**
190   * @return int
191   */
192  public function getTotalSize()
193  {
194    return $this->totalSize;
195  }
196}
197
198// Adding a class alias for backwards compatibility with the previous class name.
199class_alias(GoogleCloudRetailV2SearchResponse::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2SearchResponse');
200