Skip to content

Commit

Permalink
fix: make request optional in all cases (#335)
Browse files Browse the repository at this point in the history
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent f7676d4 commit d757253
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 110 deletions.
20 changes: 10 additions & 10 deletions packages/google-cloud-talent/src/v4/company_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class CompanyServiceClient {
// -- Service calls --
// -------------------
createCompany(
request: protos.google.cloud.talent.v4.ICreateCompanyRequest,
request?: protos.google.cloud.talent.v4.ICreateCompanyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -361,7 +361,7 @@ export class CompanyServiceClient {
* const [response] = await client.createCompany(request);
*/
createCompany(
request: protos.google.cloud.talent.v4.ICreateCompanyRequest,
request?: protos.google.cloud.talent.v4.ICreateCompanyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -402,7 +402,7 @@ export class CompanyServiceClient {
return this.innerApiCalls.createCompany(request, options, callback);
}
getCompany(
request: protos.google.cloud.talent.v4.IGetCompanyRequest,
request?: protos.google.cloud.talent.v4.IGetCompanyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -450,7 +450,7 @@ export class CompanyServiceClient {
* const [response] = await client.getCompany(request);
*/
getCompany(
request: protos.google.cloud.talent.v4.IGetCompanyRequest,
request?: protos.google.cloud.talent.v4.IGetCompanyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -489,7 +489,7 @@ export class CompanyServiceClient {
return this.innerApiCalls.getCompany(request, options, callback);
}
updateCompany(
request: protos.google.cloud.talent.v4.IUpdateCompanyRequest,
request?: protos.google.cloud.talent.v4.IUpdateCompanyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -541,7 +541,7 @@ export class CompanyServiceClient {
* const [response] = await client.updateCompany(request);
*/
updateCompany(
request: protos.google.cloud.talent.v4.IUpdateCompanyRequest,
request?: protos.google.cloud.talent.v4.IUpdateCompanyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -582,7 +582,7 @@ export class CompanyServiceClient {
return this.innerApiCalls.updateCompany(request, options, callback);
}
deleteCompany(
request: protos.google.cloud.talent.v4.IDeleteCompanyRequest,
request?: protos.google.cloud.talent.v4.IDeleteCompanyRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -631,7 +631,7 @@ export class CompanyServiceClient {
* const [response] = await client.deleteCompany(request);
*/
deleteCompany(
request: protos.google.cloud.talent.v4.IDeleteCompanyRequest,
request?: protos.google.cloud.talent.v4.IDeleteCompanyRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -673,7 +673,7 @@ export class CompanyServiceClient {
}

listCompanies(
request: protos.google.cloud.talent.v4.IListCompaniesRequest,
request?: protos.google.cloud.talent.v4.IListCompaniesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -735,7 +735,7 @@ export class CompanyServiceClient {
* for more details and examples.
*/
listCompanies(
request: protos.google.cloud.talent.v4.IListCompaniesRequest,
request?: protos.google.cloud.talent.v4.IListCompaniesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-talent/src/v4/completion_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class CompletionClient {
// -- Service calls --
// -------------------
completeQuery(
request: protos.google.cloud.talent.v4.ICompleteQueryRequest,
request?: protos.google.cloud.talent.v4.ICompleteQueryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -359,7 +359,7 @@ export class CompletionClient {
* const [response] = await client.completeQuery(request);
*/
completeQuery(
request: protos.google.cloud.talent.v4.ICompleteQueryRequest,
request?: protos.google.cloud.talent.v4.ICompleteQueryRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-talent/src/v4/event_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class EventServiceClient {
// -- Service calls --
// -------------------
createClientEvent(
request: protos.google.cloud.talent.v4.ICreateClientEventRequest,
request?: protos.google.cloud.talent.v4.ICreateClientEventRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -346,7 +346,7 @@ export class EventServiceClient {
* const [response] = await client.createClientEvent(request);
*/
createClientEvent(
request: protos.google.cloud.talent.v4.ICreateClientEventRequest,
request?: protos.google.cloud.talent.v4.ICreateClientEventRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
40 changes: 20 additions & 20 deletions packages/google-cloud-talent/src/v4/job_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class JobServiceClient {
// -- Service calls --
// -------------------
createJob(
request: protos.google.cloud.talent.v4.ICreateJobRequest,
request?: protos.google.cloud.talent.v4.ICreateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -426,7 +426,7 @@ export class JobServiceClient {
* const [response] = await client.createJob(request);
*/
createJob(
request: protos.google.cloud.talent.v4.ICreateJobRequest,
request?: protos.google.cloud.talent.v4.ICreateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -465,7 +465,7 @@ export class JobServiceClient {
return this.innerApiCalls.createJob(request, options, callback);
}
getJob(
request: protos.google.cloud.talent.v4.IGetJobRequest,
request?: protos.google.cloud.talent.v4.IGetJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -514,7 +514,7 @@ export class JobServiceClient {
* const [response] = await client.getJob(request);
*/
getJob(
request: protos.google.cloud.talent.v4.IGetJobRequest,
request?: protos.google.cloud.talent.v4.IGetJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -553,7 +553,7 @@ export class JobServiceClient {
return this.innerApiCalls.getJob(request, options, callback);
}
updateJob(
request: protos.google.cloud.talent.v4.IUpdateJobRequest,
request?: protos.google.cloud.talent.v4.IUpdateJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -608,7 +608,7 @@ export class JobServiceClient {
* const [response] = await client.updateJob(request);
*/
updateJob(
request: protos.google.cloud.talent.v4.IUpdateJobRequest,
request?: protos.google.cloud.talent.v4.IUpdateJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -647,7 +647,7 @@ export class JobServiceClient {
return this.innerApiCalls.updateJob(request, options, callback);
}
deleteJob(
request: protos.google.cloud.talent.v4.IDeleteJobRequest,
request?: protos.google.cloud.talent.v4.IDeleteJobRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -698,7 +698,7 @@ export class JobServiceClient {
* const [response] = await client.deleteJob(request);
*/
deleteJob(
request: protos.google.cloud.talent.v4.IDeleteJobRequest,
request?: protos.google.cloud.talent.v4.IDeleteJobRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -737,7 +737,7 @@ export class JobServiceClient {
return this.innerApiCalls.deleteJob(request, options, callback);
}
searchJobs(
request: protos.google.cloud.talent.v4.ISearchJobsRequest,
request?: protos.google.cloud.talent.v4.ISearchJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1002,7 +1002,7 @@ export class JobServiceClient {
* const [response] = await client.searchJobs(request);
*/
searchJobs(
request: protos.google.cloud.talent.v4.ISearchJobsRequest,
request?: protos.google.cloud.talent.v4.ISearchJobsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1041,7 +1041,7 @@ export class JobServiceClient {
return this.innerApiCalls.searchJobs(request, options, callback);
}
searchJobsForAlert(
request: protos.google.cloud.talent.v4.ISearchJobsRequest,
request?: protos.google.cloud.talent.v4.ISearchJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1311,7 +1311,7 @@ export class JobServiceClient {
* const [response] = await client.searchJobsForAlert(request);
*/
searchJobsForAlert(
request: protos.google.cloud.talent.v4.ISearchJobsRequest,
request?: protos.google.cloud.talent.v4.ISearchJobsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1351,7 +1351,7 @@ export class JobServiceClient {
}

batchCreateJobs(
request: protos.google.cloud.talent.v4.IBatchCreateJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchCreateJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1413,7 +1413,7 @@ export class JobServiceClient {
* const [response] = await operation.promise();
*/
batchCreateJobs(
request: protos.google.cloud.talent.v4.IBatchCreateJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchCreateJobsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1498,7 +1498,7 @@ export class JobServiceClient {
>;
}
batchUpdateJobs(
request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1575,7 +1575,7 @@ export class JobServiceClient {
* const [response] = await operation.promise();
*/
batchUpdateJobs(
request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1660,7 +1660,7 @@ export class JobServiceClient {
>;
}
batchDeleteJobs(
request: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1728,7 +1728,7 @@ export class JobServiceClient {
* const [response] = await operation.promise();
*/
batchDeleteJobs(
request: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest,
request?: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1813,7 +1813,7 @@ export class JobServiceClient {
>;
}
listJobs(
request: protos.google.cloud.talent.v4.IListJobsRequest,
request?: protos.google.cloud.talent.v4.IListJobsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1895,7 +1895,7 @@ export class JobServiceClient {
* for more details and examples.
*/
listJobs(
request: protos.google.cloud.talent.v4.IListJobsRequest,
request?: protos.google.cloud.talent.v4.IListJobsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions packages/google-cloud-talent/src/v4/tenant_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class TenantServiceClient {
// -- Service calls --
// -------------------
createTenant(
request: protos.google.cloud.talent.v4.ICreateTenantRequest,
request?: protos.google.cloud.talent.v4.ICreateTenantRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -364,7 +364,7 @@ export class TenantServiceClient {
* const [response] = await client.createTenant(request);
*/
createTenant(
request: protos.google.cloud.talent.v4.ICreateTenantRequest,
request?: protos.google.cloud.talent.v4.ICreateTenantRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -403,7 +403,7 @@ export class TenantServiceClient {
return this.innerApiCalls.createTenant(request, options, callback);
}
getTenant(
request: protos.google.cloud.talent.v4.IGetTenantRequest,
request?: protos.google.cloud.talent.v4.IGetTenantRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -450,7 +450,7 @@ export class TenantServiceClient {
* const [response] = await client.getTenant(request);
*/
getTenant(
request: protos.google.cloud.talent.v4.IGetTenantRequest,
request?: protos.google.cloud.talent.v4.IGetTenantRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -489,7 +489,7 @@ export class TenantServiceClient {
return this.innerApiCalls.getTenant(request, options, callback);
}
updateTenant(
request: protos.google.cloud.talent.v4.IUpdateTenantRequest,
request?: protos.google.cloud.talent.v4.IUpdateTenantRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -541,7 +541,7 @@ export class TenantServiceClient {
* const [response] = await client.updateTenant(request);
*/
updateTenant(
request: protos.google.cloud.talent.v4.IUpdateTenantRequest,
request?: protos.google.cloud.talent.v4.IUpdateTenantRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -580,7 +580,7 @@ export class TenantServiceClient {
return this.innerApiCalls.updateTenant(request, options, callback);
}
deleteTenant(
request: protos.google.cloud.talent.v4.IDeleteTenantRequest,
request?: protos.google.cloud.talent.v4.IDeleteTenantRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -627,7 +627,7 @@ export class TenantServiceClient {
* const [response] = await client.deleteTenant(request);
*/
deleteTenant(
request: protos.google.cloud.talent.v4.IDeleteTenantRequest,
request?: protos.google.cloud.talent.v4.IDeleteTenantRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -667,7 +667,7 @@ export class TenantServiceClient {
}

listTenants(
request: protos.google.cloud.talent.v4.IListTenantsRequest,
request?: protos.google.cloud.talent.v4.IListTenantsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -722,7 +722,7 @@ export class TenantServiceClient {
* for more details and examples.
*/
listTenants(
request: protos.google.cloud.talent.v4.IListTenantsRequest,
request?: protos.google.cloud.talent.v4.IListTenantsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit d757253

Please sign in to comment.