Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#897)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 10, 2021
1 parent 50614f8 commit 9577c17
Show file tree
Hide file tree
Showing 201 changed files with 5,398 additions and 5,654 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-dialogflow/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
"concurrency": 10
"concurrency": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function deleteAgent() {
async function callDeleteAgent() {
// Construct request
const request = {
parent,
Expand All @@ -42,7 +42,7 @@ function main(parent) {
console.log(response);
}

deleteAgent();
callDeleteAgent();
// [END dialogflow_v2_generated_Agents_DeleteAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function main(parent, agentUri) {
*/
// const parent = 'abc123'
/**
* Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
* Required. The Google Cloud Storage (https://cloud.google.com/storage/docs/)
* URI to export the agent to.
* The format of this URI must be `gs://<bucket-name>/<object-name>`.
* If left unspecified, the serialized agent is returned inline.
Expand All @@ -38,7 +38,7 @@ function main(parent, agentUri) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function exportAgent() {
async function callExportAgent() {
// Construct request
const request = {
parent,
Expand All @@ -51,7 +51,7 @@ function main(parent, agentUri) {
console.log(response);
}

exportAgent();
callExportAgent();
// [END dialogflow_v2_generated_Agents_ExportAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function getAgent() {
async function callGetAgent() {
// Construct request
const request = {
parent,
Expand All @@ -42,7 +42,7 @@ function main(parent) {
console.log(response);
}

getAgent();
callGetAgent();
// [END dialogflow_v2_generated_Agents_GetAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function main(parent) {
// const parent = 'abc123'
/**
* Optional. The language for which you want a validation result. If not
* specified, the agent's default language is used. [Many
* languages](https://cloud.google.com/dialogflow/docs/reference/language)
* specified, the agent's default language is used. Many
* languages (https://cloud.google.com/dialogflow/docs/reference/language)
* are supported. Note: languages must be enabled in the agent before they can
* be used.
*/
Expand All @@ -39,7 +39,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function getValidationResult() {
async function callGetValidationResult() {
// Construct request
const request = {
parent,
Expand All @@ -50,7 +50,7 @@ function main(parent) {
console.log(response);
}

getValidationResult();
callGetValidationResult();
// [END dialogflow_v2_generated_Agents_GetValidationResult_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function importAgent() {
async function callImportAgent() {
// Construct request
const request = {
parent,
Expand All @@ -52,7 +52,7 @@ function main(parent) {
console.log(response);
}

importAgent();
callImportAgent();
// [END dialogflow_v2_generated_Agents_ImportAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function restoreAgent() {
async function callRestoreAgent() {
// Construct request
const request = {
parent,
Expand All @@ -52,7 +52,7 @@ function main(parent) {
console.log(response);
}

restoreAgent();
callRestoreAgent();
// [END dialogflow_v2_generated_Agents_RestoreAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function searchAgents() {
async function callSearchAgents() {
// Construct request
const request = {
parent,
Expand All @@ -53,7 +53,7 @@ function main(parent) {
}
}

searchAgents();
callSearchAgents();
// [END dialogflow_v2_generated_Agents_SearchAgents_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ function main(agent) {
/**
* Required. The agent to update.
*/
// const agent = ''
// const agent = {}
/**
* Optional. The mask to control which fields get updated.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Dialogflow library
const {AgentsClient} = require('@google-cloud/dialogflow').v2;

// Instantiates a client
const dialogflowClient = new AgentsClient();

async function setAgent() {
async function callSetAgent() {
// Construct request
const request = {
agent,
Expand All @@ -45,7 +45,7 @@ function main(agent) {
console.log(response);
}

setAgent();
callSetAgent();
// [END dialogflow_v2_generated_Agents_SetAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new AgentsClient();

async function trainAgent() {
async function callTrainAgent() {
// Construct request
const request = {
parent,
Expand All @@ -43,7 +43,7 @@ function main(parent) {
console.log(response);
}

trainAgent();
callTrainAgent();
// [END dialogflow_v2_generated_Agents_TrainAgent_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main(parent, filter) {
* Filter on answer record type. Currently predicates on `type` is supported,
* valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
* For more information about filtering, see
* [API Filtering](https://aip.dev/160).
* API Filtering (https://aip.dev/160).
*/
// const filter = 'abc123'
/**
Expand All @@ -41,7 +41,7 @@ function main(parent, filter) {
// const pageSize = 1234
/**
* Optional. The
* [ListAnswerRecordsResponse.next_page_token][google.cloud.dialogflow.v2.ListAnswerRecordsResponse.next_page_token]
* ListAnswerRecordsResponse.next_page_token google.cloud.dialogflow.v2.ListAnswerRecordsResponse.next_page_token
* value returned from a previous list request used to continue listing on
* the next page.
*/
Expand All @@ -53,7 +53,7 @@ function main(parent, filter) {
// Instantiates a client
const dialogflowClient = new AnswerRecordsClient();

async function listAnswerRecords() {
async function callListAnswerRecords() {
// Construct request
const request = {
parent,
Expand All @@ -67,7 +67,7 @@ function main(parent, filter) {
}
}

listAnswerRecords();
callListAnswerRecords();
// [END dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ function main(answerRecord, updateMask) {
/**
* Required. Answer record to update.
*/
// const answerRecord = ''
// const answerRecord = {}
/**
* Required. The mask to control which fields get updated.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Dialogflow library
const {AnswerRecordsClient} = require('@google-cloud/dialogflow').v2;

// Instantiates a client
const dialogflowClient = new AnswerRecordsClient();

async function updateAnswerRecord() {
async function callUpdateAnswerRecord() {
// Construct request
const request = {
answerRecord,
Expand All @@ -46,7 +46,7 @@ function main(answerRecord, updateMask) {
console.log(response);
}

updateAnswerRecord();
callUpdateAnswerRecord();
// [END dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ function main(parent, context) {
/**
* Required. The context to create.
*/
// const context = ''
// const context = {}

// Imports the Dialogflow library
const {ContextsClient} = require('@google-cloud/dialogflow').v2;

// Instantiates a client
const dialogflowClient = new ContextsClient();

async function createContext() {
async function callCreateContext() {
// Construct request
const request = {
parent,
Expand All @@ -51,7 +51,7 @@ function main(parent, context) {
console.log(response);
}

createContext();
callCreateContext();
// [END dialogflow_v2_generated_Contexts_CreateContext_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new ContextsClient();

async function deleteAllContexts() {
async function callDeleteAllContexts() {
// Construct request
const request = {
parent,
Expand All @@ -46,7 +46,7 @@ function main(parent) {
console.log(response);
}

deleteAllContexts();
callDeleteAllContexts();
// [END dialogflow_v2_generated_Contexts_DeleteAllContexts_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(name) {
// Instantiates a client
const dialogflowClient = new ContextsClient();

async function deleteContext() {
async function callDeleteContext() {
// Construct request
const request = {
name,
Expand All @@ -46,7 +46,7 @@ function main(name) {
console.log(response);
}

deleteContext();
callDeleteContext();
// [END dialogflow_v2_generated_Contexts_DeleteContext_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function main(name) {
// Instantiates a client
const dialogflowClient = new ContextsClient();

async function getContext() {
async function callGetContext() {
// Construct request
const request = {
name,
Expand All @@ -46,7 +46,7 @@ function main(name) {
console.log(response);
}

getContext();
callGetContext();
// [END dialogflow_v2_generated_Contexts_GetContext_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function main(parent) {
// Instantiates a client
const dialogflowClient = new ContextsClient();

async function listContexts() {
async function callListContexts() {
// Construct request
const request = {
parent,
Expand All @@ -57,7 +57,7 @@ function main(parent) {
}
}

listContexts();
callListContexts();
// [END dialogflow_v2_generated_Contexts_ListContexts_async]
}

Expand Down
Loading

0 comments on commit 9577c17

Please sign in to comment.