source: vendor/google/apiclient-services/src/DiscoveryEngine/GoogleCloudDiscoveryengineV1SearchResponse.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.3 KB
Line 
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\DiscoveryEngine;
19
20class GoogleCloudDiscoveryengineV1SearchResponse extends \Google\Collection
21{
22 protected $collection_key = 'searchLinkPromotions';
23 /**
24 * @var string
25 */
26 public $attributionToken;
27 /**
28 * @var string
29 */
30 public $correctedQuery;
31 protected $facetsType = GoogleCloudDiscoveryengineV1SearchResponseFacet::class;
32 protected $facetsDataType = 'array';
33 /**
34 * @var string
35 */
36 public $nextPageToken;
37 protected $queryExpansionInfoType = GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo::class;
38 protected $queryExpansionInfoDataType = '';
39 /**
40 * @var string
41 */
42 public $redirectUri;
43 protected $resultsType = GoogleCloudDiscoveryengineV1SearchResponseSearchResult::class;
44 protected $resultsDataType = 'array';
45 protected $searchLinkPromotionsType = GoogleCloudDiscoveryengineV1SearchLinkPromotion::class;
46 protected $searchLinkPromotionsDataType = 'array';
47 protected $sessionInfoType = GoogleCloudDiscoveryengineV1SearchResponseSessionInfo::class;
48 protected $sessionInfoDataType = '';
49 protected $summaryType = GoogleCloudDiscoveryengineV1SearchResponseSummary::class;
50 protected $summaryDataType = '';
51 /**
52 * @var int
53 */
54 public $totalSize;
55
56 /**
57 * @param string
58 */
59 public function setAttributionToken($attributionToken)
60 {
61 $this->attributionToken = $attributionToken;
62 }
63 /**
64 * @return string
65 */
66 public function getAttributionToken()
67 {
68 return $this->attributionToken;
69 }
70 /**
71 * @param string
72 */
73 public function setCorrectedQuery($correctedQuery)
74 {
75 $this->correctedQuery = $correctedQuery;
76 }
77 /**
78 * @return string
79 */
80 public function getCorrectedQuery()
81 {
82 return $this->correctedQuery;
83 }
84 /**
85 * @param GoogleCloudDiscoveryengineV1SearchResponseFacet[]
86 */
87 public function setFacets($facets)
88 {
89 $this->facets = $facets;
90 }
91 /**
92 * @return GoogleCloudDiscoveryengineV1SearchResponseFacet[]
93 */
94 public function getFacets()
95 {
96 return $this->facets;
97 }
98 /**
99 * @param string
100 */
101 public function setNextPageToken($nextPageToken)
102 {
103 $this->nextPageToken = $nextPageToken;
104 }
105 /**
106 * @return string
107 */
108 public function getNextPageToken()
109 {
110 return $this->nextPageToken;
111 }
112 /**
113 * @param GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
114 */
115 public function setQueryExpansionInfo(GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo $queryExpansionInfo)
116 {
117 $this->queryExpansionInfo = $queryExpansionInfo;
118 }
119 /**
120 * @return GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
121 */
122 public function getQueryExpansionInfo()
123 {
124 return $this->queryExpansionInfo;
125 }
126 /**
127 * @param string
128 */
129 public function setRedirectUri($redirectUri)
130 {
131 $this->redirectUri = $redirectUri;
132 }
133 /**
134 * @return string
135 */
136 public function getRedirectUri()
137 {
138 return $this->redirectUri;
139 }
140 /**
141 * @param GoogleCloudDiscoveryengineV1SearchResponseSearchResult[]
142 */
143 public function setResults($results)
144 {
145 $this->results = $results;
146 }
147 /**
148 * @return GoogleCloudDiscoveryengineV1SearchResponseSearchResult[]
149 */
150 public function getResults()
151 {
152 return $this->results;
153 }
154 /**
155 * @param GoogleCloudDiscoveryengineV1SearchLinkPromotion[]
156 */
157 public function setSearchLinkPromotions($searchLinkPromotions)
158 {
159 $this->searchLinkPromotions = $searchLinkPromotions;
160 }
161 /**
162 * @return GoogleCloudDiscoveryengineV1SearchLinkPromotion[]
163 */
164 public function getSearchLinkPromotions()
165 {
166 return $this->searchLinkPromotions;
167 }
168 /**
169 * @param GoogleCloudDiscoveryengineV1SearchResponseSessionInfo
170 */
171 public function setSessionInfo(GoogleCloudDiscoveryengineV1SearchResponseSessionInfo $sessionInfo)
172 {
173 $this->sessionInfo = $sessionInfo;
174 }
175 /**
176 * @return GoogleCloudDiscoveryengineV1SearchResponseSessionInfo
177 */
178 public function getSessionInfo()
179 {
180 return $this->sessionInfo;
181 }
182 /**
183 * @param GoogleCloudDiscoveryengineV1SearchResponseSummary
184 */
185 public function setSummary(GoogleCloudDiscoveryengineV1SearchResponseSummary $summary)
186 {
187 $this->summary = $summary;
188 }
189 /**
190 * @return GoogleCloudDiscoveryengineV1SearchResponseSummary
191 */
192 public function getSummary()
193 {
194 return $this->summary;
195 }
196 /**
197 * @param int
198 */
199 public function setTotalSize($totalSize)
200 {
201 $this->totalSize = $totalSize;
202 }
203 /**
204 * @return int
205 */
206 public function getTotalSize()
207 {
208 return $this->totalSize;
209 }
210}
211
212// Adding a class alias for backwards compatibility with the previous class name.
213class_alias(GoogleCloudDiscoveryengineV1SearchResponse::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1SearchResponse');
Note: See TracBrowser for help on using the repository browser.