Skip to content

Commit 846d7b4

Browse files
docs(samples): add example tags to generated samples (#202)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
1 parent 6d28b74 commit 846d7b4

File tree

226 files changed

+6028
-6300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+6028
-6300
lines changed

packages/google-cloud-dialogflow-cx/linkinator.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 10
9+
"concurrency": 5
1010
}

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.create_agent.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ function main(parent, agent) {
2727
/**
2828
* Required. The agent to create.
2929
*/
30-
// const agent = ''
30+
// const agent = {}
3131

3232
// Imports the Cx library
3333
const {AgentsClient} = require('@google-cloud/dialogflow-cx').v3;
3434

3535
// Instantiates a client
3636
const cxClient = new AgentsClient();
3737

38-
async function createAgent() {
38+
async function callCreateAgent() {
3939
// Construct request
4040
const request = {
4141
parent,
@@ -47,7 +47,7 @@ function main(parent, agent) {
4747
console.log(response);
4848
}
4949

50-
createAgent();
50+
callCreateAgent();
5151
// [END dialogflow_v3_generated_Agents_CreateAgent_async]
5252
}
5353

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.delete_agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main(name) {
3131
// Instantiates a client
3232
const cxClient = new AgentsClient();
3333

34-
async function deleteAgent() {
34+
async function callDeleteAgent() {
3535
// Construct request
3636
const request = {
3737
name,
@@ -42,7 +42,7 @@ function main(name) {
4242
console.log(response);
4343
}
4444

45-
deleteAgent();
45+
callDeleteAgent();
4646
// [END dialogflow_v3_generated_Agents_DeleteAgent_async]
4747
}
4848

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.export_agent.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function main(name) {
2525
*/
2626
// const name = 'abc123'
2727
/**
28-
* Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
28+
* Optional. The Google Cloud Storage (https://cloud.google.com/storage/docs/) URI to
2929
* export the agent to. The format of this URI must be
3030
* `gs://<bucket-name>/<object-name>`.
3131
* If left unspecified, the serialized agent is returned inline.
@@ -44,7 +44,7 @@ function main(name) {
4444
// Instantiates a client
4545
const cxClient = new AgentsClient();
4646

47-
async function exportAgent() {
47+
async function callExportAgent() {
4848
// Construct request
4949
const request = {
5050
name,
@@ -56,7 +56,7 @@ function main(name) {
5656
console.log(response);
5757
}
5858

59-
exportAgent();
59+
callExportAgent();
6060
// [END dialogflow_v3_generated_Agents_ExportAgent_async]
6161
}
6262

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main(name) {
3131
// Instantiates a client
3232
const cxClient = new AgentsClient();
3333

34-
async function getAgent() {
34+
async function callGetAgent() {
3535
// Construct request
3636
const request = {
3737
name,
@@ -42,7 +42,7 @@ function main(name) {
4242
console.log(response);
4343
}
4444

45-
getAgent();
45+
callGetAgent();
4646
// [END dialogflow_v3_generated_Agents_GetAgent_async]
4747
}
4848

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent_validation_result.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function main(name) {
3636
// Instantiates a client
3737
const cxClient = new AgentsClient();
3838

39-
async function getAgentValidationResult() {
39+
async function callGetAgentValidationResult() {
4040
// Construct request
4141
const request = {
4242
name,
@@ -47,7 +47,7 @@ function main(name) {
4747
console.log(response);
4848
}
4949

50-
getAgentValidationResult();
50+
callGetAgentValidationResult();
5151
// [END dialogflow_v3_generated_Agents_GetAgentValidationResult_async]
5252
}
5353

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.list_agents.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main(parent) {
4040
// Instantiates a client
4141
const cxClient = new AgentsClient();
4242

43-
async function listAgents() {
43+
async function callListAgents() {
4444
// Construct request
4545
const request = {
4646
parent,
@@ -53,7 +53,7 @@ function main(parent) {
5353
}
5454
}
5555

56-
listAgents();
56+
callListAgents();
5757
// [END dialogflow_v3_generated_Agents_ListAgents_async]
5858
}
5959

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.restore_agent.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function main(name) {
2525
*/
2626
// const name = 'abc123'
2727
/**
28-
* The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
28+
* The Google Cloud Storage (https://cloud.google.com/storage/docs/) URI
2929
* to restore agent from. The format of this URI must be
3030
* `gs://<bucket-name>/<object-name>`.
3131
*/
@@ -37,15 +37,15 @@ function main(name) {
3737
/**
3838
* Agent restore mode. If not specified, `KEEP` is assumed.
3939
*/
40-
// const restoreOption = ''
40+
// const restoreOption = {}
4141

4242
// Imports the Cx library
4343
const {AgentsClient} = require('@google-cloud/dialogflow-cx').v3;
4444

4545
// Instantiates a client
4646
const cxClient = new AgentsClient();
4747

48-
async function restoreAgent() {
48+
async function callRestoreAgent() {
4949
// Construct request
5050
const request = {
5151
name,
@@ -57,7 +57,7 @@ function main(name) {
5757
console.log(response);
5858
}
5959

60-
restoreAgent();
60+
callRestoreAgent();
6161
// [END dialogflow_v3_generated_Agents_RestoreAgent_async]
6262
}
6363

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.update_agent.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ function main(agent) {
2222
/**
2323
* Required. The agent to update.
2424
*/
25-
// const agent = ''
25+
// const agent = {}
2626
/**
2727
* The mask to control which fields get updated. If the mask is not present,
2828
* all fields will be updated.
2929
*/
30-
// const updateMask = ''
30+
// const updateMask = {}
3131

3232
// Imports the Cx library
3333
const {AgentsClient} = require('@google-cloud/dialogflow-cx').v3;
3434

3535
// Instantiates a client
3636
const cxClient = new AgentsClient();
3737

38-
async function updateAgent() {
38+
async function callUpdateAgent() {
3939
// Construct request
4040
const request = {
4141
agent,
@@ -46,7 +46,7 @@ function main(agent) {
4646
console.log(response);
4747
}
4848

49-
updateAgent();
49+
callUpdateAgent();
5050
// [END dialogflow_v3_generated_Agents_UpdateAgent_async]
5151
}
5252

packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.validate_agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function main(name) {
3535
// Instantiates a client
3636
const cxClient = new AgentsClient();
3737

38-
async function validateAgent() {
38+
async function callValidateAgent() {
3939
// Construct request
4040
const request = {
4141
name,
@@ -46,7 +46,7 @@ function main(name) {
4646
console.log(response);
4747
}
4848

49-
validateAgent();
49+
callValidateAgent();
5050
// [END dialogflow_v3_generated_Agents_ValidateAgent_async]
5151
}
5252

packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.get_changelog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const cxClient = new ChangelogsClient();
3434

35-
async function getChangelog() {
35+
async function callGetChangelog() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -43,7 +43,7 @@ function main(name) {
4343
console.log(response);
4444
}
4545

46-
getChangelog();
46+
callGetChangelog();
4747
// [END dialogflow_v3_generated_Changelogs_GetChangelog_async]
4848
}
4949

packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.list_changelogs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function main(parent) {
6363
// Instantiates a client
6464
const cxClient = new ChangelogsClient();
6565

66-
async function listChangelogs() {
66+
async function callListChangelogs() {
6767
// Construct request
6868
const request = {
6969
parent,
@@ -76,7 +76,7 @@ function main(parent) {
7676
}
7777
}
7878

79-
listChangelogs();
79+
callListChangelogs();
8080
// [END dialogflow_v3_generated_Changelogs_ListChangelogs_async]
8181
}
8282

packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.get_deployment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function main(name) {
2020
* TODO(developer): Uncomment these variables before running the sample.
2121
*/
2222
/**
23-
* Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
23+
* Required. The name of the Deployment google.cloud.dialogflow.cx.v3.Deployment.
2424
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
2525
* ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
2626
*/
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const cxClient = new DeploymentsClient();
3434

35-
async function getDeployment() {
35+
async function callGetDeployment() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -43,7 +43,7 @@ function main(name) {
4343
console.log(response);
4444
}
4545

46-
getDeployment();
46+
callGetDeployment();
4747
// [END dialogflow_v3_generated_Deployments_GetDeployment_async]
4848
}
4949

packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.list_deployments.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function main(parent) {
2020
* TODO(developer): Uncomment these variables before running the sample.
2121
*/
2222
/**
23-
* Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
23+
* Required. The Environment google.cloud.dialogflow.cx.v3.Environment to list all environments for.
2424
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
2525
* ID>/environments/<Environment ID>`.
2626
*/
@@ -41,7 +41,7 @@ function main(parent) {
4141
// Instantiates a client
4242
const cxClient = new DeploymentsClient();
4343

44-
async function listDeployments() {
44+
async function callListDeployments() {
4545
// Construct request
4646
const request = {
4747
parent,
@@ -54,7 +54,7 @@ function main(parent) {
5454
}
5555
}
5656

57-
listDeployments();
57+
callListDeployments();
5858
// [END dialogflow_v3_generated_Deployments_ListDeployments_async]
5959
}
6060

packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.create_entity_type.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ function main(parent, entityType) {
2727
/**
2828
* Required. The entity type to create.
2929
*/
30-
// const entityType = ''
30+
// const entityType = {}
3131
/**
3232
* The language of the following fields in `entity_type`:
3333
* * `EntityType.entities.value`
3434
* * `EntityType.entities.synonyms`
3535
* * `EntityType.excluded_phrases.value`
3636
* If not specified, the agent's default language is used.
37-
* [Many
38-
* languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
37+
* Many
38+
* languages (https://cloud.google.com/dialogflow/cx/docs/reference/language)
3939
* are supported.
4040
* Note: languages must be enabled in the agent before they can be used.
4141
*/
@@ -47,7 +47,7 @@ function main(parent, entityType) {
4747
// Instantiates a client
4848
const cxClient = new EntityTypesClient();
4949

50-
async function createEntityType() {
50+
async function callCreateEntityType() {
5151
// Construct request
5252
const request = {
5353
parent,
@@ -59,7 +59,7 @@ function main(parent, entityType) {
5959
console.log(response);
6060
}
6161

62-
createEntityType();
62+
callCreateEntityType();
6363
// [END dialogflow_v3_generated_EntityTypes_CreateEntityType_async]
6464
}
6565

packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.delete_entity_type.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function main(name) {
3232
* indicating the referencing resources.
3333
* * If `force` is set to true, Dialogflow will remove the entity type, as
3434
* well as any references to the entity type (i.e. Page
35-
* [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to
36-
* '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type
35+
* parameter google.cloud.dialogflow.cx.v3.Form.Parameter of the entity type will be changed to
36+
* '@sys.any' and intent parameter google.cloud.dialogflow.cx.v3.Intent.Parameter of the entity type
3737
* will be removed).
3838
*/
3939
// const force = true
@@ -44,7 +44,7 @@ function main(name) {
4444
// Instantiates a client
4545
const cxClient = new EntityTypesClient();
4646

47-
async function deleteEntityType() {
47+
async function callDeleteEntityType() {
4848
// Construct request
4949
const request = {
5050
name,
@@ -55,7 +55,7 @@ function main(name) {
5555
console.log(response);
5656
}
5757

58-
deleteEntityType();
58+
callDeleteEntityType();
5959
// [END dialogflow_v3_generated_EntityTypes_DeleteEntityType_async]
6060
}
6161

0 commit comments

Comments
 (0)