Skip to content

Commit cab31e3

Browse files
1 parent e853d26 commit cab31e3

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/CloudSearch.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
549549
'location' => 'query',
550550
'type' => 'string',
551551
],
552+
'requestOptions.clientDisplayLanguageCode' => [
553+
'location' => 'query',
554+
'type' => 'string',
555+
],
552556
'requestOptions.debugOptions.enableDebugging' => [
553557
'location' => 'query',
554558
'type' => 'boolean',

src/CloudSearch/RequestOptions.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020
class RequestOptions extends \Google\Model
2121
{
22+
/**
23+
* The BCP-47 language code, such as "pt" or "en". It represents the user's
24+
* preferred Display Language.
25+
*
26+
* @var string
27+
*/
28+
public $clientDisplayLanguageCode;
2229
protected $debugOptionsType = DebugOptions::class;
2330
protected $debugOptionsDataType = '';
2431
/**
@@ -54,6 +61,23 @@ class RequestOptions extends \Google\Model
5461
*/
5562
public $timeZone;
5663

64+
/**
65+
* The BCP-47 language code, such as "pt" or "en". It represents the user's
66+
* preferred Display Language.
67+
*
68+
* @param string $clientDisplayLanguageCode
69+
*/
70+
public function setClientDisplayLanguageCode($clientDisplayLanguageCode)
71+
{
72+
$this->clientDisplayLanguageCode = $clientDisplayLanguageCode;
73+
}
74+
/**
75+
* @return string
76+
*/
77+
public function getClientDisplayLanguageCode()
78+
{
79+
return $this->clientDisplayLanguageCode;
80+
}
5781
/**
5882
* Debug options of the request
5983
*

src/CloudSearch/Resource/QuerySources.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class QuerySources extends \Google\Service\Resource
4040
* @param array $optParams Optional parameters.
4141
*
4242
* @opt_param string pageToken Number of sources to return in the response.
43+
* @opt_param string requestOptions.clientDisplayLanguageCode The BCP-47
44+
* language code, such as "pt" or "en". It represents the user's preferred
45+
* Display Language.
4346
* @opt_param bool requestOptions.debugOptions.enableDebugging If you are asked
4447
* by Google to help with debugging, set this field. Otherwise, ignore this
4548
* field.

0 commit comments

Comments
 (0)