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

Commit

Permalink
fix: make request optional in all cases (#257)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 380641501
  • Loading branch information
gcf-owl-bot[bot] committed Jun 23, 2021
1 parent b476cf7 commit e25d02e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions src/v1/web_risk_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class WebRiskServiceClient {
// -- Service calls --
// -------------------
computeThreatListDiff(
request: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest,
request?: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -344,7 +344,7 @@ export class WebRiskServiceClient {
* const [response] = await client.computeThreatListDiff(request);
*/
computeThreatListDiff(
request: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest,
request?: protos.google.cloud.webrisk.v1.IComputeThreatListDiffRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -381,7 +381,7 @@ export class WebRiskServiceClient {
return this.innerApiCalls.computeThreatListDiff(request, options, callback);
}
searchUris(
request: protos.google.cloud.webrisk.v1.ISearchUrisRequest,
request?: protos.google.cloud.webrisk.v1.ISearchUrisRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -431,7 +431,7 @@ export class WebRiskServiceClient {
* const [response] = await client.searchUris(request);
*/
searchUris(
request: protos.google.cloud.webrisk.v1.ISearchUrisRequest,
request?: protos.google.cloud.webrisk.v1.ISearchUrisRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -464,7 +464,7 @@ export class WebRiskServiceClient {
return this.innerApiCalls.searchUris(request, options, callback);
}
searchHashes(
request: protos.google.cloud.webrisk.v1.ISearchHashesRequest,
request?: protos.google.cloud.webrisk.v1.ISearchHashesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -515,7 +515,7 @@ export class WebRiskServiceClient {
* const [response] = await client.searchHashes(request);
*/
searchHashes(
request: protos.google.cloud.webrisk.v1.ISearchHashesRequest,
request?: protos.google.cloud.webrisk.v1.ISearchHashesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -550,7 +550,7 @@ export class WebRiskServiceClient {
return this.innerApiCalls.searchHashes(request, options, callback);
}
createSubmission(
request: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest,
request?: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -606,7 +606,7 @@ export class WebRiskServiceClient {
* const [response] = await client.createSubmission(request);
*/
createSubmission(
request: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest,
request?: protos.google.cloud.webrisk.v1.ICreateSubmissionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
12 changes: 6 additions & 6 deletions src/v1beta1/web_risk_service_v1_beta1_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class WebRiskServiceV1Beta1Client {
// -- Service calls --
// -------------------
computeThreatListDiff(
request: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest,
request?: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -330,7 +330,7 @@ export class WebRiskServiceV1Beta1Client {
* const [response] = await client.computeThreatListDiff(request);
*/
computeThreatListDiff(
request: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest,
request?: protos.google.cloud.webrisk.v1beta1.IComputeThreatListDiffRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -370,7 +370,7 @@ export class WebRiskServiceV1Beta1Client {
return this.innerApiCalls.computeThreatListDiff(request, options, callback);
}
searchUris(
request: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest,
request?: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -416,7 +416,7 @@ export class WebRiskServiceV1Beta1Client {
* const [response] = await client.searchUris(request);
*/
searchUris(
request: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest,
request?: protos.google.cloud.webrisk.v1beta1.ISearchUrisRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -451,7 +451,7 @@ export class WebRiskServiceV1Beta1Client {
return this.innerApiCalls.searchUris(request, options, callback);
}
searchHashes(
request: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest,
request?: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -506,7 +506,7 @@ export class WebRiskServiceV1Beta1Client {
* const [response] = await client.searchHashes(request);
*/
searchHashes(
request: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest,
request?: protos.google.cloud.webrisk.v1beta1.ISearchHashesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down

0 comments on commit e25d02e

Please sign in to comment.