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

Commit

Permalink
chore: update v2.14.2 gapic-generator-typescript (#241)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Committer: @summer-ji-eng
PiperOrigin-RevId: 434859890

Source-Link: googleapis/googleapis@bc2432d

Source-Link: https://github.com/googleapis/googleapis-gen/commit/930b673103e92523f8cfed38decd7d3afae8ebe7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9

feat: added page in TestConfig
PiperOrigin-RevId: 433505834

Source-Link: googleapis/googleapis@e0b4fcf

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6c6eec24d68bf0ad45e67672baf16747c758f7b3
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmM2ZWVjMjRkNjhiZjBhZDQ1ZTY3NjcyYmFmMTY3NDdjNzU4ZjdiMyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Mar 17, 2022
1 parent 283c389 commit 7adaf67
Show file tree
Hide file tree
Showing 36 changed files with 55 additions and 128 deletions.
19 changes: 18 additions & 1 deletion protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,29 @@ message TestConfig {
// Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;

// Flow name. If not set, default start flow is assumed.
// Flow name to start the test case with.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/flows/<Flow ID>`.
//
// Only one of `flow` and `page` should be set to indicate the starting point
// of the test case. If both are set, `page` takes precedence over `flow`. If
// neither is set, the test case will start with start page on the default
// start flow.
string flow = 2 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/Flow"
}];

// The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/flows/<Flow ID>/pages/<Page ID>`.
//
// Only one of `flow` and `page` should be set to indicate the starting point
// of the test case. If both are set, `page` takes precedence over `flow`. If
// neither is set, the test case will start with start page on the default
// start flow.
string page = 3 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/Page"
}];
}

// One interaction between a human and virtual agent. The human provides some
Expand Down
6 changes: 6 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions test/gapic_agents_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ describe('v3.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getAgent(request), expectedError);
Expand Down Expand Up @@ -484,7 +483,6 @@ describe('v3.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createAgent(request), expectedError);
Expand Down Expand Up @@ -615,7 +613,6 @@ describe('v3.AgentsClient', () => {
);
request.agent = {};
request.agent.name = '';
const expectedHeaderRequestParams = 'agent.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateAgent(request), expectedError);
Expand Down Expand Up @@ -742,7 +739,6 @@ describe('v3.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteAgent(request), expectedError);
Expand Down Expand Up @@ -869,7 +865,6 @@ describe('v3.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.ValidateAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.validateAgent(request), expectedError);
Expand Down Expand Up @@ -1000,7 +995,6 @@ describe('v3.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(
Expand Down
6 changes: 0 additions & 6 deletions test/gapic_agents_v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ describe('v3beta1.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getAgent(request), expectedError);
Expand Down Expand Up @@ -484,7 +483,6 @@ describe('v3beta1.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createAgent(request), expectedError);
Expand Down Expand Up @@ -615,7 +613,6 @@ describe('v3beta1.AgentsClient', () => {
);
request.agent = {};
request.agent.name = '';
const expectedHeaderRequestParams = 'agent.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateAgent(request), expectedError);
Expand Down Expand Up @@ -742,7 +739,6 @@ describe('v3beta1.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteAgent(request), expectedError);
Expand Down Expand Up @@ -869,7 +865,6 @@ describe('v3beta1.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.validateAgent(request), expectedError);
Expand Down Expand Up @@ -1000,7 +995,6 @@ describe('v3beta1.AgentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(
Expand Down
1 change: 0 additions & 1 deletion test/gapic_changelogs_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3.ChangelogsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetChangelogRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getChangelog(request), expectedError);
Expand Down
1 change: 0 additions & 1 deletion test/gapic_changelogs_v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3beta1.ChangelogsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getChangelog(request), expectedError);
Expand Down
1 change: 0 additions & 1 deletion test/gapic_deployments_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3.DeploymentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetDeploymentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getDeployment(request), expectedError);
Expand Down
1 change: 0 additions & 1 deletion test/gapic_deployments_v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3beta1.DeploymentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getDeployment(request), expectedError);
Expand Down
4 changes: 0 additions & 4 deletions test/gapic_entity_types_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getEntityType(request), expectedError);
Expand Down Expand Up @@ -455,7 +454,6 @@ describe('v3.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createEntityType(request), expectedError);
Expand Down Expand Up @@ -586,7 +584,6 @@ describe('v3.EntityTypesClient', () => {
);
request.entityType = {};
request.entityType.name = '';
const expectedHeaderRequestParams = 'entity_type.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateEntityType(request), expectedError);
Expand Down Expand Up @@ -713,7 +710,6 @@ describe('v3.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteEntityType(request), expectedError);
Expand Down
4 changes: 0 additions & 4 deletions test/gapic_entity_types_v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v3beta1.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getEntityType(request), expectedError);
Expand Down Expand Up @@ -455,7 +454,6 @@ describe('v3beta1.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createEntityType(request), expectedError);
Expand Down Expand Up @@ -586,7 +584,6 @@ describe('v3beta1.EntityTypesClient', () => {
);
request.entityType = {};
request.entityType.name = '';
const expectedHeaderRequestParams = 'entity_type.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateEntityType(request), expectedError);
Expand Down Expand Up @@ -713,7 +710,6 @@ describe('v3beta1.EntityTypesClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteEntityType(request), expectedError);
Expand Down
2 changes: 0 additions & 2 deletions test/gapic_environments_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ describe('v3.EnvironmentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getEnvironment(request), expectedError);
Expand Down Expand Up @@ -487,7 +486,6 @@ describe('v3.EnvironmentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteEnvironment(request), expectedError);
Expand Down
2 changes: 0 additions & 2 deletions test/gapic_environments_v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ describe('v3beta1.EnvironmentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getEnvironment(request), expectedError);
Expand Down Expand Up @@ -489,7 +488,6 @@ describe('v3beta1.EnvironmentsClient', () => {
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteEnvironment(request), expectedError);
Expand Down
Loading

0 comments on commit 7adaf67

Please sign in to comment.