Skip to content

Commit 1c3580d

Browse files
Regenerate retail client (#5413)
1 parent 84b6bd1 commit 1c3580d

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

src/CloudRetail/GoogleCloudRetailV2CompleteQueryResponse.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
class GoogleCloudRetailV2CompleteQueryResponse extends \Google\Collection
2121
{
2222
protected $collection_key = 'recentSearchResults';
23+
protected $attributeResultsType = GoogleCloudRetailV2CompleteQueryResponseAttributeResult::class;
24+
protected $attributeResultsDataType = 'map';
2325
/**
2426
* @var string
2527
*/
@@ -29,6 +31,20 @@ class GoogleCloudRetailV2CompleteQueryResponse extends \Google\Collection
2931
protected $recentSearchResultsType = GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult::class;
3032
protected $recentSearchResultsDataType = 'array';
3133

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+
}
3248
/**
3349
* @param string
3450
*/
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 GoogleCloudRetailV2CompleteQueryResponseAttributeResult extends \Google\Collection
21+
{
22+
protected $collection_key = 'suggestions';
23+
/**
24+
* @var string[]
25+
*/
26+
public $suggestions;
27+
28+
/**
29+
* @param string[]
30+
*/
31+
public function setSuggestions($suggestions)
32+
{
33+
$this->suggestions = $suggestions;
34+
}
35+
/**
36+
* @return string[]
37+
*/
38+
public function getSuggestions()
39+
{
40+
return $this->suggestions;
41+
}
42+
}
43+
44+
// Adding a class alias for backwards compatibility with the previous class name.
45+
class_alias(GoogleCloudRetailV2CompleteQueryResponseAttributeResult::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2CompleteQueryResponseAttributeResult');

0 commit comments

Comments
 (0)