Skip to content

Commit bff62c7

Browse files
Google APIscopybara-github
authored andcommitted
chore: removing parameter before client library generation
PiperOrigin-RevId: 831881127
1 parent cde1a53 commit bff62c7

File tree

3 files changed

+16
-122
lines changed

3 files changed

+16
-122
lines changed

google/shopping/merchant/inventories/v1beta/localinventory.proto

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ import "google/protobuf/empty.proto";
2424
import "google/shopping/type/types.proto";
2525
import "google/type/interval.proto";
2626

27-
option csharp_namespace = "Google.Shopping.Merchant.Inventories.V1Beta";
2827
option go_package = "cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb";
2928
option java_multiple_files = true;
3029
option java_outer_classname = "LocalInventoryProto";
3130
option 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";
3431
option (google.api.resource_definition) = {
3532
type: "merchantapi.googleapis.com/Product"
3633
pattern: "accounts/{account}/products/{product}"
@@ -116,19 +113,17 @@ message LocalInventory {
116113
(google.api.field_behavior) = IMMUTABLE
117114
];
118115

119-
// Optional. Price of the product at this store.
120-
google.shopping.type.Price price = 4 [(google.api.field_behavior) = OPTIONAL];
116+
// Price of the product at this store.
117+
google.shopping.type.Price price = 4;
121118

122-
// Optional. Sale price of the product at this store. Mandatory if
119+
// Sale price of the product at this store. Mandatory if
123120
// [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.LocalInventory.sale_price_effective_date]
124121
// is defined.
125-
google.shopping.type.Price sale_price = 5
126-
[(google.api.field_behavior) = OPTIONAL];
122+
google.shopping.type.Price sale_price = 5;
127123

128-
// Optional. The `TimePeriod` of the
124+
// The `TimePeriod` of the
129125
// sale at this store.
130-
google.type.Interval sale_price_effective_date = 6
131-
[(google.api.field_behavior) = OPTIONAL];
126+
google.type.Interval sale_price_effective_date = 6;
132127

133128
// Availability of the product at this store.
134129
// For accepted attribute values, see the [local product inventory data
@@ -159,8 +154,7 @@ message LocalInventory {
159154
// A list of custom (merchant-provided) attributes. You can also use
160155
// `CustomAttribute` to submit any attribute of the data specification in its
161156
// generic form.
162-
repeated google.shopping.type.CustomAttribute custom_attributes = 12
163-
[deprecated = true];
157+
repeated google.shopping.type.CustomAttribute custom_attributes = 12;
164158
}
165159

166160
// Request message for the `ListLocalInventories` method.
@@ -190,19 +184,6 @@ message ListLocalInventoriesRequest {
190184
// [nextPageToken][google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse.next_page_token]
191185
// in the response to the previous request.
192186
string page_token = 3;
193-
194-
// Optional. If true, the `{product}` in the `parent` field of the request
195-
// will be interpreted as unpadded base64url-encoded and decoded during
196-
// request processing to match the decoded value. Default value is `false`.
197-
// Use this if your `{product}` contains special characters, such as forward
198-
// slash `/` or other characters that are unpadded base64url-encoded (as per
199-
// RFC 7515: https://datatracker.ietf.org/doc/html/rfc7515#section-2).
200-
//
201-
// Note that future versions of the API will only accept unpadded
202-
// base64url-encoded product ids, so we strongly recommend proactively setting
203-
// this to `true` and encoding the product ids.
204-
bool product_id_base64_url_encoded = 4
205-
[(google.api.field_behavior) = OPTIONAL];
206187
}
207188

208189
// Response message for the `ListLocalInventories` method.
@@ -231,19 +212,6 @@ message InsertLocalInventoryRequest {
231212
// already has a `LocalInventory` resource for the same `storeCode`, full
232213
// replacement of the `LocalInventory` resource is performed.
233214
LocalInventory local_inventory = 2 [(google.api.field_behavior) = REQUIRED];
234-
235-
// Optional. If true, the `{product}` in the `parent` field of the request
236-
// will be interpreted as unpadded base64url-encoded and decoded during
237-
// request processing to match the decoded value. Default value is `false`.
238-
// Use this if your `{product}` contains special characters, such as forward
239-
// slash `/` or other characters that are unpadded base64url-encoded (as per
240-
// RFC 7515: https://datatracker.ietf.org/doc/html/rfc7515#section-2).
241-
//
242-
// Note that future versions of the API will only accept unpadded
243-
// base64url-encoded product ids, so we strongly recommend proactively setting
244-
// this to `true` and encoding the product ids.
245-
bool product_id_base64_url_encoded = 3
246-
[(google.api.field_behavior) = OPTIONAL];
247215
}
248216

249217
// Request message for the `DeleteLocalInventory` method.
@@ -257,17 +225,4 @@ message DeleteLocalInventoryRequest {
257225
type: "merchantapi.googleapis.com/LocalInventory"
258226
}
259227
];
260-
261-
// Optional. If true, the `{product}` in the `name` field of the request will
262-
// be interpreted as unpadded base64url-encoded and decoded during request
263-
// processing to match the decoded value. Default value is `false`. Use this
264-
// if your `{product}` contains special characters, such as forward slash `/`
265-
// or other characters that are unpadded base64url-encoded (as per RFC 7515:
266-
// https://datatracker.ietf.org/doc/html/rfc7515#section-2).
267-
//
268-
// Note that future versions of the API will only accept unpadded
269-
// base64url-encoded product ids, so we strongly recommend proactively setting
270-
// this to `true` and encoding the product ids.
271-
bool product_id_base64_url_encoded = 2
272-
[(google.api.field_behavior) = OPTIONAL];
273228
}

google/shopping/merchant/inventories/v1beta/merchantapi_v1beta.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,7 @@ apis:
88
- name: google.shopping.merchant.inventories.v1beta.RegionalInventoryService
99

1010
documentation:
11-
summary: Programmatically manage your Merchant Center Accounts.
12-
overview: |-
13-
Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables you
14-
to programmatically manage your accounts. Conversions Sub-API: Enables you
15-
to programmatically manage your conversion sources for a merchant account.
16-
Datasources Sub-API: Enables you to programmatically manage your
17-
datasources. Inventories Sub-API: This bundle enables you to
18-
programmatically manage your local and regional inventories. Local Feeds
19-
Partnerships Sub-API: This bundle enables LFP partners to submit local
20-
inventories for a merchant. Notifications Sub-API: This bundle enables you
21-
to programmatically manage your notification subscriptions. Products
22-
Sub-API: This bundle enables you to programmatically manage your products.
23-
Promotions Sub-API: This bundle enables you to programmatically manage
24-
your promotions for products. Quota Sub-API: This bundle enables you to
25-
list your quotas for all APIs you are using. Reports Sub-API: This bundle
26-
enables you to programmatically retrieve reports and insights about
27-
products, their performance and their competitive environment.
11+
summary: Programmatically manage your Merchant Center accounts.
2812

2913
authentication:
3014
rules:

google/shopping/merchant/inventories/v1beta/regionalinventory.proto

Lines changed: 8 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ import "google/protobuf/empty.proto";
2424
import "google/shopping/type/types.proto";
2525
import "google/type/interval.proto";
2626

27-
option csharp_namespace = "Google.Shopping.Merchant.Inventories.V1Beta";
2827
option go_package = "cloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb";
2928
option java_multiple_files = true;
3029
option java_outer_classname = "RegionalInventoryProto";
3130
option 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";
3431

3532
// Service to manage regional inventory for products. There is also separate
3633
// `regions` resource and API to manage regions definitions.
@@ -113,30 +110,27 @@ message RegionalInventory {
113110
(google.api.field_behavior) = IMMUTABLE
114111
];
115112

116-
// Optional. Price of the product in this region.
117-
google.shopping.type.Price price = 4 [(google.api.field_behavior) = OPTIONAL];
113+
// Price of the product in this region.
114+
google.shopping.type.Price price = 4;
118115

119-
// Optional. Sale price of the product in this region. Mandatory if
116+
// Sale price of the product in this region. Mandatory if
120117
// [`salePriceEffectiveDate`][google.shopping.merchant.inventories.v1beta.RegionalInventory.sale_price_effective_date]
121118
// is defined.
122-
google.shopping.type.Price sale_price = 5
123-
[(google.api.field_behavior) = OPTIONAL];
119+
google.shopping.type.Price sale_price = 5;
124120

125-
// Optional. The `TimePeriod` of the
121+
// The `TimePeriod` of the
126122
// sale price in this region.
127-
google.type.Interval sale_price_effective_date = 6
128-
[(google.api.field_behavior) = OPTIONAL];
123+
google.type.Interval sale_price_effective_date = 6;
129124

130125
// Availability of the product in this region.
131126
// For accepted attribute values, see the [regional product inventory data
132-
// specification](https://support.google.com/merchants/answer/14644124).
127+
// specification](https://support.google.com/merchants/answer/3061342)
133128
optional string availability = 7;
134129

135130
// A list of custom (merchant-provided) attributes. You can also use
136131
// `CustomAttribute` to submit any attribute of the data specification in its
137132
// generic form.
138-
repeated google.shopping.type.CustomAttribute custom_attributes = 8
139-
[deprecated = true];
133+
repeated google.shopping.type.CustomAttribute custom_attributes = 8;
140134
}
141135

142136
// Request message for the `ListRegionalInventories` method.
@@ -165,19 +159,6 @@ message ListRegionalInventoriesRequest {
165159
// [nextPageToken][google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse.next_page_token]
166160
// in the response to the previous request.
167161
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];
181162
}
182163

183164
// Response message for the `ListRegionalInventories` method.
@@ -207,19 +188,6 @@ message InsertRegionalInventoryRequest {
207188
// full replacement of the `RegionalInventory` resource is performed.
208189
RegionalInventory regional_inventory = 2
209190
[(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];
223191
}
224192

225193
// Request message for the `DeleteRegionalInventory` method.
@@ -233,17 +201,4 @@ message DeleteRegionalInventoryRequest {
233201
type: "merchantapi.googleapis.com/RegionalInventory"
234202
}
235203
];
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];
249204
}

0 commit comments

Comments
 (0)