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 GoogleCloudRetailV2CompleteQueryResponse extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'recentSearchResults';
|
---|
23 | protected $attributeResultsType = GoogleCloudRetailV2CompleteQueryResponseAttributeResult::class;
|
---|
24 | protected $attributeResultsDataType = 'map';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $attributionToken;
|
---|
29 | protected $completionResultsType = GoogleCloudRetailV2CompleteQueryResponseCompletionResult::class;
|
---|
30 | protected $completionResultsDataType = 'array';
|
---|
31 | protected $recentSearchResultsType = GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult::class;
|
---|
32 | protected $recentSearchResultsDataType = 'array';
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * @param GoogleCloudRetailV2CompleteQueryResponseAttributeResult[]
|
---|
36 | */
|
---|
37 | public function setAttributeResults($attributeResults)
|
---|
38 | {
|
---|
39 | $this->attributeResults = $attributeResults;
|
---|
40 | }
|
---|
41 | /**
|
---|
42 | * @return GoogleCloudRetailV2CompleteQueryResponseAttributeResult[]
|
---|
43 | */
|
---|
44 | public function getAttributeResults()
|
---|
45 | {
|
---|
46 | return $this->attributeResults;
|
---|
47 | }
|
---|
48 | /**
|
---|
49 | * @param string
|
---|
50 | */
|
---|
51 | public function setAttributionToken($attributionToken)
|
---|
52 | {
|
---|
53 | $this->attributionToken = $attributionToken;
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * @return string
|
---|
57 | */
|
---|
58 | public function getAttributionToken()
|
---|
59 | {
|
---|
60 | return $this->attributionToken;
|
---|
61 | }
|
---|
62 | /**
|
---|
63 | * @param GoogleCloudRetailV2CompleteQueryResponseCompletionResult[]
|
---|
64 | */
|
---|
65 | public function setCompletionResults($completionResults)
|
---|
66 | {
|
---|
67 | $this->completionResults = $completionResults;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @return GoogleCloudRetailV2CompleteQueryResponseCompletionResult[]
|
---|
71 | */
|
---|
72 | public function getCompletionResults()
|
---|
73 | {
|
---|
74 | return $this->completionResults;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @param GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult[]
|
---|
78 | */
|
---|
79 | public function setRecentSearchResults($recentSearchResults)
|
---|
80 | {
|
---|
81 | $this->recentSearchResults = $recentSearchResults;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult[]
|
---|
85 | */
|
---|
86 | public function getRecentSearchResults()
|
---|
87 | {
|
---|
88 | return $this->recentSearchResults;
|
---|
89 | }
|
---|
90 | }
|
---|
91 |
|
---|
92 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
93 | class_alias(GoogleCloudRetailV2CompleteQueryResponse::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2CompleteQueryResponse');
|
---|