@google-shopping/lfp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +202 -0
  3. package/README.md +200 -0
  4. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpinventory.proto +149 -0
  5. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpsale.proto +122 -0
  6. package/build/protos/google/shopping/merchant/lfp/v1beta/lfpstore.proto +249 -0
  7. package/build/protos/google/shopping/type/types.proto +169 -0
  8. package/build/protos/protos.d.ts +8673 -0
  9. package/build/protos/protos.js +23511 -0
  10. package/build/protos/protos.json +2617 -0
  11. package/build/src/index.d.ts +17 -0
  12. package/build/src/index.js +37 -0
  13. package/build/src/index.js.map +1 -0
  14. package/build/src/v1beta/index.d.ts +3 -0
  15. package/build/src/v1beta/index.js +27 -0
  16. package/build/src/v1beta/index.js.map +1 -0
  17. package/build/src/v1beta/lfp_inventory_service_client.d.ts +267 -0
  18. package/build/src/v1beta/lfp_inventory_service_client.js +472 -0
  19. package/build/src/v1beta/lfp_inventory_service_client.js.map +1 -0
  20. package/build/src/v1beta/lfp_inventory_service_client_config.json +43 -0
  21. package/build/src/v1beta/lfp_sale_service_client.d.ts +250 -0
  22. package/build/src/v1beta/lfp_sale_service_client.js +450 -0
  23. package/build/src/v1beta/lfp_sale_service_client.js.map +1 -0
  24. package/build/src/v1beta/lfp_sale_service_client_config.json +43 -0
  25. package/build/src/v1beta/lfp_store_service_client.d.ts +430 -0
  26. package/build/src/v1beta/lfp_store_service_client.js +645 -0
  27. package/build/src/v1beta/lfp_store_service_client.js.map +1 -0
  28. package/build/src/v1beta/lfp_store_service_client_config.json +58 -0
  29. package/package.json +70 -0
@@ -0,0 +1,450 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.LfpSaleServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/lfp_sale_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./lfp_sale_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for a [LFP
31
+ * partner](https://support.google.com/merchants/answer/7676652) to submit sales
32
+ * data for a merchant.
33
+ * @class
34
+ * @memberof v1beta
35
+ */
36
+ class LfpSaleServiceClient {
37
+ /**
38
+ * Construct an instance of LfpSaleServiceClient.
39
+ *
40
+ * @param {object} [options] - The configuration object.
41
+ * The options accepted by the constructor are described in detail
42
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
43
+ * The common options are:
44
+ * @param {object} [options.credentials] - Credentials object.
45
+ * @param {string} [options.credentials.client_email]
46
+ * @param {string} [options.credentials.private_key]
47
+ * @param {string} [options.email] - Account email address. Required when
48
+ * using a .pem or .p12 keyFilename.
49
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
50
+ * .p12 key downloaded from the Google Developers Console. If you provide
51
+ * a path to a JSON file, the projectId option below is not necessary.
52
+ * NOTE: .pem and .p12 require you to specify options.email as well.
53
+ * @param {number} [options.port] - The port on which to connect to
54
+ * the remote host.
55
+ * @param {string} [options.projectId] - The project ID from the Google
56
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
57
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
58
+ * app is running in an environment which supports
59
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
60
+ * your project ID will be detected automatically.
61
+ * @param {string} [options.apiEndpoint] - The domain name of the
62
+ * API remote host.
63
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
64
+ * Follows the structure of {@link gapicConfig}.
65
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
66
+ * For more information, please check the
67
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
68
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
69
+ * need to avoid loading the default gRPC version and want to use the fallback
70
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
71
+ * ```
72
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
73
+ * const client = new LfpSaleServiceClient({fallback: true}, gax);
74
+ * ```
75
+ */
76
+ constructor(opts, gaxInstance) {
77
+ var _a, _b, _c, _d, _e;
78
+ this._terminated = false;
79
+ this.descriptors = {
80
+ page: {},
81
+ stream: {},
82
+ longrunning: {},
83
+ batching: {},
84
+ };
85
+ // Ensure that options include all the required fields.
86
+ const staticMembers = this.constructor;
87
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
89
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
90
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
91
+ }
92
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
93
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
94
+ : undefined;
95
+ this._universeDomain =
96
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
97
+ this._servicePath = 'merchantapi.' + this._universeDomain;
98
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
99
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
100
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
101
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
102
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
103
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
104
+ // Request numeric enum values if REST transport is used.
105
+ opts.numericEnums = true;
106
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
107
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
108
+ opts['scopes'] = staticMembers.scopes;
109
+ }
110
+ // Load google-gax module synchronously if needed
111
+ if (!gaxInstance) {
112
+ gaxInstance = require('google-gax');
113
+ }
114
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
115
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
116
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
117
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
118
+ // Save options to use in initialize() method.
119
+ this._opts = opts;
120
+ // Save the auth object to the client, for use by other methods.
121
+ this.auth = this._gaxGrpc.auth;
122
+ // Set useJWTAccessWithScope on the auth object.
123
+ this.auth.useJWTAccessWithScope = true;
124
+ // Set defaultServicePath on the auth object.
125
+ this.auth.defaultServicePath = this._servicePath;
126
+ // Set the default scopes in auth client if needed.
127
+ if (servicePath === this._servicePath) {
128
+ this.auth.defaultScopes = staticMembers.scopes;
129
+ }
130
+ // Determine the client header string.
131
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
132
+ if (typeof process === 'object' && 'versions' in process) {
133
+ clientHeader.push(`gl-node/${process.versions.node}`);
134
+ }
135
+ else {
136
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
137
+ }
138
+ if (!opts.fallback) {
139
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
140
+ }
141
+ else {
142
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
143
+ }
144
+ if (opts.libName && opts.libVersion) {
145
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
146
+ }
147
+ // Load the applicable protos.
148
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
149
+ // This API contains "path templates"; forward-slash-separated
150
+ // identifiers to uniquely identify resources within the API.
151
+ // Create useful helper objects for these.
152
+ this.pathTemplates = {
153
+ lfpInventoryPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}'),
154
+ lfpSalePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpSales/{sale}'),
155
+ lfpStorePathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/lfpStores/{target_merchant}~{store_code}'),
156
+ };
157
+ // Put together the default options sent with requests.
158
+ this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.lfp.v1beta.LfpSaleService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
159
+ // Set up a dictionary of "inner API calls"; the core implementation
160
+ // of calling the API is handled in `google-gax`, with this code
161
+ // merely providing the destination and request information.
162
+ this.innerApiCalls = {};
163
+ // Add a warn function to the client constructor so it can be easily tested.
164
+ this.warn = this._gaxModule.warn;
165
+ }
166
+ /**
167
+ * Initialize the client.
168
+ * Performs asynchronous operations (such as authentication) and prepares the client.
169
+ * This function will be called automatically when any class method is called for the
170
+ * first time, but if you need to initialize it before calling an actual method,
171
+ * feel free to call initialize() directly.
172
+ *
173
+ * You can await on this method if you want to make sure the client is initialized.
174
+ *
175
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
176
+ */
177
+ initialize() {
178
+ // If the client stub promise is already initialized, return immediately.
179
+ if (this.lfpSaleServiceStub) {
180
+ return this.lfpSaleServiceStub;
181
+ }
182
+ // Put together the "service stub" for
183
+ // google.shopping.merchant.lfp.v1beta.LfpSaleService.
184
+ this.lfpSaleServiceStub = this._gaxGrpc.createStub(this._opts.fallback
185
+ ? this._protos.lookupService('google.shopping.merchant.lfp.v1beta.LfpSaleService')
186
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
187
+ this._protos.google.shopping.merchant.lfp.v1beta
188
+ .LfpSaleService, this._opts, this._providedCustomServicePath);
189
+ // Iterate over each of the methods that the service provides
190
+ // and create an API call method for each.
191
+ const lfpSaleServiceStubMethods = ['insertLfpSale'];
192
+ for (const methodName of lfpSaleServiceStubMethods) {
193
+ const callPromise = this.lfpSaleServiceStub.then(stub => (...args) => {
194
+ if (this._terminated) {
195
+ return Promise.reject('The client has already been closed.');
196
+ }
197
+ const func = stub[methodName];
198
+ return func.apply(stub, args);
199
+ }, (err) => () => {
200
+ throw err;
201
+ });
202
+ const descriptor = undefined;
203
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
204
+ this.innerApiCalls[methodName] = apiCall;
205
+ }
206
+ return this.lfpSaleServiceStub;
207
+ }
208
+ /**
209
+ * The DNS address for this API service.
210
+ * @deprecated Use the apiEndpoint method of the client instance.
211
+ * @returns {string} The DNS address for this service.
212
+ */
213
+ static get servicePath() {
214
+ if (typeof process === 'object' &&
215
+ typeof process.emitWarning === 'function') {
216
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
217
+ }
218
+ return 'merchantapi.googleapis.com';
219
+ }
220
+ /**
221
+ * The DNS address for this API service - same as servicePath.
222
+ * @deprecated Use the apiEndpoint method of the client instance.
223
+ * @returns {string} The DNS address for this service.
224
+ */
225
+ static get apiEndpoint() {
226
+ if (typeof process === 'object' &&
227
+ typeof process.emitWarning === 'function') {
228
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
229
+ }
230
+ return 'merchantapi.googleapis.com';
231
+ }
232
+ /**
233
+ * The DNS address for this API service.
234
+ * @returns {string} The DNS address for this service.
235
+ */
236
+ get apiEndpoint() {
237
+ return this._servicePath;
238
+ }
239
+ get universeDomain() {
240
+ return this._universeDomain;
241
+ }
242
+ /**
243
+ * The port for this API service.
244
+ * @returns {number} The default port for this service.
245
+ */
246
+ static get port() {
247
+ return 443;
248
+ }
249
+ /**
250
+ * The scopes needed to make gRPC calls for every method defined
251
+ * in this service.
252
+ * @returns {string[]} List of default scopes.
253
+ */
254
+ static get scopes() {
255
+ return ['https://www.googleapis.com/auth/content'];
256
+ }
257
+ /**
258
+ * Return the project ID used by this class.
259
+ * @returns {Promise} A promise that resolves to string containing the project ID.
260
+ */
261
+ getProjectId(callback) {
262
+ if (callback) {
263
+ this.auth.getProjectId(callback);
264
+ return;
265
+ }
266
+ return this.auth.getProjectId();
267
+ }
268
+ insertLfpSale(request, optionsOrCallback, callback) {
269
+ var _a;
270
+ request = request || {};
271
+ let options;
272
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
273
+ callback = optionsOrCallback;
274
+ options = {};
275
+ }
276
+ else {
277
+ options = optionsOrCallback;
278
+ }
279
+ options = options || {};
280
+ options.otherArgs = options.otherArgs || {};
281
+ options.otherArgs.headers = options.otherArgs.headers || {};
282
+ options.otherArgs.headers['x-goog-request-params'] =
283
+ this._gaxModule.routingHeader.fromParams({
284
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
285
+ });
286
+ this.initialize();
287
+ return this.innerApiCalls.insertLfpSale(request, options, callback);
288
+ }
289
+ // --------------------
290
+ // -- Path templates --
291
+ // --------------------
292
+ /**
293
+ * Return a fully-qualified lfpInventory resource name string.
294
+ *
295
+ * @param {string} account
296
+ * @param {string} target_merchant
297
+ * @param {string} store_code
298
+ * @param {string} offer
299
+ * @returns {string} Resource name string.
300
+ */
301
+ lfpInventoryPath(account, targetMerchant, storeCode, offer) {
302
+ return this.pathTemplates.lfpInventoryPathTemplate.render({
303
+ account: account,
304
+ target_merchant: targetMerchant,
305
+ store_code: storeCode,
306
+ offer: offer,
307
+ });
308
+ }
309
+ /**
310
+ * Parse the account from LfpInventory resource.
311
+ *
312
+ * @param {string} lfpInventoryName
313
+ * A fully-qualified path representing LfpInventory resource.
314
+ * @returns {string} A string representing the account.
315
+ */
316
+ matchAccountFromLfpInventoryName(lfpInventoryName) {
317
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
318
+ .account;
319
+ }
320
+ /**
321
+ * Parse the target_merchant from LfpInventory resource.
322
+ *
323
+ * @param {string} lfpInventoryName
324
+ * A fully-qualified path representing LfpInventory resource.
325
+ * @returns {string} A string representing the target_merchant.
326
+ */
327
+ matchTargetMerchantFromLfpInventoryName(lfpInventoryName) {
328
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
329
+ .target_merchant;
330
+ }
331
+ /**
332
+ * Parse the store_code from LfpInventory resource.
333
+ *
334
+ * @param {string} lfpInventoryName
335
+ * A fully-qualified path representing LfpInventory resource.
336
+ * @returns {string} A string representing the store_code.
337
+ */
338
+ matchStoreCodeFromLfpInventoryName(lfpInventoryName) {
339
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
340
+ .store_code;
341
+ }
342
+ /**
343
+ * Parse the offer from LfpInventory resource.
344
+ *
345
+ * @param {string} lfpInventoryName
346
+ * A fully-qualified path representing LfpInventory resource.
347
+ * @returns {string} A string representing the offer.
348
+ */
349
+ matchOfferFromLfpInventoryName(lfpInventoryName) {
350
+ return this.pathTemplates.lfpInventoryPathTemplate.match(lfpInventoryName)
351
+ .offer;
352
+ }
353
+ /**
354
+ * Return a fully-qualified lfpSale resource name string.
355
+ *
356
+ * @param {string} account
357
+ * @param {string} sale
358
+ * @returns {string} Resource name string.
359
+ */
360
+ lfpSalePath(account, sale) {
361
+ return this.pathTemplates.lfpSalePathTemplate.render({
362
+ account: account,
363
+ sale: sale,
364
+ });
365
+ }
366
+ /**
367
+ * Parse the account from LfpSale resource.
368
+ *
369
+ * @param {string} lfpSaleName
370
+ * A fully-qualified path representing LfpSale resource.
371
+ * @returns {string} A string representing the account.
372
+ */
373
+ matchAccountFromLfpSaleName(lfpSaleName) {
374
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).account;
375
+ }
376
+ /**
377
+ * Parse the sale from LfpSale resource.
378
+ *
379
+ * @param {string} lfpSaleName
380
+ * A fully-qualified path representing LfpSale resource.
381
+ * @returns {string} A string representing the sale.
382
+ */
383
+ matchSaleFromLfpSaleName(lfpSaleName) {
384
+ return this.pathTemplates.lfpSalePathTemplate.match(lfpSaleName).sale;
385
+ }
386
+ /**
387
+ * Return a fully-qualified lfpStore resource name string.
388
+ *
389
+ * @param {string} account
390
+ * @param {string} target_merchant
391
+ * @param {string} store_code
392
+ * @returns {string} Resource name string.
393
+ */
394
+ lfpStorePath(account, targetMerchant, storeCode) {
395
+ return this.pathTemplates.lfpStorePathTemplate.render({
396
+ account: account,
397
+ target_merchant: targetMerchant,
398
+ store_code: storeCode,
399
+ });
400
+ }
401
+ /**
402
+ * Parse the account from LfpStore resource.
403
+ *
404
+ * @param {string} lfpStoreName
405
+ * A fully-qualified path representing LfpStore resource.
406
+ * @returns {string} A string representing the account.
407
+ */
408
+ matchAccountFromLfpStoreName(lfpStoreName) {
409
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName).account;
410
+ }
411
+ /**
412
+ * Parse the target_merchant from LfpStore resource.
413
+ *
414
+ * @param {string} lfpStoreName
415
+ * A fully-qualified path representing LfpStore resource.
416
+ * @returns {string} A string representing the target_merchant.
417
+ */
418
+ matchTargetMerchantFromLfpStoreName(lfpStoreName) {
419
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName)
420
+ .target_merchant;
421
+ }
422
+ /**
423
+ * Parse the store_code from LfpStore resource.
424
+ *
425
+ * @param {string} lfpStoreName
426
+ * A fully-qualified path representing LfpStore resource.
427
+ * @returns {string} A string representing the store_code.
428
+ */
429
+ matchStoreCodeFromLfpStoreName(lfpStoreName) {
430
+ return this.pathTemplates.lfpStorePathTemplate.match(lfpStoreName)
431
+ .store_code;
432
+ }
433
+ /**
434
+ * Terminate the gRPC channel and close the client.
435
+ *
436
+ * The client will no longer be usable and all future behavior is undefined.
437
+ * @returns {Promise} A promise that resolves when the client is closed.
438
+ */
439
+ close() {
440
+ if (this.lfpSaleServiceStub && !this._terminated) {
441
+ return this.lfpSaleServiceStub.then(stub => {
442
+ this._terminated = true;
443
+ stub.close();
444
+ });
445
+ }
446
+ return Promise.resolve();
447
+ }
448
+ }
449
+ exports.LfpSaleServiceClient = LfpSaleServiceClient;
450
+ //# sourceMappingURL=lfp_sale_service_client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfp_sale_service_client.js","sourceRoot":"","sources":["../../../src/v1beta/lfp_sale_service_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAYrD,uDAAwD;AAExD;;;;GAIG;AACH,qEAAqE;AACrE,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;GAMG;AACH,MAAa,oBAA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CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACH,8BAA8B,CAAC,YAAoB;QACjD,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC;aAC/D,UAAU,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACzC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAhmBD,oDAgmBC"}
@@ -0,0 +1,43 @@
1
+ {
2
+ "interfaces": {
3
+ "google.shopping.merchant.lfp.v1beta.LfpSaleService": {
4
+ "retry_codes": {
5
+ "non_idempotent": [],
6
+ "idempotent": [
7
+ "DEADLINE_EXCEEDED",
8
+ "UNAVAILABLE"
9
+ ],
10
+ "unavailable": [
11
+ "UNAVAILABLE"
12
+ ]
13
+ },
14
+ "retry_params": {
15
+ "default": {
16
+ "initial_retry_delay_millis": 100,
17
+ "retry_delay_multiplier": 1.3,
18
+ "max_retry_delay_millis": 60000,
19
+ "initial_rpc_timeout_millis": 60000,
20
+ "rpc_timeout_multiplier": 1,
21
+ "max_rpc_timeout_millis": 60000,
22
+ "total_timeout_millis": 600000
23
+ },
24
+ "ce5b960a6ed052e690863808e4f0deff3dc7d49f": {
25
+ "initial_retry_delay_millis": 1000,
26
+ "retry_delay_multiplier": 1.3,
27
+ "max_retry_delay_millis": 10000,
28
+ "initial_rpc_timeout_millis": 60000,
29
+ "rpc_timeout_multiplier": 1,
30
+ "max_rpc_timeout_millis": 60000,
31
+ "total_timeout_millis": 600000
32
+ }
33
+ },
34
+ "methods": {
35
+ "InsertLfpSale": {
36
+ "timeout_millis": 60000,
37
+ "retry_codes_name": "unavailable",
38
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }