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

fix: Updating WORKSPACE files to use the newest version of the Typescript generator. #579

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/v1/video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const version = require('../../../package.json').version;
export class VideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -56,6 +57,7 @@ export class VideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
videoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -100,6 +102,9 @@ export class VideoIntelligenceServiceClient {
.constructor as typeof VideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -186,6 +191,9 @@ export class VideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -215,7 +223,8 @@ export class VideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1
.VideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1beta2/video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const version = require('../../../package.json').version;
export class VideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -56,6 +57,7 @@ export class VideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
videoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -100,6 +102,9 @@ export class VideoIntelligenceServiceClient {
.constructor as typeof VideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -186,6 +191,9 @@ export class VideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -215,7 +223,8 @@ export class VideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1beta2
.VideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1p1beta1/video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const version = require('../../../package.json').version;
export class VideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -56,6 +57,7 @@ export class VideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
videoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -100,6 +102,9 @@ export class VideoIntelligenceServiceClient {
.constructor as typeof VideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -186,6 +191,9 @@ export class VideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -215,7 +223,8 @@ export class VideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1p1beta1
.VideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1p2beta1/video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const version = require('../../../package.json').version;
export class VideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -56,6 +57,7 @@ export class VideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
videoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -100,6 +102,9 @@ export class VideoIntelligenceServiceClient {
.constructor as typeof VideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -186,6 +191,9 @@ export class VideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -215,7 +223,8 @@ export class VideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1p2beta1
.VideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1p3beta1/streaming_video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const version = require('../../../package.json').version;
export class StreamingVideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -50,6 +51,7 @@ export class StreamingVideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
streamingVideoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;

Expand Down Expand Up @@ -93,6 +95,9 @@ export class StreamingVideoIntelligenceServiceClient {
.constructor as typeof StreamingVideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -160,6 +165,9 @@ export class StreamingVideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -189,7 +197,8 @@ export class StreamingVideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1p3beta1
.StreamingVideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down
11 changes: 10 additions & 1 deletion src/v1p3beta1/video_intelligence_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const version = require('../../../package.json').version;
export class VideoIntelligenceServiceClient {
private _terminated = false;
private _opts: ClientOptions;
private _providedCustomServicePath: boolean;
private _gaxModule: typeof gax | typeof gax.fallback;
private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient;
private _protos: {};
Expand All @@ -56,6 +57,7 @@ export class VideoIntelligenceServiceClient {
longrunning: {},
batching: {},
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: {[name: string]: Function};
operationsClient: gax.OperationsClient;
videoIntelligenceServiceStub?: Promise<{[name: string]: Function}>;
Expand Down Expand Up @@ -100,6 +102,9 @@ export class VideoIntelligenceServiceClient {
.constructor as typeof VideoIntelligenceServiceClient;
const servicePath =
opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
this._providedCustomServicePath = !!(
opts?.servicePath || opts?.apiEndpoint
);
const port = opts?.port || staticMembers.port;
const clientConfig = opts?.clientConfig ?? {};
const fallback =
Expand Down Expand Up @@ -186,6 +191,9 @@ export class VideoIntelligenceServiceClient {
// of calling the API is handled in `google-gax`, with this code
// merely providing the destination and request information.
this.innerApiCalls = {};

// Add a warn function to the client constructor so it can be easily tested.
this.warn = gax.warn;
}

/**
Expand Down Expand Up @@ -215,7 +223,8 @@ export class VideoIntelligenceServiceClient {
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(this._protos as any).google.cloud.videointelligence.v1p3beta1
.VideoIntelligenceService,
this._opts
this._opts,
this._providedCustomServicePath
) as Promise<{[method: string]: Function}>;

// Iterate over each of the methods that the service provides
Expand Down