@@ -24,10 +24,13 @@ import "google/protobuf/empty.proto";
2424import "google/shopping/type/types.proto" ;
2525import "google/type/interval.proto" ;
2626
27+ option csharp_namespace = "Google.Shopping.Merchant.Inventories.V1Beta" ;
2728option go_package = "cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb" ;
2829option java_multiple_files = true ;
2930option java_outer_classname = "RegionalInventoryProto" ;
3031option java_package = "com.google.shopping.merchant.inventories.v1beta" ;
32+ option php_namespace = "Google\\Shopping\\Merchant\\Inventories\\V1beta" ;
33+ option ruby_package = "Google::Shopping::Merchant::Inventories::V1beta" ;
3134
3235// Service to manage regional inventory for products. There is also separate
3336// `regions` resource and API to manage regions definitions.
@@ -110,27 +113,30 @@ message RegionalInventory {
110113 (google.api.field_behavior ) = IMMUTABLE
111114 ];
112115
113- // Price of the product in this region.
114- google.shopping.type.Price price = 4 ;
116+ // Optional. Price of the product in this region.
117+ google.shopping.type.Price price = 4 [ (google.api .field_behavior ) = OPTIONAL ] ;
115118
116- // Sale price of the product in this region. Mandatory if
119+ // Optional. Sale price of the product in this region. Mandatory if
117120 // [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date]
118121 // is defined.
119- google.shopping.type.Price sale_price = 5 ;
122+ google.shopping.type.Price sale_price = 5
123+ [(google.api.field_behavior ) = OPTIONAL ];
120124
121- // The `TimePeriod` of the
125+ // Optional. The `TimePeriod` of the
122126 // sale price in this region.
123- google.type.Interval sale_price_effective_date = 6 ;
127+ google.type.Interval sale_price_effective_date = 6
128+ [(google.api.field_behavior ) = OPTIONAL ];
124129
125130 // Availability of the product in this region.
126131 // For accepted attribute values, see the [regional product inventory data
127- // specification](https://support.google.com/merchants/answer/3061342)
132+ // specification](https://support.google.com/merchants/answer/14644124).
128133 optional string availability = 7 ;
129134
130135 // A list of custom (merchant-provided) attributes. You can also use
131136 // `CustomAttribute` to submit any attribute of the data specification in its
132137 // generic form.
133- repeated google.shopping.type.CustomAttribute custom_attributes = 8 ;
138+ repeated google.shopping.type.CustomAttribute custom_attributes = 8
139+ [deprecated = true ];
134140}
135141
136142// Request message for the `ListRegionalInventories` method.
@@ -159,6 +165,19 @@ message ListRegionalInventoriesRequest {
159165 // [nextPageToken][google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.next_page_token]
160166 // in the response to the previous request.
161167 string page_token = 3 ;
168+
169+ // Optional. If true, the `{product}` in the `parent` field of the request
170+ // will be interpreted as unpadded base64url-encoded and decoded during
171+ // request processing to match the decoded value. Default value is `false`.
172+ // Use this if your `{product}` contains special characters, such as forward
173+ // slash `/` or other characters that are unpadded base64url-encoded (as per
174+ // RFC 7515: https://datatracker.ietf.org/doc/html/rfc7515#section-2).
175+ //
176+ // Note that future versions of the API will only accept unpadded
177+ // base64url-encoded product ids, so we strongly recommend proactively setting
178+ // this to `true` and encoding the product ids.
179+ bool product_id_base64_url_encoded = 4
180+ [(google.api.field_behavior ) = OPTIONAL ];
162181}
163182
164183// Response message for the `ListRegionalInventories` method.
@@ -188,6 +207,19 @@ message InsertRegionalInventoryRequest {
188207 // full replacement of the `RegionalInventory` resource is performed.
189208 RegionalInventory regional_inventory = 2
190209 [(google.api.field_behavior ) = REQUIRED ];
210+
211+ // Optional. If true, the `{product}` in the `parent` field of the request
212+ // will be interpreted as unpadded base64url-encoded and decoded during
213+ // request processing to match the decoded value. Default value is `false`.
214+ // Use this if your `{product}` contains special characters, such as forward
215+ // slash `/` or other characters that are unpadded base64url-encoded (as per
216+ // RFC 7515: https://datatracker.ietf.org/doc/html/rfc7515#section-2).
217+ //
218+ // Note that future versions of the API will only accept unpadded
219+ // base64url-encoded product ids, so we strongly recommend proactively setting
220+ // this to `true` and encoding the product ids.
221+ bool product_id_base64_url_encoded = 3
222+ [(google.api.field_behavior ) = OPTIONAL ];
191223}
192224
193225// Request message for the `DeleteRegionalInventory` method.
@@ -201,4 +233,17 @@ message DeleteRegionalInventoryRequest {
201233 type : "merchantapi.googleapis.com/RegionalInventory"
202234 }
203235 ];
236+
237+ // Optional. If true, the `{product}` in the `name` field of the request will
238+ // be interpreted as unpadded base64url-encoded and decoded during request
239+ // processing to match the decoded value. Default value is `false`. Use this
240+ // if your `{product}` contains special characters, such as forward slash `/`
241+ // or other characters that are unpadded base64url-encoded (as per RFC 7515:
242+ // https://datatracker.ietf.org/doc/html/rfc7515#section-2).
243+ //
244+ // Note that future versions of the API will only accept unpadded
245+ // base64url-encoded product ids, so we strongly recommend proactively setting
246+ // this to `true` and encoding the product ids.
247+ bool product_id_base64_url_encoded = 2
248+ [(google.api.field_behavior ) = OPTIONAL ];
204249}
0 commit comments