-
Notifications
You must be signed in to change notification settings - Fork 458
Expand file tree
/
Copy pathRenderProductIssuesRequest.php
More file actions
281 lines (257 loc) · 11.4 KB
/
Copy pathRenderProductIssuesRequest.php
File metadata and controls
281 lines (257 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/shopping/merchant/issueresolution/v1/issueresolution.proto
namespace Google\Shopping\Merchant\IssueResolution\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request to provide an issue resolution content and actions for product issues
* of business's product.
*
* Generated from protobuf message <code>google.shopping.merchant.issueresolution.v1.RenderProductIssuesRequest</code>
*/
class RenderProductIssuesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The name of the product to fetch issues for.
* Format: `accounts/{account}/products/{product}`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
*/
protected $name = '';
/**
* Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
* code used to localize an issue resolution content. If not set, the result
* will be in default language `en-US`.
*
* Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $language_code = '';
/**
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
* localize times in an issue resolution content. For example
* 'America/Los_Angeles'. If not set, results will use as a default UTC.
*
* Generated from protobuf field <code>string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $time_zone = '';
/**
* Optional. The payload for configuring how the content should be rendered.
*
* Generated from protobuf field <code>.google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload payload = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $payload = null;
/**
* Optional. If true, the `{product}` in the `name` field of the request will
* be interpreted as unpadded base64url-encoded and decoded during request
* processing to match the decoded value. Default value is `false`. Use this
* if your `{product}` contains special characters, such as forward slash `/`
* or other characters that are unpadded base64url-encoded (as per RFC 7515:
* https://datatracker.ietf.org/doc/html/rfc7515#section-2).
* Note that future versions of the API will only accept unpadded
* base64url-encoded product ids, so we strongly recommend proactively setting
* this to `true` and encoding the product ids.
*
* Generated from protobuf field <code>bool product_id_base64_url_encoded = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $product_id_base64_url_encoded = false;
/**
* @param string $name Required. The name of the product to fetch issues for.
* Format: `accounts/{account}/products/{product}`
* Please see {@see IssueResolutionServiceClient::productName()} for help formatting this field.
*
* @return \Google\Shopping\Merchant\IssueResolution\V1\RenderProductIssuesRequest
*
* @experimental
*/
public static function build(string $name): self
{
return (new self())
->setName($name);
}
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Required. The name of the product to fetch issues for.
* Format: `accounts/{account}/products/{product}`
* @type string $language_code
* Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
* code used to localize an issue resolution content. If not set, the result
* will be in default language `en-US`.
* @type string $time_zone
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
* localize times in an issue resolution content. For example
* 'America/Los_Angeles'. If not set, results will use as a default UTC.
* @type \Google\Shopping\Merchant\IssueResolution\V1\RenderIssuesRequestPayload $payload
* Optional. The payload for configuring how the content should be rendered.
* @type bool $product_id_base64_url_encoded
* Optional. If true, the `{product}` in the `name` field of the request will
* be interpreted as unpadded base64url-encoded and decoded during request
* processing to match the decoded value. Default value is `false`. Use this
* if your `{product}` contains special characters, such as forward slash `/`
* or other characters that are unpadded base64url-encoded (as per RFC 7515:
* https://datatracker.ietf.org/doc/html/rfc7515#section-2).
* Note that future versions of the API will only accept unpadded
* base64url-encoded product ids, so we strongly recommend proactively setting
* this to `true` and encoding the product ids.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Shopping\Merchant\Issueresolution\V1\Issueresolution::initOnce();
parent::__construct($data);
}
/**
* Required. The name of the product to fetch issues for.
* Format: `accounts/{account}/products/{product}`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The name of the product to fetch issues for.
* Format: `accounts/{account}/products/{product}`
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
* code used to localize an issue resolution content. If not set, the result
* will be in default language `en-US`.
*
* Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getLanguageCode()
{
return $this->language_code;
}
/**
* Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language
* code used to localize an issue resolution content. If not set, the result
* will be in default language `en-US`.
*
* Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setLanguageCode($var)
{
GPBUtil::checkString($var, True);
$this->language_code = $var;
return $this;
}
/**
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
* localize times in an issue resolution content. For example
* 'America/Los_Angeles'. If not set, results will use as a default UTC.
*
* Generated from protobuf field <code>string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getTimeZone()
{
return $this->time_zone;
}
/**
* Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
* localize times in an issue resolution content. For example
* 'America/Los_Angeles'. If not set, results will use as a default UTC.
*
* Generated from protobuf field <code>string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setTimeZone($var)
{
GPBUtil::checkString($var, True);
$this->time_zone = $var;
return $this;
}
/**
* Optional. The payload for configuring how the content should be rendered.
*
* Generated from protobuf field <code>.google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload payload = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Shopping\Merchant\IssueResolution\V1\RenderIssuesRequestPayload|null
*/
public function getPayload()
{
return $this->payload;
}
public function hasPayload()
{
return isset($this->payload);
}
public function clearPayload()
{
unset($this->payload);
}
/**
* Optional. The payload for configuring how the content should be rendered.
*
* Generated from protobuf field <code>.google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload payload = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Shopping\Merchant\IssueResolution\V1\RenderIssuesRequestPayload $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkMessage($var, \Google\Shopping\Merchant\IssueResolution\V1\RenderIssuesRequestPayload::class);
$this->payload = $var;
return $this;
}
/**
* Optional. If true, the `{product}` in the `name` field of the request will
* be interpreted as unpadded base64url-encoded and decoded during request
* processing to match the decoded value. Default value is `false`. Use this
* if your `{product}` contains special characters, such as forward slash `/`
* or other characters that are unpadded base64url-encoded (as per RFC 7515:
* https://datatracker.ietf.org/doc/html/rfc7515#section-2).
* Note that future versions of the API will only accept unpadded
* base64url-encoded product ids, so we strongly recommend proactively setting
* this to `true` and encoding the product ids.
*
* Generated from protobuf field <code>bool product_id_base64_url_encoded = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return bool
*/
public function getProductIdBase64UrlEncoded()
{
return $this->product_id_base64_url_encoded;
}
/**
* Optional. If true, the `{product}` in the `name` field of the request will
* be interpreted as unpadded base64url-encoded and decoded during request
* processing to match the decoded value. Default value is `false`. Use this
* if your `{product}` contains special characters, such as forward slash `/`
* or other characters that are unpadded base64url-encoded (as per RFC 7515:
* https://datatracker.ietf.org/doc/html/rfc7515#section-2).
* Note that future versions of the API will only accept unpadded
* base64url-encoded product ids, so we strongly recommend proactively setting
* this to `true` and encoding the product ids.
*
* Generated from protobuf field <code>bool product_id_base64_url_encoded = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param bool $var
* @return $this
*/
public function setProductIdBase64UrlEncoded($var)
{
GPBUtil::checkBool($var);
$this->product_id_base64_url_encoded = $var;
return $this;
}
}