@google-shopping/reviews 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.
@@ -0,0 +1,562 @@
1
+ "use strict";
2
+ // Copyright 2025 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.MerchantReviewsServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/merchant_reviews_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./merchant_reviews_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service to manage merchant reviews.
31
+ * @class
32
+ * @memberof v1beta
33
+ */
34
+ class MerchantReviewsServiceClient {
35
+ /**
36
+ * Construct an instance of MerchantReviewsServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
67
+ * need to avoid loading the default gRPC version and want to use the fallback
68
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
69
+ * ```
70
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
+ * const client = new MerchantReviewsServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b, _c, _d, _e;
76
+ this._terminated = false;
77
+ this.descriptors = {
78
+ page: {},
79
+ stream: {},
80
+ longrunning: {},
81
+ batching: {},
82
+ };
83
+ // Ensure that options include all the required fields.
84
+ const staticMembers = this
85
+ .constructor;
86
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
87
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
88
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
89
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
90
+ }
91
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
92
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
93
+ : undefined;
94
+ this._universeDomain =
95
+ (_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';
96
+ this._servicePath = 'merchantapi.' + this._universeDomain;
97
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
98
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
99
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
100
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
101
+ 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');
102
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
103
+ // Request numeric enum values if REST transport is used.
104
+ opts.numericEnums = true;
105
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
106
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
107
+ opts['scopes'] = staticMembers.scopes;
108
+ }
109
+ // Load google-gax module synchronously if needed
110
+ if (!gaxInstance) {
111
+ gaxInstance = require('google-gax');
112
+ }
113
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
114
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
115
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
116
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
117
+ // Save options to use in initialize() method.
118
+ this._opts = opts;
119
+ // Save the auth object to the client, for use by other methods.
120
+ this.auth = this._gaxGrpc.auth;
121
+ // Set useJWTAccessWithScope on the auth object.
122
+ this.auth.useJWTAccessWithScope = true;
123
+ // Set defaultServicePath on the auth object.
124
+ this.auth.defaultServicePath = this._servicePath;
125
+ // Set the default scopes in auth client if needed.
126
+ if (servicePath === this._servicePath) {
127
+ this.auth.defaultScopes = staticMembers.scopes;
128
+ }
129
+ // Determine the client header string.
130
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
131
+ if (typeof process === 'object' && 'versions' in process) {
132
+ clientHeader.push(`gl-node/${process.versions.node}`);
133
+ }
134
+ else {
135
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
136
+ }
137
+ if (!opts.fallback) {
138
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
139
+ }
140
+ else {
141
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
142
+ }
143
+ if (opts.libName && opts.libVersion) {
144
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
145
+ }
146
+ // Load the applicable protos.
147
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
148
+ // This API contains "path templates"; forward-slash-separated
149
+ // identifiers to uniquely identify resources within the API.
150
+ // Create useful helper objects for these.
151
+ this.pathTemplates = {
152
+ accountPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}'),
153
+ merchantReviewPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/merchantReviews/{name}'),
154
+ productReviewPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/productReviews/{productreview}'),
155
+ };
156
+ // Some of the methods on this service return "paged" results,
157
+ // (e.g. 50 results at a time, with tokens to get subsequent
158
+ // pages). Denote the keys used for pagination and results.
159
+ this.descriptors.page = {
160
+ listMerchantReviews: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'merchantReviews'),
161
+ };
162
+ // Put together the default options sent with requests.
163
+ this._defaults = this._gaxGrpc.constructSettings('google.shopping.merchant.reviews.v1beta.MerchantReviewsService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
164
+ // Set up a dictionary of "inner API calls"; the core implementation
165
+ // of calling the API is handled in `google-gax`, with this code
166
+ // merely providing the destination and request information.
167
+ this.innerApiCalls = {};
168
+ // Add a warn function to the client constructor so it can be easily tested.
169
+ this.warn = this._gaxModule.warn;
170
+ }
171
+ /**
172
+ * Initialize the client.
173
+ * Performs asynchronous operations (such as authentication) and prepares the client.
174
+ * This function will be called automatically when any class method is called for the
175
+ * first time, but if you need to initialize it before calling an actual method,
176
+ * feel free to call initialize() directly.
177
+ *
178
+ * You can await on this method if you want to make sure the client is initialized.
179
+ *
180
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
181
+ */
182
+ initialize() {
183
+ // If the client stub promise is already initialized, return immediately.
184
+ if (this.merchantReviewsServiceStub) {
185
+ return this.merchantReviewsServiceStub;
186
+ }
187
+ // Put together the "service stub" for
188
+ // google.shopping.merchant.reviews.v1beta.MerchantReviewsService.
189
+ this.merchantReviewsServiceStub = this._gaxGrpc.createStub(this._opts.fallback
190
+ ? this._protos.lookupService('google.shopping.merchant.reviews.v1beta.MerchantReviewsService')
191
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
192
+ this._protos.google.shopping.merchant.reviews.v1beta
193
+ .MerchantReviewsService, this._opts, this._providedCustomServicePath);
194
+ // Iterate over each of the methods that the service provides
195
+ // and create an API call method for each.
196
+ const merchantReviewsServiceStubMethods = [
197
+ 'getMerchantReview',
198
+ 'listMerchantReviews',
199
+ 'insertMerchantReview',
200
+ 'deleteMerchantReview',
201
+ ];
202
+ for (const methodName of merchantReviewsServiceStubMethods) {
203
+ const callPromise = this.merchantReviewsServiceStub.then(stub => (...args) => {
204
+ if (this._terminated) {
205
+ return Promise.reject('The client has already been closed.');
206
+ }
207
+ const func = stub[methodName];
208
+ return func.apply(stub, args);
209
+ }, (err) => () => {
210
+ throw err;
211
+ });
212
+ const descriptor = this.descriptors.page[methodName] || undefined;
213
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
214
+ this.innerApiCalls[methodName] = apiCall;
215
+ }
216
+ return this.merchantReviewsServiceStub;
217
+ }
218
+ /**
219
+ * The DNS address for this API service.
220
+ * @deprecated Use the apiEndpoint method of the client instance.
221
+ * @returns {string} The DNS address for this service.
222
+ */
223
+ static get servicePath() {
224
+ if (typeof process === 'object' &&
225
+ typeof process.emitWarning === 'function') {
226
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
227
+ }
228
+ return 'merchantapi.googleapis.com';
229
+ }
230
+ /**
231
+ * The DNS address for this API service - same as servicePath.
232
+ * @deprecated Use the apiEndpoint method of the client instance.
233
+ * @returns {string} The DNS address for this service.
234
+ */
235
+ static get apiEndpoint() {
236
+ if (typeof process === 'object' &&
237
+ typeof process.emitWarning === 'function') {
238
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
239
+ }
240
+ return 'merchantapi.googleapis.com';
241
+ }
242
+ /**
243
+ * The DNS address for this API service.
244
+ * @returns {string} The DNS address for this service.
245
+ */
246
+ get apiEndpoint() {
247
+ return this._servicePath;
248
+ }
249
+ get universeDomain() {
250
+ return this._universeDomain;
251
+ }
252
+ /**
253
+ * The port for this API service.
254
+ * @returns {number} The default port for this service.
255
+ */
256
+ static get port() {
257
+ return 443;
258
+ }
259
+ /**
260
+ * The scopes needed to make gRPC calls for every method defined
261
+ * in this service.
262
+ * @returns {string[]} List of default scopes.
263
+ */
264
+ static get scopes() {
265
+ return ['https://www.googleapis.com/auth/content'];
266
+ }
267
+ /**
268
+ * Return the project ID used by this class.
269
+ * @returns {Promise} A promise that resolves to string containing the project ID.
270
+ */
271
+ getProjectId(callback) {
272
+ if (callback) {
273
+ this.auth.getProjectId(callback);
274
+ return;
275
+ }
276
+ return this.auth.getProjectId();
277
+ }
278
+ getMerchantReview(request, optionsOrCallback, callback) {
279
+ var _a;
280
+ request = request || {};
281
+ let options;
282
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
283
+ callback = optionsOrCallback;
284
+ options = {};
285
+ }
286
+ else {
287
+ options = optionsOrCallback;
288
+ }
289
+ options = options || {};
290
+ options.otherArgs = options.otherArgs || {};
291
+ options.otherArgs.headers = options.otherArgs.headers || {};
292
+ options.otherArgs.headers['x-goog-request-params'] =
293
+ this._gaxModule.routingHeader.fromParams({
294
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
295
+ });
296
+ this.initialize();
297
+ return this.innerApiCalls.getMerchantReview(request, options, callback);
298
+ }
299
+ insertMerchantReview(request, optionsOrCallback, callback) {
300
+ var _a;
301
+ request = request || {};
302
+ let options;
303
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
304
+ callback = optionsOrCallback;
305
+ options = {};
306
+ }
307
+ else {
308
+ options = optionsOrCallback;
309
+ }
310
+ options = options || {};
311
+ options.otherArgs = options.otherArgs || {};
312
+ options.otherArgs.headers = options.otherArgs.headers || {};
313
+ options.otherArgs.headers['x-goog-request-params'] =
314
+ this._gaxModule.routingHeader.fromParams({
315
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
316
+ });
317
+ this.initialize();
318
+ return this.innerApiCalls.insertMerchantReview(request, options, callback);
319
+ }
320
+ deleteMerchantReview(request, optionsOrCallback, callback) {
321
+ var _a;
322
+ request = request || {};
323
+ let options;
324
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
325
+ callback = optionsOrCallback;
326
+ options = {};
327
+ }
328
+ else {
329
+ options = optionsOrCallback;
330
+ }
331
+ options = options || {};
332
+ options.otherArgs = options.otherArgs || {};
333
+ options.otherArgs.headers = options.otherArgs.headers || {};
334
+ options.otherArgs.headers['x-goog-request-params'] =
335
+ this._gaxModule.routingHeader.fromParams({
336
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
337
+ });
338
+ this.initialize();
339
+ return this.innerApiCalls.deleteMerchantReview(request, options, callback);
340
+ }
341
+ listMerchantReviews(request, optionsOrCallback, callback) {
342
+ var _a;
343
+ request = request || {};
344
+ let options;
345
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
346
+ callback = optionsOrCallback;
347
+ options = {};
348
+ }
349
+ else {
350
+ options = optionsOrCallback;
351
+ }
352
+ options = options || {};
353
+ options.otherArgs = options.otherArgs || {};
354
+ options.otherArgs.headers = options.otherArgs.headers || {};
355
+ options.otherArgs.headers['x-goog-request-params'] =
356
+ this._gaxModule.routingHeader.fromParams({
357
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
358
+ });
359
+ this.initialize();
360
+ return this.innerApiCalls.listMerchantReviews(request, options, callback);
361
+ }
362
+ /**
363
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
364
+ * @param {Object} request
365
+ * The request object that will be sent.
366
+ * @param {string} request.parent
367
+ * Required. The account to list merchant reviews for.
368
+ * Format: accounts/{account}
369
+ * @param {number} [request.pageSize]
370
+ * Optional. The maximum number of merchant reviews to return. The service can
371
+ * return fewer than this value. The maximum value is 1000; values above 1000
372
+ * are coerced to 1000. If unspecified, the maximum number of reviews is
373
+ * returned.
374
+ * @param {string} [request.pageToken]
375
+ * Optional. A page token, received from a previous `ListMerchantReviews`
376
+ * call. Provide this to retrieve the subsequent page.
377
+ *
378
+ * When paginating, all other parameters provided to `ListMerchantReviews`
379
+ * must match the call that provided the page token.
380
+ * @param {object} [options]
381
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
382
+ * @returns {Stream}
383
+ * An object stream which emits an object representing {@link protos.google.shopping.merchant.reviews.v1beta.MerchantReview|MerchantReview} on 'data' event.
384
+ * The client library will perform auto-pagination by default: it will call the API as many
385
+ * times as needed. Note that it can affect your quota.
386
+ * We recommend using `listMerchantReviewsAsync()`
387
+ * method described below for async iteration which you can stop as needed.
388
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
389
+ * for more details and examples.
390
+ */
391
+ listMerchantReviewsStream(request, options) {
392
+ var _a;
393
+ request = request || {};
394
+ options = options || {};
395
+ options.otherArgs = options.otherArgs || {};
396
+ options.otherArgs.headers = options.otherArgs.headers || {};
397
+ options.otherArgs.headers['x-goog-request-params'] =
398
+ this._gaxModule.routingHeader.fromParams({
399
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
400
+ });
401
+ const defaultCallSettings = this._defaults['listMerchantReviews'];
402
+ const callSettings = defaultCallSettings.merge(options);
403
+ this.initialize();
404
+ return this.descriptors.page.listMerchantReviews.createStream(this.innerApiCalls.listMerchantReviews, request, callSettings);
405
+ }
406
+ /**
407
+ * Equivalent to `listMerchantReviews`, but returns an iterable object.
408
+ *
409
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
410
+ * @param {Object} request
411
+ * The request object that will be sent.
412
+ * @param {string} request.parent
413
+ * Required. The account to list merchant reviews for.
414
+ * Format: accounts/{account}
415
+ * @param {number} [request.pageSize]
416
+ * Optional. The maximum number of merchant reviews to return. The service can
417
+ * return fewer than this value. The maximum value is 1000; values above 1000
418
+ * are coerced to 1000. If unspecified, the maximum number of reviews is
419
+ * returned.
420
+ * @param {string} [request.pageToken]
421
+ * Optional. A page token, received from a previous `ListMerchantReviews`
422
+ * call. Provide this to retrieve the subsequent page.
423
+ *
424
+ * When paginating, all other parameters provided to `ListMerchantReviews`
425
+ * must match the call that provided the page token.
426
+ * @param {object} [options]
427
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
428
+ * @returns {Object}
429
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
430
+ * When you iterate the returned iterable, each element will be an object representing
431
+ * {@link protos.google.shopping.merchant.reviews.v1beta.MerchantReview|MerchantReview}. The API will be called under the hood as needed, once per the page,
432
+ * so you can stop the iteration when you don't need more results.
433
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
434
+ * for more details and examples.
435
+ * @example <caption>include:samples/generated/v1beta/merchant_reviews_service.list_merchant_reviews.js</caption>
436
+ * region_tag:merchantapi_v1beta_generated_MerchantReviewsService_ListMerchantReviews_async
437
+ */
438
+ listMerchantReviewsAsync(request, options) {
439
+ var _a;
440
+ request = request || {};
441
+ options = options || {};
442
+ options.otherArgs = options.otherArgs || {};
443
+ options.otherArgs.headers = options.otherArgs.headers || {};
444
+ options.otherArgs.headers['x-goog-request-params'] =
445
+ this._gaxModule.routingHeader.fromParams({
446
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
447
+ });
448
+ const defaultCallSettings = this._defaults['listMerchantReviews'];
449
+ const callSettings = defaultCallSettings.merge(options);
450
+ this.initialize();
451
+ return this.descriptors.page.listMerchantReviews.asyncIterate(this.innerApiCalls['listMerchantReviews'], request, callSettings);
452
+ }
453
+ // --------------------
454
+ // -- Path templates --
455
+ // --------------------
456
+ /**
457
+ * Return a fully-qualified account resource name string.
458
+ *
459
+ * @param {string} account
460
+ * @returns {string} Resource name string.
461
+ */
462
+ accountPath(account) {
463
+ return this.pathTemplates.accountPathTemplate.render({
464
+ account: account,
465
+ });
466
+ }
467
+ /**
468
+ * Parse the account from Account resource.
469
+ *
470
+ * @param {string} accountName
471
+ * A fully-qualified path representing Account resource.
472
+ * @returns {string} A string representing the account.
473
+ */
474
+ matchAccountFromAccountName(accountName) {
475
+ return this.pathTemplates.accountPathTemplate.match(accountName).account;
476
+ }
477
+ /**
478
+ * Return a fully-qualified merchantReview resource name string.
479
+ *
480
+ * @param {string} account
481
+ * @param {string} name
482
+ * @returns {string} Resource name string.
483
+ */
484
+ merchantReviewPath(account, name) {
485
+ return this.pathTemplates.merchantReviewPathTemplate.render({
486
+ account: account,
487
+ name: name,
488
+ });
489
+ }
490
+ /**
491
+ * Parse the account from MerchantReview resource.
492
+ *
493
+ * @param {string} merchantReviewName
494
+ * A fully-qualified path representing MerchantReview resource.
495
+ * @returns {string} A string representing the account.
496
+ */
497
+ matchAccountFromMerchantReviewName(merchantReviewName) {
498
+ return this.pathTemplates.merchantReviewPathTemplate.match(merchantReviewName).account;
499
+ }
500
+ /**
501
+ * Parse the name from MerchantReview resource.
502
+ *
503
+ * @param {string} merchantReviewName
504
+ * A fully-qualified path representing MerchantReview resource.
505
+ * @returns {string} A string representing the name.
506
+ */
507
+ matchNameFromMerchantReviewName(merchantReviewName) {
508
+ return this.pathTemplates.merchantReviewPathTemplate.match(merchantReviewName).name;
509
+ }
510
+ /**
511
+ * Return a fully-qualified productReview resource name string.
512
+ *
513
+ * @param {string} account
514
+ * @param {string} productreview
515
+ * @returns {string} Resource name string.
516
+ */
517
+ productReviewPath(account, productreview) {
518
+ return this.pathTemplates.productReviewPathTemplate.render({
519
+ account: account,
520
+ productreview: productreview,
521
+ });
522
+ }
523
+ /**
524
+ * Parse the account from ProductReview resource.
525
+ *
526
+ * @param {string} productReviewName
527
+ * A fully-qualified path representing ProductReview resource.
528
+ * @returns {string} A string representing the account.
529
+ */
530
+ matchAccountFromProductReviewName(productReviewName) {
531
+ return this.pathTemplates.productReviewPathTemplate.match(productReviewName)
532
+ .account;
533
+ }
534
+ /**
535
+ * Parse the productreview from ProductReview resource.
536
+ *
537
+ * @param {string} productReviewName
538
+ * A fully-qualified path representing ProductReview resource.
539
+ * @returns {string} A string representing the productreview.
540
+ */
541
+ matchProductreviewFromProductReviewName(productReviewName) {
542
+ return this.pathTemplates.productReviewPathTemplate.match(productReviewName)
543
+ .productreview;
544
+ }
545
+ /**
546
+ * Terminate the gRPC channel and close the client.
547
+ *
548
+ * The client will no longer be usable and all future behavior is undefined.
549
+ * @returns {Promise} A promise that resolves when the client is closed.
550
+ */
551
+ close() {
552
+ if (this.merchantReviewsServiceStub && !this._terminated) {
553
+ return this.merchantReviewsServiceStub.then(stub => {
554
+ this._terminated = true;
555
+ stub.close();
556
+ });
557
+ }
558
+ return Promise.resolve();
559
+ }
560
+ }
561
+ exports.MerchantReviewsServiceClient = MerchantReviewsServiceClient;
562
+ //# sourceMappingURL=merchant_reviews_service_client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merchant_reviews_service_client.js","sourceRoot":"","sources":["../../../src/v1beta/merchant_reviews_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;;;AAcrD,uDAAwD;AAExD;;;;GAIG;AACH,6EAA6E;AAC7E,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,4BAA4B;IAsBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,YACE,IAAoB,EACpB,WAA8C;;QA9DxC,gBAAW,GAAG,KAAK,CAAC;QAU5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb,CAAC;QAiDA,uDAAuD;QACvD,MAAM,aAAa,GAAG,IAAI;aACvB,WAAkD,CAAC;QACtD,IACE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe;aACrB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,CAAA;YACpB,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,OAAK,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAA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E,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAl9BD,oEAk9BC"}
@@ -0,0 +1,58 @@
1
+ {
2
+ "interfaces": {
3
+ "google.shopping.merchant.reviews.v1beta.MerchantReviewsService": {
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
+ "GetMerchantReview": {
36
+ "timeout_millis": 60000,
37
+ "retry_codes_name": "unavailable",
38
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
39
+ },
40
+ "ListMerchantReviews": {
41
+ "timeout_millis": 60000,
42
+ "retry_codes_name": "unavailable",
43
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
44
+ },
45
+ "InsertMerchantReview": {
46
+ "timeout_millis": 60000,
47
+ "retry_codes_name": "unavailable",
48
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
49
+ },
50
+ "DeleteMerchantReview": {
51
+ "timeout_millis": 60000,
52
+ "retry_codes_name": "unavailable",
53
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }