Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit d46c012

Browse files
fix: better support for fallback mode (#192)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
1 parent 94d3fbc commit d46c012

11 files changed

+119
-93
lines changed

samples/generated/v1/snippet_metadata.google.cloud.video.transcoder.v1.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 56,
25+
"end": 59,
2626
"type": "FULL"
2727
}
2828
],
@@ -66,7 +66,7 @@
6666
"segments": [
6767
{
6868
"start": 25,
69-
"end": 71,
69+
"end": 74,
7070
"type": "FULL"
7171
}
7272
],
@@ -122,7 +122,7 @@
122122
"segments": [
123123
{
124124
"start": 25,
125-
"end": 51,
125+
"end": 54,
126126
"type": "FULL"
127127
}
128128
],
@@ -162,7 +162,7 @@
162162
"segments": [
163163
{
164164
"start": 25,
165-
"end": 56,
165+
"end": 59,
166166
"type": "FULL"
167167
}
168168
],
@@ -206,7 +206,7 @@
206206
"segments": [
207207
{
208208
"start": 25,
209-
"end": 64,
209+
"end": 67,
210210
"type": "FULL"
211211
}
212212
],
@@ -254,7 +254,7 @@
254254
"segments": [
255255
{
256256
"start": 25,
257-
"end": 72,
257+
"end": 75,
258258
"type": "FULL"
259259
}
260260
],
@@ -310,7 +310,7 @@
310310
"segments": [
311311
{
312312
"start": 25,
313-
"end": 52,
313+
"end": 55,
314314
"type": "FULL"
315315
}
316316
],
@@ -350,7 +350,7 @@
350350
"segments": [
351351
{
352352
"start": 25,
353-
"end": 56,
353+
"end": 59,
354354
"type": "FULL"
355355
}
356356
],

samples/generated/v1/transcoder_service.create_job.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, job) {
2424
// [START transcoder_v1_generated_TranscoderService_CreateJob_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.create_job_template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, jobTemplate, jobTemplateId) {
2424
// [START transcoder_v1_generated_TranscoderService_CreateJobTemplate_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.delete_job.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START transcoder_v1_generated_TranscoderService_DeleteJob_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.delete_job_template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START transcoder_v1_generated_TranscoderService_DeleteJobTemplate_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.get_job.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START transcoder_v1_generated_TranscoderService_GetJob_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.get_job_template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START transcoder_v1_generated_TranscoderService_GetJobTemplate_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.list_job_templates.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START transcoder_v1_generated_TranscoderService_ListJobTemplates_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

samples/generated/v1/transcoder_service.list_jobs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START transcoder_v1_generated_TranscoderService_ListJobs_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

src/v1/transcoder_service_client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
} from 'google-gax';
2929

3030
import {Transform} from 'stream';
31-
import {RequestType} from 'google-gax/build/src/apitypes';
3231
import * as protos from '../../protos/protos';
3332
import jsonProtos = require('../../protos/protos.json');
3433
/**
@@ -274,7 +273,8 @@ export class TranscoderServiceClient {
274273
const apiCall = this._gaxModule.createApiCall(
275274
callPromise,
276275
this._defaults[methodName],
277-
descriptor
276+
descriptor,
277+
this._opts.fallback
278278
);
279279

280280
this.innerApiCalls[methodName] = apiCall;
@@ -1069,7 +1069,7 @@ export class TranscoderServiceClient {
10691069
const callSettings = defaultCallSettings.merge(options);
10701070
this.initialize();
10711071
return this.descriptors.page.listJobs.createStream(
1072-
this.innerApiCalls.listJobs as gax.GaxCall,
1072+
this.innerApiCalls.listJobs as GaxCall,
10731073
request,
10741074
callSettings
10751075
);
@@ -1124,7 +1124,7 @@ export class TranscoderServiceClient {
11241124
this.initialize();
11251125
return this.descriptors.page.listJobs.asyncIterate(
11261126
this.innerApiCalls['listJobs'] as GaxCall,
1127-
request as unknown as RequestType,
1127+
request as {},
11281128
callSettings
11291129
) as AsyncIterable<protos.google.cloud.video.transcoder.v1.IJob>;
11301130
}
@@ -1281,7 +1281,7 @@ export class TranscoderServiceClient {
12811281
const callSettings = defaultCallSettings.merge(options);
12821282
this.initialize();
12831283
return this.descriptors.page.listJobTemplates.createStream(
1284-
this.innerApiCalls.listJobTemplates as gax.GaxCall,
1284+
this.innerApiCalls.listJobTemplates as GaxCall,
12851285
request,
12861286
callSettings
12871287
);
@@ -1337,7 +1337,7 @@ export class TranscoderServiceClient {
13371337
this.initialize();
13381338
return this.descriptors.page.listJobTemplates.asyncIterate(
13391339
this.innerApiCalls['listJobTemplates'] as GaxCall,
1340-
request as unknown as RequestType,
1340+
request as {},
13411341
callSettings
13421342
) as AsyncIterable<protos.google.cloud.video.transcoder.v1.IJobTemplate>;
13431343
}

0 commit comments

Comments
 (0)