Skip to content

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] authored Jun 23, 2021
1 parent 6b1ddca commit 79ac21f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions packages/google-cloud-webrisk/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
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 79ac21f

Please sign in to comment.