Skip to content

Commit

Permalink
chore: new owl bot post processor docker image (#49)
Browse files Browse the repository at this point in the history
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
  • Loading branch information
gcf-owl-bot[bot] authored May 10, 2021
1 parent 38b6f53 commit 9ad54c4
Show file tree
Hide file tree
Showing 26 changed files with 542 additions and 660 deletions.
24 changes: 12 additions & 12 deletions packages/google-cloud-retail/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions packages/google-cloud-retail/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 25 additions & 28 deletions packages/google-cloud-retail/src/v2/catalog_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,14 @@ export class CatalogServiceClient {
const catalogServiceStubMethods = ['listCatalogs', 'updateCatalog'];
for (const methodName of catalogServiceStubMethods) {
const callPromise = this.catalogServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down Expand Up @@ -408,11 +409,10 @@ export class CatalogServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
'catalog.name': request.catalog!.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
'catalog.name': request.catalog!.name || '',
});
this.initialize();
return this.innerApiCalls.updateCatalog(request, options, callback);
}
Expand Down Expand Up @@ -521,11 +521,10 @@ export class CatalogServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
this.initialize();
return this.innerApiCalls.listCatalogs(request, options, callback);
}
Expand Down Expand Up @@ -578,11 +577,10 @@ export class CatalogServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listCatalogs.createStream(
Expand Down Expand Up @@ -646,17 +644,16 @@ export class CatalogServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
options = options || {};
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listCatalogs.asyncIterate(
this.innerApiCalls['listCatalogs'] as GaxCall,
(request as unknown) as RequestType,
request as unknown as RequestType,
callSettings
) as AsyncIterable<protos.google.cloud.retail.v2.ICatalog>;
}
Expand Down
24 changes: 12 additions & 12 deletions packages/google-cloud-retail/src/v2/prediction_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,14 @@ export class PredictionServiceClient {
const predictionServiceStubMethods = ['predict'];
for (const methodName of predictionServiceStubMethods) {
const callPromise = this.predictionServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down Expand Up @@ -462,11 +463,10 @@ export class PredictionServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
placement: request.placement || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
placement: request.placement || '',
});
this.initialize();
return this.innerApiCalls.predict(request, options, callback);
}
Expand Down
Loading

0 comments on commit 9ad54c4

Please sign in to comment.