|
16 | 16 |
|
17 | 17 | const gapicConfig = require('./video_intelligence_service_client_config.json');
|
18 | 18 | const gax = require('google-gax');
|
19 |
| -const merge = require('lodash.merge'); |
20 | 19 | const path = require('path');
|
21 | 20 | const protobuf = require('protobufjs');
|
22 | 21 |
|
@@ -89,12 +88,9 @@ class VideoIntelligenceServiceClient {
|
89 | 88 | }
|
90 | 89 |
|
91 | 90 | // Load the applicable protos.
|
92 |
| - const protos = merge( |
93 |
| - {}, |
94 |
| - gaxGrpc.loadProto( |
95 |
| - path.join(__dirname, '..', '..', 'protos'), |
96 |
| - 'google/cloud/videointelligence/v1p1beta1/video_intelligence.proto' |
97 |
| - ) |
| 91 | + const protos = gaxGrpc.loadProto( |
| 92 | + path.join(__dirname, '..', '..', 'protos'), |
| 93 | + ['google/cloud/videointelligence/v1p1beta1/video_intelligence.proto'] |
98 | 94 | );
|
99 | 95 | let protoFilesRoot = new gax.GoogleProtoFilesRoot();
|
100 | 96 | protoFilesRoot = protobuf.loadSync(
|
@@ -252,13 +248,13 @@ class VideoIntelligenceServiceClient {
|
252 | 248 | * is specified, a region will be determined based on video file location.
|
253 | 249 | * @param {Object} [options]
|
254 | 250 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
255 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 251 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
256 | 252 | * @param {function(?Error, ?Object)} [callback]
|
257 | 253 | * The function which will be called with the result of the API call.
|
258 | 254 | *
|
259 |
| - * The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object. |
| 255 | + * The second parameter to the callback is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object. |
260 | 256 | * @returns {Promise} - The promise which resolves to an array.
|
261 |
| - * The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/Operation} object. |
| 257 | + * The first element of the array is a [gax.Operation]{@link https://googleapis.github.io/gax-nodejs/classes/Operation.html} object. |
262 | 258 | * The promise has a method named "cancel" which cancels the ongoing API call.
|
263 | 259 | *
|
264 | 260 | * @example
|
|
0 commit comments