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

Commit 7adaf67

Browse files
chore: update v2.14.2 gapic-generator-typescript (#241)
- [ ] 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
1 parent 283c389 commit 7adaf67

36 files changed

+55
-128
lines changed

protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto

+18-1
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,29 @@ message TestConfig {
270270
// Session parameters to be compared when calculating differences.
271271
repeated string tracking_parameters = 1;
272272

273-
// Flow name. If not set, default start flow is assumed.
273+
// Flow name to start the test case with.
274274
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
275275
// ID>/flows/<Flow ID>`.
276+
//
277+
// Only one of `flow` and `page` should be set to indicate the starting point
278+
// of the test case. If both are set, `page` takes precedence over `flow`. If
279+
// neither is set, the test case will start with start page on the default
280+
// start flow.
276281
string flow = 2 [(google.api.resource_reference) = {
277282
type: "dialogflow.googleapis.com/Flow"
278283
}];
284+
285+
// The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
286+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
287+
// ID>/flows/<Flow ID>/pages/<Page ID>`.
288+
//
289+
// Only one of `flow` and `page` should be set to indicate the starting point
290+
// of the test case. If both are set, `page` takes precedence over `flow`. If
291+
// neither is set, the test case will start with start page on the default
292+
// start flow.
293+
string page = 3 [(google.api.resource_reference) = {
294+
type: "dialogflow.googleapis.com/Page"
295+
}];
279296
}
280297

281298
// One interaction between a human and virtual agent. The human provides some

protos/protos.d.ts

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

+24-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/gapic_agents_v3.ts

-6
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ describe('v3.AgentsClient', () => {
357357
new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest()
358358
);
359359
request.name = '';
360-
const expectedHeaderRequestParams = 'name=';
361360
const expectedError = new Error('The client has already been closed.');
362361
client.close();
363362
await assert.rejects(client.getAgent(request), expectedError);
@@ -484,7 +483,6 @@ describe('v3.AgentsClient', () => {
484483
new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest()
485484
);
486485
request.parent = '';
487-
const expectedHeaderRequestParams = 'parent=';
488486
const expectedError = new Error('The client has already been closed.');
489487
client.close();
490488
await assert.rejects(client.createAgent(request), expectedError);
@@ -615,7 +613,6 @@ describe('v3.AgentsClient', () => {
615613
);
616614
request.agent = {};
617615
request.agent.name = '';
618-
const expectedHeaderRequestParams = 'agent.name=';
619616
const expectedError = new Error('The client has already been closed.');
620617
client.close();
621618
await assert.rejects(client.updateAgent(request), expectedError);
@@ -742,7 +739,6 @@ describe('v3.AgentsClient', () => {
742739
new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest()
743740
);
744741
request.name = '';
745-
const expectedHeaderRequestParams = 'name=';
746742
const expectedError = new Error('The client has already been closed.');
747743
client.close();
748744
await assert.rejects(client.deleteAgent(request), expectedError);
@@ -869,7 +865,6 @@ describe('v3.AgentsClient', () => {
869865
new protos.google.cloud.dialogflow.cx.v3.ValidateAgentRequest()
870866
);
871867
request.name = '';
872-
const expectedHeaderRequestParams = 'name=';
873868
const expectedError = new Error('The client has already been closed.');
874869
client.close();
875870
await assert.rejects(client.validateAgent(request), expectedError);
@@ -1000,7 +995,6 @@ describe('v3.AgentsClient', () => {
1000995
new protos.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest()
1001996
);
1002997
request.name = '';
1003-
const expectedHeaderRequestParams = 'name=';
1004998
const expectedError = new Error('The client has already been closed.');
1005999
client.close();
10061000
await assert.rejects(

test/gapic_agents_v3beta1.ts

-6
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ describe('v3beta1.AgentsClient', () => {
357357
new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest()
358358
);
359359
request.name = '';
360-
const expectedHeaderRequestParams = 'name=';
361360
const expectedError = new Error('The client has already been closed.');
362361
client.close();
363362
await assert.rejects(client.getAgent(request), expectedError);
@@ -484,7 +483,6 @@ describe('v3beta1.AgentsClient', () => {
484483
new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest()
485484
);
486485
request.parent = '';
487-
const expectedHeaderRequestParams = 'parent=';
488486
const expectedError = new Error('The client has already been closed.');
489487
client.close();
490488
await assert.rejects(client.createAgent(request), expectedError);
@@ -615,7 +613,6 @@ describe('v3beta1.AgentsClient', () => {
615613
);
616614
request.agent = {};
617615
request.agent.name = '';
618-
const expectedHeaderRequestParams = 'agent.name=';
619616
const expectedError = new Error('The client has already been closed.');
620617
client.close();
621618
await assert.rejects(client.updateAgent(request), expectedError);
@@ -742,7 +739,6 @@ describe('v3beta1.AgentsClient', () => {
742739
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest()
743740
);
744741
request.name = '';
745-
const expectedHeaderRequestParams = 'name=';
746742
const expectedError = new Error('The client has already been closed.');
747743
client.close();
748744
await assert.rejects(client.deleteAgent(request), expectedError);
@@ -869,7 +865,6 @@ describe('v3beta1.AgentsClient', () => {
869865
new protos.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest()
870866
);
871867
request.name = '';
872-
const expectedHeaderRequestParams = 'name=';
873868
const expectedError = new Error('The client has already been closed.');
874869
client.close();
875870
await assert.rejects(client.validateAgent(request), expectedError);
@@ -1000,7 +995,6 @@ describe('v3beta1.AgentsClient', () => {
1000995
new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest()
1001996
);
1002997
request.name = '';
1003-
const expectedHeaderRequestParams = 'name=';
1004998
const expectedError = new Error('The client has already been closed.');
1005999
client.close();
10061000
await assert.rejects(

test/gapic_changelogs_v3.ts

-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3.ChangelogsClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3.GetChangelogRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getChangelog(request), expectedError);

test/gapic_changelogs_v3beta1.ts

-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3beta1.ChangelogsClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getChangelog(request), expectedError);

test/gapic_deployments_v3.ts

-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3.DeploymentsClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3.GetDeploymentRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getDeployment(request), expectedError);

test/gapic_deployments_v3beta1.ts

-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3beta1.DeploymentsClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getDeployment(request), expectedError);

test/gapic_entity_types_v3.ts

-4
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3.EntityTypesClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getEntityType(request), expectedError);
@@ -455,7 +454,6 @@ describe('v3.EntityTypesClient', () => {
455454
new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest()
456455
);
457456
request.parent = '';
458-
const expectedHeaderRequestParams = 'parent=';
459457
const expectedError = new Error('The client has already been closed.');
460458
client.close();
461459
await assert.rejects(client.createEntityType(request), expectedError);
@@ -586,7 +584,6 @@ describe('v3.EntityTypesClient', () => {
586584
);
587585
request.entityType = {};
588586
request.entityType.name = '';
589-
const expectedHeaderRequestParams = 'entity_type.name=';
590587
const expectedError = new Error('The client has already been closed.');
591588
client.close();
592589
await assert.rejects(client.updateEntityType(request), expectedError);
@@ -713,7 +710,6 @@ describe('v3.EntityTypesClient', () => {
713710
new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest()
714711
);
715712
request.name = '';
716-
const expectedHeaderRequestParams = 'name=';
717713
const expectedError = new Error('The client has already been closed.');
718714
client.close();
719715
await assert.rejects(client.deleteEntityType(request), expectedError);

test/gapic_entity_types_v3beta1.ts

-4
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe('v3beta1.EntityTypesClient', () => {
328328
new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest()
329329
);
330330
request.name = '';
331-
const expectedHeaderRequestParams = 'name=';
332331
const expectedError = new Error('The client has already been closed.');
333332
client.close();
334333
await assert.rejects(client.getEntityType(request), expectedError);
@@ -455,7 +454,6 @@ describe('v3beta1.EntityTypesClient', () => {
455454
new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest()
456455
);
457456
request.parent = '';
458-
const expectedHeaderRequestParams = 'parent=';
459457
const expectedError = new Error('The client has already been closed.');
460458
client.close();
461459
await assert.rejects(client.createEntityType(request), expectedError);
@@ -586,7 +584,6 @@ describe('v3beta1.EntityTypesClient', () => {
586584
);
587585
request.entityType = {};
588586
request.entityType.name = '';
589-
const expectedHeaderRequestParams = 'entity_type.name=';
590587
const expectedError = new Error('The client has already been closed.');
591588
client.close();
592589
await assert.rejects(client.updateEntityType(request), expectedError);
@@ -713,7 +710,6 @@ describe('v3beta1.EntityTypesClient', () => {
713710
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest()
714711
);
715712
request.name = '';
716-
const expectedHeaderRequestParams = 'name=';
717713
const expectedError = new Error('The client has already been closed.');
718714
client.close();
719715
await assert.rejects(client.deleteEntityType(request), expectedError);

test/gapic_environments_v3.ts

-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ describe('v3.EnvironmentsClient', () => {
360360
new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest()
361361
);
362362
request.name = '';
363-
const expectedHeaderRequestParams = 'name=';
364363
const expectedError = new Error('The client has already been closed.');
365364
client.close();
366365
await assert.rejects(client.getEnvironment(request), expectedError);
@@ -487,7 +486,6 @@ describe('v3.EnvironmentsClient', () => {
487486
new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest()
488487
);
489488
request.name = '';
490-
const expectedHeaderRequestParams = 'name=';
491489
const expectedError = new Error('The client has already been closed.');
492490
client.close();
493491
await assert.rejects(client.deleteEnvironment(request), expectedError);

test/gapic_environments_v3beta1.ts

-2
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ describe('v3beta1.EnvironmentsClient', () => {
362362
new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest()
363363
);
364364
request.name = '';
365-
const expectedHeaderRequestParams = 'name=';
366365
const expectedError = new Error('The client has already been closed.');
367366
client.close();
368367
await assert.rejects(client.getEnvironment(request), expectedError);
@@ -489,7 +488,6 @@ describe('v3beta1.EnvironmentsClient', () => {
489488
new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest()
490489
);
491490
request.name = '';
492-
const expectedHeaderRequestParams = 'name=';
493491
const expectedError = new Error('The client has already been closed.');
494492
client.close();
495493
await assert.rejects(client.deleteEnvironment(request), expectedError);

0 commit comments

Comments
 (0)