Skip to content

Commit

Permalink
fix: make request optional in all cases (#830)
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 25, 2021
1 parent aeba59e commit 63b465b
Show file tree
Hide file tree
Showing 30 changed files with 366 additions and 336 deletions.
36 changes: 18 additions & 18 deletions packages/google-cloud-dialogflow/src/v2/agents_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export class AgentsClient {
// -- Service calls --
// -------------------
getAgent(
request: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -539,7 +539,7 @@ export class AgentsClient {
* const [response] = await client.getAgent(request);
*/
getAgent(
request: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -578,7 +578,7 @@ export class AgentsClient {
return this.innerApiCalls.getAgent(request, options, callback);
}
setAgent(
request: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
request?: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -628,7 +628,7 @@ export class AgentsClient {
* const [response] = await client.setAgent(request);
*/
setAgent(
request: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
request?: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -667,7 +667,7 @@ export class AgentsClient {
return this.innerApiCalls.setAgent(request, options, callback);
}
deleteAgent(
request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -712,7 +712,7 @@ export class AgentsClient {
* const [response] = await client.deleteAgent(request);
*/
deleteAgent(
request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -753,7 +753,7 @@ export class AgentsClient {
return this.innerApiCalls.deleteAgent(request, options, callback);
}
getValidationResult(
request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
request?: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -809,7 +809,7 @@ export class AgentsClient {
* const [response] = await client.getValidationResult(request);
*/
getValidationResult(
request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
request?: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -853,7 +853,7 @@ export class AgentsClient {
}

trainAgent(
request: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
request?: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -915,7 +915,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
trainAgent(
request: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
request?: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -997,7 +997,7 @@ export class AgentsClient {
>;
}
exportAgent(
request: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1059,7 +1059,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
exportAgent(
request: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1144,7 +1144,7 @@ export class AgentsClient {
>;
}
importAgent(
request: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1221,7 +1221,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
importAgent(
request: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1303,7 +1303,7 @@ export class AgentsClient {
>;
}
restoreAgent(
request: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1379,7 +1379,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
restoreAgent(
request: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
request?: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1461,7 +1461,7 @@ export class AgentsClient {
>;
}
searchAgents(
request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1524,7 +1524,7 @@ export class AgentsClient {
* for more details and examples.
*/
searchAgents(
request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class AnswerRecordsClient {
// -- Service calls --
// -------------------
updateAnswerRecord(
request: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -472,7 +472,7 @@ export class AnswerRecordsClient {
* const [response] = await client.updateAnswerRecord(request);
*/
updateAnswerRecord(
request: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -516,7 +516,7 @@ export class AnswerRecordsClient {
}

listAnswerRecords(
request: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
request?: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -586,7 +586,7 @@ export class AnswerRecordsClient {
* for more details and examples.
*/
listAnswerRecords(
request: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
request?: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
24 changes: 12 additions & 12 deletions packages/google-cloud-dialogflow/src/v2/contexts_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class ContextsClient {
// -- Service calls --
// -------------------
getContext(
request: protos.google.cloud.dialogflow.v2.IGetContextRequest,
request?: protos.google.cloud.dialogflow.v2.IGetContextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -478,7 +478,7 @@ export class ContextsClient {
* const [response] = await client.getContext(request);
*/
getContext(
request: protos.google.cloud.dialogflow.v2.IGetContextRequest,
request?: protos.google.cloud.dialogflow.v2.IGetContextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -519,7 +519,7 @@ export class ContextsClient {
return this.innerApiCalls.getContext(request, options, callback);
}
createContext(
request: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
request?: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -576,7 +576,7 @@ export class ContextsClient {
* const [response] = await client.createContext(request);
*/
createContext(
request: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
request?: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -619,7 +619,7 @@ export class ContextsClient {
return this.innerApiCalls.createContext(request, options, callback);
}
updateContext(
request: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -669,7 +669,7 @@ export class ContextsClient {
* const [response] = await client.updateContext(request);
*/
updateContext(
request: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -712,7 +712,7 @@ export class ContextsClient {
return this.innerApiCalls.updateContext(request, options, callback);
}
deleteContext(
request: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -765,7 +765,7 @@ export class ContextsClient {
* const [response] = await client.deleteContext(request);
*/
deleteContext(
request: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -808,7 +808,7 @@ export class ContextsClient {
return this.innerApiCalls.deleteContext(request, options, callback);
}
deleteAllContexts(
request: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -861,7 +861,7 @@ export class ContextsClient {
* const [response] = await client.deleteAllContexts(request);
*/
deleteAllContexts(
request: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -905,7 +905,7 @@ export class ContextsClient {
}

listContexts(
request: protos.google.cloud.dialogflow.v2.IListContextsRequest,
request?: protos.google.cloud.dialogflow.v2.IListContextsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -966,7 +966,7 @@ export class ContextsClient {
* for more details and examples.
*/
listContexts(
request: protos.google.cloud.dialogflow.v2.IListContextsRequest,
request?: protos.google.cloud.dialogflow.v2.IListContextsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export class ConversationProfilesClient {
// -- Service calls --
// -------------------
getConversationProfile(
request: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -478,7 +478,7 @@ export class ConversationProfilesClient {
* const [response] = await client.getConversationProfile(request);
*/
getConversationProfile(
request: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -528,7 +528,7 @@ export class ConversationProfilesClient {
);
}
createConversationProfile(
request: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -586,7 +586,7 @@ export class ConversationProfilesClient {
* const [response] = await client.createConversationProfile(request);
*/
createConversationProfile(
request: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -636,7 +636,7 @@ export class ConversationProfilesClient {
);
}
updateConversationProfile(
request: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -693,7 +693,7 @@ export class ConversationProfilesClient {
* const [response] = await client.updateConversationProfile(request);
*/
updateConversationProfile(
request: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -743,7 +743,7 @@ export class ConversationProfilesClient {
);
}
deleteConversationProfile(
request: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -796,7 +796,7 @@ export class ConversationProfilesClient {
* const [response] = await client.deleteConversationProfile(request);
*/
deleteConversationProfile(
request: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
request?: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -847,7 +847,7 @@ export class ConversationProfilesClient {
}

listConversationProfiles(
request: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
request?: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -904,7 +904,7 @@ export class ConversationProfilesClient {
* for more details and examples.
*/
listConversationProfiles(
request: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
request?: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit 63b465b

Please sign in to comment.