Skip to content

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: googleapis/googleapis-gen@930b673
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9

feat: added page in TestConfig
PiperOrigin-RevId: 433505834

Source-Link: googleapis/googleapis@e0b4fcf

Source-Link: googleapis/googleapis-gen@6c6eec2
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmM2ZWVjMjRkNjhiZjBhZDQ1ZTY3NjcyYmFmMTY3NDdjNzU4ZjdiMyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Mar 17, 2022
1 parent ae5cb3d commit 2b10c51
Show file tree
Hide file tree
Showing 36 changed files with 55 additions and 128 deletions.
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 packages/google-cloud-dialogflow-cx/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 packages/google-cloud-dialogflow-cx/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 packages/google-cloud-dialogflow-cx/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 packages/google-cloud-dialogflow-cx/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
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
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
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
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
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
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
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
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
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 2b10c51

Please sign in to comment.