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 (#139)
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: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent 8579716 commit ad950f0
Show file tree
Hide file tree
Showing 28 changed files with 360 additions and 360 deletions.
36 changes: 18 additions & 18 deletions src/v3/agents_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export class AgentsClient {
// -- Service calls --
// -------------------
getAgent(
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -457,7 +457,7 @@ export class AgentsClient {
* const [response] = await client.getAgent(request);
*/
getAgent(
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -498,7 +498,7 @@ export class AgentsClient {
return this.innerApiCalls.getAgent(request, options, callback);
}
createAgent(
request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -549,7 +549,7 @@ export class AgentsClient {
* const [response] = await client.createAgent(request);
*/
createAgent(
request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -592,7 +592,7 @@ export class AgentsClient {
return this.innerApiCalls.createAgent(request, options, callback);
}
updateAgent(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -643,7 +643,7 @@ export class AgentsClient {
* const [response] = await client.updateAgent(request);
*/
updateAgent(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -686,7 +686,7 @@ export class AgentsClient {
return this.innerApiCalls.updateAgent(request, options, callback);
}
deleteAgent(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -735,7 +735,7 @@ export class AgentsClient {
* const [response] = await client.deleteAgent(request);
*/
deleteAgent(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -778,7 +778,7 @@ export class AgentsClient {
return this.innerApiCalls.deleteAgent(request, options, callback);
}
validateAgent(
request: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -831,7 +831,7 @@ export class AgentsClient {
* const [response] = await client.validateAgent(request);
*/
validateAgent(
request: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -874,7 +874,7 @@ export class AgentsClient {
return this.innerApiCalls.validateAgent(request, options, callback);
}
getAgentValidationResult(
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -930,7 +930,7 @@ export class AgentsClient {
* const [response] = await client.getAgentValidationResult(request);
*/
getAgentValidationResult(
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -981,7 +981,7 @@ export class AgentsClient {
}

exportAgent(
request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1047,7 +1047,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
exportAgent(
request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1132,7 +1132,7 @@ export class AgentsClient {
>;
}
restoreAgent(
request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1200,7 +1200,7 @@ export class AgentsClient {
* const [response] = await operation.promise();
*/
restoreAgent(
request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export class AgentsClient {
>;
}
listAgents(
request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1339,7 +1339,7 @@ export class AgentsClient {
* for more details and examples.
*/
listAgents(
request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions src/v3/entity_types_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class EntityTypesClient {
// -- Service calls --
// -------------------
getEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -428,7 +428,7 @@ export class EntityTypesClient {
* const [response] = await client.getEntityType(request);
*/
getEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -471,7 +471,7 @@ export class EntityTypesClient {
return this.innerApiCalls.getEntityType(request, options, callback);
}
createEntityType(
request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -534,7 +534,7 @@ export class EntityTypesClient {
* const [response] = await client.createEntityType(request);
*/
createEntityType(
request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -577,7 +577,7 @@ export class EntityTypesClient {
return this.innerApiCalls.createEntityType(request, options, callback);
}
updateEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -639,7 +639,7 @@ export class EntityTypesClient {
* const [response] = await client.updateEntityType(request);
*/
updateEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -682,7 +682,7 @@ export class EntityTypesClient {
return this.innerApiCalls.updateEntityType(request, options, callback);
}
deleteEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -743,7 +743,7 @@ export class EntityTypesClient {
* const [response] = await client.deleteEntityType(request);
*/
deleteEntityType(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -787,7 +787,7 @@ export class EntityTypesClient {
}

listEntityTypes(
request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -857,7 +857,7 @@ export class EntityTypesClient {
* for more details and examples.
*/
listEntityTypes(
request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
32 changes: 16 additions & 16 deletions src/v3/environments_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class EnvironmentsClient {
// -- Service calls --
// -------------------
getEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -482,7 +482,7 @@ export class EnvironmentsClient {
* const [response] = await client.getEnvironment(request);
*/
getEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -525,7 +525,7 @@ export class EnvironmentsClient {
return this.innerApiCalls.getEnvironment(request, options, callback);
}
deleteEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -578,7 +578,7 @@ export class EnvironmentsClient {
* const [response] = await client.deleteEnvironment(request);
*/
deleteEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -625,7 +625,7 @@ export class EnvironmentsClient {
}

createEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -684,7 +684,7 @@ export class EnvironmentsClient {
* const [response] = await operation.promise();
*/
createEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -769,7 +769,7 @@ export class EnvironmentsClient {
>;
}
updateEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -827,7 +827,7 @@ export class EnvironmentsClient {
* const [response] = await operation.promise();
*/
updateEnvironment(
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -912,7 +912,7 @@ export class EnvironmentsClient {
>;
}
runContinuousTest(
request: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -969,7 +969,7 @@ export class EnvironmentsClient {
* const [response] = await operation.promise();
*/
runContinuousTest(
request: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1054,7 +1054,7 @@ export class EnvironmentsClient {
>;
}
listEnvironments(
request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1111,7 +1111,7 @@ export class EnvironmentsClient {
* for more details and examples.
*/
listEnvironments(
request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1251,7 +1251,7 @@ export class EnvironmentsClient {
) as AsyncIterable<protos.google.cloud.dialogflow.cx.v3.IEnvironment>;
}
lookupEnvironmentHistory(
request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1309,7 +1309,7 @@ export class EnvironmentsClient {
* for more details and examples.
*/
lookupEnvironmentHistory(
request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1455,7 +1455,7 @@ export class EnvironmentsClient {
) as AsyncIterable<protos.google.cloud.dialogflow.cx.v3.IEnvironment>;
}
listContinuousTestResults(
request: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1513,7 +1513,7 @@ export class EnvironmentsClient {
* for more details and examples.
*/
listContinuousTestResults(
request: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
request?: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit ad950f0

Please sign in to comment.