-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60390f1
commit f543fda
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,15 +185,16 @@ export class {{ service.name }}Client { | |
{%- endfor %} | ||
}; | ||
{%- endif %} | ||
{%- if (service.longRunning.length > 0) %} | ||
{%- if (service.longRunning.length > 0) or (service.bundleConfigs.length > 0) %} | ||
|
||
// This API contains "long-running operations", which return a | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
xiaozhenliu-gg5
Author
Contributor
|
||
// an Operation object that allows for tracking of the operation, | ||
// rather than holding a request open. | ||
const protoFilesRoot = opts.fallback? | ||
this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : | ||
this._gaxModule.protobuf.loadSync(nodejsProtoPath); | ||
|
||
{% endif %} | ||
{%- if service.longRunning.length > 0 %} | ||
this.operationsClient = this._gaxModule.lro({ | ||
auth: this.auth, | ||
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined | ||
|
@@ -221,11 +222,6 @@ export class {{ service.name }}Client { | |
{%- if (service.bundleConfigs.length > 0) %} | ||
// Some methods on this API support automatically batching | ||
// requests; denote this. | ||
{%- if (service.longRunning.length === 0) %} | ||
const protoFilesRoot = opts.fallback? | ||
this._gaxModule.protobuf.Root.fromJSON(require("../../protos/protos.json")) : | ||
this._gaxModule.protobuf.loadSync(nodejsProtoPath); | ||
{%- endif %} | ||
|
||
this._descriptors.batching = { | ||
{%- for method in service.bundleConfigsMethods %} | ||
|
This is not perfect (will write the comment even if there are no long running operations :) ) but I guess we're fine here, no need to fix it.