@@ -138,10 +138,10 @@ message ProductInput {
138138 // MUST be used if any part of the product identifier (like `offer_id`)
139139 // contains characters such as `/`, `%`, or `~`.
140140 // * Example: To represent the product ID `en~US~sku/123`, the
141- // `{productinput}` segment must be the base64url encoding of this
142- // string, which is `ZW5-VVMtc2t1LzEyMw `. The full resource name
141+ // `{productinput}` segment must be the unpadded base64url encoding of
142+ // this string, which is `ZW5-VVN-c2t1LzEyMw `. The full resource name
143143 // for the product would be
144- // `accounts/123/productinputs /ZW5-VVMtc2t1LzEyMw `.
144+ // `accounts/123/productInputs /ZW5-VVN-c2t1LzEyMw `.
145145 //
146146 // 2. **Plain Format**: The `{productinput}` segment is the tilde-separated
147147 // string
@@ -153,16 +153,36 @@ message ProductInput {
153153 // correct parsing, especially those containing special characters. The
154154 // presence of tilde (`~`) characters in the `{productinput}` segment is used
155155 // to differentiate between the two formats.
156- //
157- // Note: For calls to the v1beta version, the plain format is
158- // `channel~content_language~feed_label~offer_id`, for example:
159- // `accounts/123/productinputs/online~en~US~sku123`.
160156 string name = 1 [(google.api.field_behavior ) = IDENTIFIER ];
161157
158+ // Output only. The **unpadded base64url encoded name** of the product input.
159+ // Format:
160+ // `accounts/{account}/productInputs/{productinput}` where the last
161+ // section `productinput` is the unpadded base64url encoding of the
162+ // `content_language~feed_label~offer_id` name.
163+ // Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded
164+ // product input name `accounts/123/productInputs/en~US~sku/123`. This field
165+ // can be used directly as input to the API methods that require the product
166+ // input name to be encoded if it contains special characters, for example
167+ // [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.productInputs/get).
168+ string base64_encoded_name = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
169+
162170 // Output only. The name of the processed product.
163171 // Format: `accounts/{account}/products/{product}`
164172 string product = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
165173
174+ // Output only. The **unpadded base64url encoded name** of the processed
175+ // product. Format: `accounts/{account}/products/{product}` where the last
176+ // section `product` is the unpadded base64url encoding of the
177+ // `content_language~feed_label~offer_id` name.
178+ // Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded
179+ // product name `accounts/123/products/en~US~sku/123`. This field can be used
180+ // directly as input to the API methods that require the product name to be
181+ // encoded if it contains special characters, for example
182+ // [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products/get).
183+ string base64_encoded_product = 13
184+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
185+
166186 // Immutable. Determines whether the product is **only** targeting
167187 // local destinations and whether the product name should be distinguished
168188 // with a `local~` prefix. For example,
@@ -326,10 +346,10 @@ message DeleteProductInputRequest {
326346 // MUST be used if any part of the product identifier (like `offer_id`)
327347 // contains characters such as `/`, `%`, or `~`.
328348 // * Example: To represent the product ID `en~US~sku/123`, the
329- // `{productInput}` segment must be the base64url encoding of this
330- // string, which is `ZW5-VVMtc2t1LzEyMw `. The full resource name
349+ // `{productInput}` segment must be the unpadded base64url encoding of
350+ // this string, which is `ZW5-VVN-c2t1LzEyMw `. The full resource name
331351 // for the product would be
332- // `accounts/123/productInputs/ZW5-VVMtc2t1LzEyMw `.
352+ // `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw `.
333353 //
334354 // 2. **Plain Format**: The `{productInput}` segment is the tilde-separated
335355 // string
@@ -341,10 +361,6 @@ message DeleteProductInputRequest {
341361 // correct parsing, especially those containing special characters. The
342362 // presence of tilde (`~`) characters in the `{productInput}` segment is used
343363 // to differentiate between the two formats.
344- //
345- // Note: For calls to the v1beta version, the plain format is
346- // `channel~content_language~feed_label~offer_id`, for example:
347- // `accounts/123/productinputs/online~en~US~sku123`.
348364 string name = 1 [
349365 (google.api.field_behavior ) = REQUIRED ,
350366 (google.api.resource_reference ) = {
0 commit comments