blob: 2cb452e96f185ece3c009a2e013574ffafe1c92e [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/dialogflow/apiv2",
"version": "1.11.0",
"language": "GO",
"apis": [
{
"id": "google.cloud.dialogflow.v2",
"version": "v2"
}
]
},
"snippets": [
{
"regionTag": "dialogflow_v2_generated_Agents_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "AgentsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Agents.CancelOperation",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_DeleteAgent_sync",
"title": "dialogflow DeleteAgent Sample",
"description": "DeleteAgent deletes the specified agent.",
"file": "AgentsClient/DeleteAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.DeleteAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "DeleteAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.DeleteAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_ExportAgent_sync",
"title": "dialogflow ExportAgent Sample",
"description": "ExportAgent exports the specified agent to a ZIP file.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: ExportAgentResponse",
"file": "AgentsClient/ExportAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ExportAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.ExportAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ExportAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ExportAgentOperation",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "ExportAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.ExportAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_GetAgent_sync",
"title": "dialogflow GetAgent Sample",
"description": "GetAgent retrieves the specified agent.",
"file": "AgentsClient/GetAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.GetAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Agent",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "GetAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.GetAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "AgentsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Agents.GetLocation",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "AgentsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Agents.GetOperation",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_GetValidationResult_sync",
"title": "dialogflow GetValidationResult Sample",
"description": "GetValidationResult gets agent validation result. Agent validation is performed during\ntraining time and is updated automatically when training is completed.",
"file": "AgentsClient/GetValidationResult/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetValidationResult",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.GetValidationResult",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetValidationResultRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ValidationResult",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "GetValidationResult",
"fullName": "google.cloud.dialogflow.v2.Agents.GetValidationResult",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_ImportAgent_sync",
"title": "dialogflow ImportAgent Sample",
"description": "ImportAgent imports the specified agent from a ZIP file.\n\nUploads new intents and entity types without deleting the existing ones.\nIntents and entity types with the same name are replaced with the new\nversions from ImportAgentRequest. After the import, the imported draft\nagent will be trained automatically (unless disabled in agent settings).\nHowever, once the import is done, training may not be completed yet. Please\ncall TrainAgent and wait for the operation it returns in order to train\nexplicitly.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nThe operation only tracks when importing is complete, not when it is done\ntraining.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "AgentsClient/ImportAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ImportAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.ImportAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ImportAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ImportAgentOperation",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "ImportAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.ImportAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "AgentsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Agents.ListLocations",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "AgentsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Agents.ListOperations",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_RestoreAgent_sync",
"title": "dialogflow RestoreAgent Sample",
"description": "RestoreAgent restores the specified agent from a ZIP file.\n\nReplaces the current agent version with a new one. All the intents and\nentity types in the older version are deleted. After the restore, the\nrestored draft agent will be trained automatically (unless disabled in\nagent settings). However, once the restore is done, training may not be\ncompleted yet. Please call TrainAgent and wait for the operation it\nreturns in order to train explicitly.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nThe operation only tracks when restoring is complete, not when it is done\ntraining.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "AgentsClient/RestoreAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RestoreAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.RestoreAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.RestoreAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RestoreAgentOperation",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "RestoreAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.RestoreAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_SearchAgents_sync",
"title": "dialogflow SearchAgents Sample",
"description": "SearchAgents returns the list of agents.\n\nSince there is at most one conversational agent per project, this method is\nuseful primarily for listing all agents across projects the caller has\naccess to. One can achieve that with a wildcard project collection id “-”.\nRefer to List\nSub-Collections (at https: //cloud.google.com/apis/design/design_patterns#list_sub-collections).",
"file": "AgentsClient/SearchAgents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SearchAgents",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.SearchAgents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SearchAgentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AgentIterator",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "SearchAgents",
"fullName": "google.cloud.dialogflow.v2.Agents.SearchAgents",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_SetAgent_sync",
"title": "dialogflow SetAgent Sample",
"description": "SetAgent creates/updates the specified agent.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "AgentsClient/SetAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.SetAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SetAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Agent",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "SetAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.SetAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Agents_TrainAgent_sync",
"title": "dialogflow TrainAgent Sample",
"description": "TrainAgent trains the specified agent.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "AgentsClient/TrainAgent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TrainAgent",
"fullName": "google.cloud.dialogflow.v2.AgentsClient.TrainAgent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.TrainAgentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TrainAgentOperation",
"client": {
"shortName": "AgentsClient",
"fullName": "google.cloud.dialogflow.v2.AgentsClient"
},
"method": {
"shortName": "TrainAgent",
"fullName": "google.cloud.dialogflow.v2.Agents.TrainAgent",
"service": {
"shortName": "Agents",
"fullName": "google.cloud.dialogflow.v2.Agents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "AnswerRecordsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.CancelOperation",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "AnswerRecordsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.GetLocation",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "AnswerRecordsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.GetOperation",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_sync",
"title": "dialogflow ListAnswerRecords Sample",
"description": "ListAnswerRecords returns the list of all answer records in the specified project in reverse\nchronological order.",
"file": "AnswerRecordsClient/ListAnswerRecords/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListAnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.ListAnswerRecords",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListAnswerRecordsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AnswerRecordIterator",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "ListAnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "AnswerRecordsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.ListLocations",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "AnswerRecordsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.ListOperations",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_sync",
"title": "dialogflow UpdateAnswerRecord Sample",
"description": "UpdateAnswerRecord updates the specified answer record.",
"file": "AnswerRecordsClient/UpdateAnswerRecord/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateAnswerRecord",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient.UpdateAnswerRecord",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateAnswerRecordRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.AnswerRecord",
"client": {
"shortName": "AnswerRecordsClient",
"fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient"
},
"method": {
"shortName": "UpdateAnswerRecord",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord",
"service": {
"shortName": "AnswerRecords",
"fullName": "google.cloud.dialogflow.v2.AnswerRecords"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ContextsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Contexts.CancelOperation",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_CreateContext_sync",
"title": "dialogflow CreateContext Sample",
"description": "CreateContext creates a context.\n\nIf the specified context already exists, overrides the context.",
"file": "ContextsClient/CreateContext/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateContext",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.CreateContext",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateContextRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Context",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "CreateContext",
"fullName": "google.cloud.dialogflow.v2.Contexts.CreateContext",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_DeleteAllContexts_sync",
"title": "dialogflow DeleteAllContexts Sample",
"description": "DeleteAllContexts deletes all active contexts in the specified session.",
"file": "ContextsClient/DeleteAllContexts/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteAllContexts",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.DeleteAllContexts",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteAllContextsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "DeleteAllContexts",
"fullName": "google.cloud.dialogflow.v2.Contexts.DeleteAllContexts",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_DeleteContext_sync",
"title": "dialogflow DeleteContext Sample",
"description": "DeleteContext deletes the specified context.",
"file": "ContextsClient/DeleteContext/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteContext",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.DeleteContext",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteContextRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "DeleteContext",
"fullName": "google.cloud.dialogflow.v2.Contexts.DeleteContext",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_GetContext_sync",
"title": "dialogflow GetContext Sample",
"description": "GetContext retrieves the specified context.",
"file": "ContextsClient/GetContext/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetContext",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.GetContext",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetContextRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Context",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "GetContext",
"fullName": "google.cloud.dialogflow.v2.Contexts.GetContext",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ContextsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Contexts.GetLocation",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ContextsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Contexts.GetOperation",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_ListContexts_sync",
"title": "dialogflow ListContexts Sample",
"description": "ListContexts returns the list of all contexts in the specified session.",
"file": "ContextsClient/ListContexts/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListContexts",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.ListContexts",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListContextsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ContextIterator",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "ListContexts",
"fullName": "google.cloud.dialogflow.v2.Contexts.ListContexts",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ContextsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Contexts.ListLocations",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ContextsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Contexts.ListOperations",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Contexts_UpdateContext_sync",
"title": "dialogflow UpdateContext Sample",
"description": "UpdateContext updates the specified context.",
"file": "ContextsClient/UpdateContext/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateContext",
"fullName": "google.cloud.dialogflow.v2.ContextsClient.UpdateContext",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateContextRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Context",
"client": {
"shortName": "ContextsClient",
"fullName": "google.cloud.dialogflow.v2.ContextsClient"
},
"method": {
"shortName": "UpdateContext",
"fullName": "google.cloud.dialogflow.v2.Contexts.UpdateContext",
"service": {
"shortName": "Contexts",
"fullName": "google.cloud.dialogflow.v2.Contexts"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationDatasetsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.CancelOperation",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_CreateConversationDataset_sync",
"title": "dialogflow CreateConversationDataset Sample",
"description": "CreateConversationDataset creates a new conversation dataset.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: CreateConversationDatasetOperationMetadata\n\n response: ConversationDataset",
"file": "ConversationDatasetsClient/CreateConversationDataset/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.CreateConversationDataset",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateConversationDatasetRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateConversationDatasetOperation",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "CreateConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDataset",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_DeleteConversationDataset_sync",
"title": "dialogflow DeleteConversationDataset Sample",
"description": "DeleteConversationDataset deletes the specified conversation dataset.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: DeleteConversationDatasetOperationMetadata\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)",
"file": "ConversationDatasetsClient/DeleteConversationDataset/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.DeleteConversationDataset",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteConversationDatasetRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteConversationDatasetOperation",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "DeleteConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDataset",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_GetConversationDataset_sync",
"title": "dialogflow GetConversationDataset Sample",
"description": "GetConversationDataset retrieves the specified conversation dataset.",
"file": "ConversationDatasetsClient/GetConversationDataset/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.GetConversationDataset",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetConversationDatasetRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationDataset",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "GetConversationDataset",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDataset",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ConversationDatasetsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.GetLocation",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationDatasetsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.GetOperation",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_ImportConversationData_sync",
"title": "dialogflow ImportConversationData Sample",
"description": "ImportConversationData import data into the specified conversation dataset. Note that it\nis not allowed to import data to a conversation dataset that\nalready has data in it.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: ImportConversationDataOperationMetadata\n\n response: ImportConversationDataOperationResponse",
"file": "ConversationDatasetsClient/ImportConversationData/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ImportConversationData",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.ImportConversationData",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ImportConversationDataRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ImportConversationDataOperation",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "ImportConversationData",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_ListConversationDatasets_sync",
"title": "dialogflow ListConversationDatasets Sample",
"description": "ListConversationDatasets returns the list of all conversation datasets in the specified\nproject and location.",
"file": "ConversationDatasetsClient/ListConversationDatasets/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.ListConversationDatasets",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListConversationDatasetsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ConversationDatasetIterator",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "ListConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasets",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ConversationDatasetsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ListLocations",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationDatasets_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ConversationDatasetsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ConversationDatasetsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ListOperations",
"service": {
"shortName": "ConversationDatasets",
"fullName": "google.cloud.dialogflow.v2.ConversationDatasets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationModelsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.CancelOperation",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_CreateConversationModel_sync",
"title": "dialogflow CreateConversationModel Sample",
"description": "CreateConversationModel creates a model.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: CreateConversationModelOperationMetadata\n\n response: ConversationModel",
"file": "ConversationModelsClient/CreateConversationModel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.CreateConversationModel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateConversationModelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateConversationModelOperation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "CreateConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_CreateConversationModelEvaluation_sync",
"title": "dialogflow CreateConversationModelEvaluation Sample",
"description": "CreateConversationModelEvaluation creates evaluation of a conversation model.",
"file": "ConversationModelsClient/CreateConversationModelEvaluation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateConversationModelEvaluation",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.CreateConversationModelEvaluation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateConversationModelEvaluationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateConversationModelEvaluationOperation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "CreateConversationModelEvaluation",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_DeleteConversationModel_sync",
"title": "dialogflow DeleteConversationModel Sample",
"description": "DeleteConversationModel deletes a model.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: DeleteConversationModelOperationMetadata\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)",
"file": "ConversationModelsClient/DeleteConversationModel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.DeleteConversationModel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteConversationModelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteConversationModelOperation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "DeleteConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_DeployConversationModel_sync",
"title": "dialogflow DeployConversationModel Sample",
"description": "DeployConversationModel deploys a model. If a model is already deployed, deploying it\nhas no effect. A model can only serve prediction requests after it gets\ndeployed. For article suggestion, custom model will not be used unless\nit is deployed.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: DeployConversationModelOperationMetadata\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)",
"file": "ConversationModelsClient/DeployConversationModel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeployConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.DeployConversationModel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeployConversationModelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeployConversationModelOperation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "DeployConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_GetConversationModel_sync",
"title": "dialogflow GetConversationModel Sample",
"description": "GetConversationModel gets conversation model.",
"file": "ConversationModelsClient/GetConversationModel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.GetConversationModel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetConversationModelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationModel",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "GetConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModel",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_GetConversationModelEvaluation_sync",
"title": "dialogflow GetConversationModelEvaluation Sample",
"description": "GetConversationModelEvaluation gets an evaluation of conversation model.",
"file": "ConversationModelsClient/GetConversationModelEvaluation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetConversationModelEvaluation",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.GetConversationModelEvaluation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetConversationModelEvaluationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationModelEvaluation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "GetConversationModelEvaluation",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluation",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ConversationModelsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.GetLocation",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationModelsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.GetOperation",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_ListConversationModelEvaluations_sync",
"title": "dialogflow ListConversationModelEvaluations Sample",
"description": "ListConversationModelEvaluations lists evaluations of a conversation model.",
"file": "ConversationModelsClient/ListConversationModelEvaluations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListConversationModelEvaluations",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.ListConversationModelEvaluations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListConversationModelEvaluationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ConversationModelEvaluationIterator",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "ListConversationModelEvaluations",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_ListConversationModels_sync",
"title": "dialogflow ListConversationModels Sample",
"description": "ListConversationModels lists conversation models.",
"file": "ConversationModelsClient/ListConversationModels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.ListConversationModels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListConversationModelsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ConversationModelIterator",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "ListConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModels",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ConversationModelsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.ListLocations",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ConversationModelsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.ListOperations",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationModels_UndeployConversationModel_sync",
"title": "dialogflow UndeployConversationModel Sample",
"description": "UndeployConversationModel undeploys a model. If the model is not deployed this method has no effect.\nIf the model is currently being used: \n\n For article suggestion, article suggestion will fallback to the default\n model if model is undeployed.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: UndeployConversationModelOperationMetadata\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)",
"file": "ConversationModelsClient/UndeployConversationModel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UndeployConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient.UndeployConversationModel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UndeployConversationModelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UndeployConversationModelOperation",
"client": {
"shortName": "ConversationModelsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationModelsClient"
},
"method": {
"shortName": "UndeployConversationModel",
"fullName": "google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel",
"service": {
"shortName": "ConversationModels",
"fullName": "google.cloud.dialogflow.v2.ConversationModels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationProfilesClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.CancelOperation",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_ClearSuggestionFeatureConfig_sync",
"title": "dialogflow ClearSuggestionFeatureConfig Sample",
"description": "ClearSuggestionFeatureConfig clears a suggestion feature from a conversation profile for the given\nparticipant role.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: ClearSuggestionFeatureConfigOperationMetadata\n\n response: ConversationProfile",
"file": "ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ClearSuggestionFeatureConfig",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.ClearSuggestionFeatureConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ClearSuggestionFeatureConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ClearSuggestionFeatureConfigOperation",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "ClearSuggestionFeatureConfig",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_CreateConversationProfile_sync",
"title": "dialogflow CreateConversationProfile Sample",
"description": "CreateConversationProfile creates a conversation profile in the specified project.\n\nConversationProfile.CreateTime and ConversationProfile.UpdateTime\naren’t populated in the response. You can retrieve them via\nGetConversationProfile API.",
"file": "ConversationProfilesClient/CreateConversationProfile/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.CreateConversationProfile",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateConversationProfileRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationProfile",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "CreateConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_DeleteConversationProfile_sync",
"title": "dialogflow DeleteConversationProfile Sample",
"description": "DeleteConversationProfile deletes the specified conversation profile.",
"file": "ConversationProfilesClient/DeleteConversationProfile/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.DeleteConversationProfile",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteConversationProfileRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "DeleteConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_GetConversationProfile_sync",
"title": "dialogflow GetConversationProfile Sample",
"description": "GetConversationProfile retrieves the specified conversation profile.",
"file": "ConversationProfilesClient/GetConversationProfile/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.GetConversationProfile",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetConversationProfileRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationProfile",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "GetConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ConversationProfilesClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.GetLocation",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationProfilesClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.GetOperation",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_ListConversationProfiles_sync",
"title": "dialogflow ListConversationProfiles Sample",
"description": "ListConversationProfiles returns the list of all conversation profiles in the specified project.",
"file": "ConversationProfilesClient/ListConversationProfiles/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.ListConversationProfiles",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListConversationProfilesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ConversationProfileIterator",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "ListConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ConversationProfilesClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ListLocations",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ConversationProfilesClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ListOperations",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_SetSuggestionFeatureConfig_sync",
"title": "dialogflow SetSuggestionFeatureConfig Sample",
"description": "SetSuggestionFeatureConfig adds or updates a suggestion feature in a conversation profile.\nIf the conversation profile contains the type of suggestion feature for\nthe participant role, it will update it. Otherwise it will insert the\nsuggestion feature.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: SetSuggestionFeatureConfigOperationMetadata\n\n response: ConversationProfile\n\nIf a long running operation to add or update suggestion feature\nconfig for the same conversation profile, participant role and suggestion\nfeature type exists, please cancel the existing long running operation\nbefore sending such request, otherwise the request will be rejected.",
"file": "ConversationProfilesClient/SetSuggestionFeatureConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSuggestionFeatureConfig",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.SetSuggestionFeatureConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SetSuggestionFeatureConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SetSuggestionFeatureConfigOperation",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "SetSuggestionFeatureConfig",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_ConversationProfiles_UpdateConversationProfile_sync",
"title": "dialogflow UpdateConversationProfile Sample",
"description": "UpdateConversationProfile updates the specified conversation profile.\n\nConversationProfile.CreateTime and ConversationProfile.UpdateTime\naren’t populated in the response. You can retrieve them via\nGetConversationProfile API.",
"file": "ConversationProfilesClient/UpdateConversationProfile/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient.UpdateConversationProfile",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateConversationProfileRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.ConversationProfile",
"client": {
"shortName": "ConversationProfilesClient",
"fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient"
},
"method": {
"shortName": "UpdateConversationProfile",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile",
"service": {
"shortName": "ConversationProfiles",
"fullName": "google.cloud.dialogflow.v2.ConversationProfiles"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Conversations.CancelOperation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_CompleteConversation_sync",
"title": "dialogflow CompleteConversation Sample",
"description": "CompleteConversation completes the specified conversation. Finished conversations are purged\nfrom the database after 30 days.",
"file": "ConversationsClient/CompleteConversation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CompleteConversation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.CompleteConversation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CompleteConversationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Conversation",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "CompleteConversation",
"fullName": "google.cloud.dialogflow.v2.Conversations.CompleteConversation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_CreateConversation_sync",
"title": "dialogflow CreateConversation Sample",
"description": "CreateConversation creates a new conversation. Conversations are auto-completed after 24\nhours.\n\nConversation Lifecycle: \nThere are two stages during a conversation: Automated Agent Stage and\nAssist Stage.\n\nFor Automated Agent Stage, there will be a dialogflow agent responding to\nuser queries.\n\nFor Assist Stage, there’s no dialogflow agent responding to user queries.\nBut we will provide suggestions which are generated from conversation.\n\nIf Conversation.conversation_profile is configured for a dialogflow\nagent, conversation will start from Automated Agent Stage, otherwise, it\nwill start from Assist Stage. And during Automated Agent Stage, once an\nIntent with Intent.live_agent_handoff is triggered, conversation\nwill transfer to Assist Stage.",
"file": "ConversationsClient/CreateConversation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateConversation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.CreateConversation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateConversationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Conversation",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "CreateConversation",
"fullName": "google.cloud.dialogflow.v2.Conversations.CreateConversation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_GetConversation_sync",
"title": "dialogflow GetConversation Sample",
"description": "GetConversation retrieves the specific conversation.",
"file": "ConversationsClient/GetConversation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetConversation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.GetConversation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetConversationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Conversation",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "GetConversation",
"fullName": "google.cloud.dialogflow.v2.Conversations.GetConversation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ConversationsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Conversations.GetLocation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ConversationsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Conversations.GetOperation",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_ListConversations_sync",
"title": "dialogflow ListConversations Sample",
"description": "ListConversations returns the list of all conversations in the specified project.",
"file": "ConversationsClient/ListConversations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListConversations",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.ListConversations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListConversationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ConversationIterator",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "ListConversations",
"fullName": "google.cloud.dialogflow.v2.Conversations.ListConversations",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ConversationsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Conversations.ListLocations",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_ListMessages_sync",
"title": "dialogflow ListMessages Sample",
"description": "ListMessages lists messages that belong to a given conversation.\nmessages are ordered by create_time in descending order. To fetch\nupdates without duplication, send request with filter\ncreate_time_epoch_microseconds > [first item's create_time of previous request] and empty page_token.",
"file": "ConversationsClient/ListMessages/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListMessages",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.ListMessages",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListMessagesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "MessageIterator",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "ListMessages",
"fullName": "google.cloud.dialogflow.v2.Conversations.ListMessages",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Conversations_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ConversationsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ConversationsClient",
"fullName": "google.cloud.dialogflow.v2.ConversationsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Conversations.ListOperations",
"service": {
"shortName": "Conversations",
"fullName": "google.cloud.dialogflow.v2.Conversations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "DocumentsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Documents.CancelOperation",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_CreateDocument_sync",
"title": "dialogflow CreateDocument Sample",
"description": "CreateDocument creates a new document.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: Document",
"file": "DocumentsClient/CreateDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.CreateDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateDocumentOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "CreateDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.CreateDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_DeleteDocument_sync",
"title": "dialogflow DeleteDocument Sample",
"description": "DeleteDocument deletes the specified document.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)",
"file": "DocumentsClient/DeleteDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.DeleteDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteDocumentOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "DeleteDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.DeleteDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ExportDocument_sync",
"title": "dialogflow ExportDocument Sample",
"description": "ExportDocument exports a smart messaging candidate document into the specified\ndestination.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: Document",
"file": "DocumentsClient/ExportDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ExportDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ExportDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ExportDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ExportDocumentOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ExportDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.ExportDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_GetDocument_sync",
"title": "dialogflow GetDocument Sample",
"description": "GetDocument retrieves the specified document.",
"file": "DocumentsClient/GetDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.GetDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Document",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "GetDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.GetDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "DocumentsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Documents.GetLocation",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "DocumentsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Documents.GetOperation",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ImportDocuments_sync",
"title": "dialogflow ImportDocuments Sample",
"description": "ImportDocuments creates documents by importing data from external sources.\nDialogflow supports up to 350 documents in each request. If you try to\nimport more, Dialogflow will return an error.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: ImportDocumentsResponse",
"file": "DocumentsClient/ImportDocuments/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ImportDocuments",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ImportDocuments",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ImportDocumentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ImportDocumentsOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ImportDocuments",
"fullName": "google.cloud.dialogflow.v2.Documents.ImportDocuments",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ListDocuments_sync",
"title": "dialogflow ListDocuments Sample",
"description": "ListDocuments returns the list of all documents of the knowledge base.",
"file": "DocumentsClient/ListDocuments/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListDocuments",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ListDocuments",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListDocumentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DocumentIterator",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ListDocuments",
"fullName": "google.cloud.dialogflow.v2.Documents.ListDocuments",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "DocumentsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Documents.ListLocations",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "DocumentsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Documents.ListOperations",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_ReloadDocument_sync",
"title": "dialogflow ReloadDocument Sample",
"description": "ReloadDocument reloads the specified document from its specified source, content_uri or\ncontent. The previously loaded content of the document will be deleted.\nNote: Even when the content of the document has not changed, there still\nmay be side effects because of internal implementation changes.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: Document\n\nNote: The projects.agent.knowledgeBases.documents resource is deprecated;\nonly use projects.knowledgeBases.documents.",
"file": "DocumentsClient/ReloadDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ReloadDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.ReloadDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ReloadDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ReloadDocumentOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "ReloadDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.ReloadDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Documents_UpdateDocument_sync",
"title": "dialogflow UpdateDocument Sample",
"description": "UpdateDocument updates the specified document.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned Operation type has the following method-specific fields: \n\n metadata: KnowledgeOperationMetadata\n\n response: Document",
"file": "DocumentsClient/UpdateDocument/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateDocument",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient.UpdateDocument",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateDocumentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UpdateDocumentOperation",
"client": {
"shortName": "DocumentsClient",
"fullName": "google.cloud.dialogflow.v2.DocumentsClient"
},
"method": {
"shortName": "UpdateDocument",
"fullName": "google.cloud.dialogflow.v2.Documents.UpdateDocument",
"service": {
"shortName": "Documents",
"fullName": "google.cloud.dialogflow.v2.Documents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_BatchCreateEntities_sync",
"title": "dialogflow BatchCreateEntities Sample",
"description": "BatchCreateEntities creates multiple new entities in the specified entity type.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/BatchCreateEntities/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchCreateEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.BatchCreateEntities",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchCreateEntitiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchCreateEntitiesOperation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "BatchCreateEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_BatchDeleteEntities_sync",
"title": "dialogflow BatchDeleteEntities Sample",
"description": "BatchDeleteEntities deletes entities in the specified entity type.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/BatchDeleteEntities/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchDeleteEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.BatchDeleteEntities",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchDeleteEntitiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchDeleteEntitiesOperation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "BatchDeleteEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_BatchDeleteEntityTypes_sync",
"title": "dialogflow BatchDeleteEntityTypes Sample",
"description": "BatchDeleteEntityTypes deletes entity types in the specified agent.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/BatchDeleteEntityTypes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchDeleteEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.BatchDeleteEntityTypes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchDeleteEntityTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchDeleteEntityTypesOperation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "BatchDeleteEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_BatchUpdateEntities_sync",
"title": "dialogflow BatchUpdateEntities Sample",
"description": "BatchUpdateEntities updates or creates multiple entities in the specified entity type. This\nmethod does not affect entities in the entity type that aren’t explicitly\nspecified in the request.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/BatchUpdateEntities/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchUpdateEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.BatchUpdateEntities",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchUpdateEntitiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchUpdateEntitiesOperation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "BatchUpdateEntities",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_BatchUpdateEntityTypes_sync",
"title": "dialogflow BatchUpdateEntityTypes Sample",
"description": "BatchUpdateEntityTypes updates/Creates multiple entity types in the specified agent.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: BatchUpdateEntityTypesResponse\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/BatchUpdateEntityTypes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchUpdateEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.BatchUpdateEntityTypes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchUpdateEntityTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchUpdateEntityTypesOperation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "BatchUpdateEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "EntityTypesClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.CancelOperation",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_CreateEntityType_sync",
"title": "dialogflow CreateEntityType Sample",
"description": "CreateEntityType creates an entity type in the specified agent.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/CreateEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.CreateEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.EntityType",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "CreateEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.CreateEntityType",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_DeleteEntityType_sync",
"title": "dialogflow DeleteEntityType Sample",
"description": "DeleteEntityType deletes the specified entity type.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/DeleteEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.DeleteEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "DeleteEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_GetEntityType_sync",
"title": "dialogflow GetEntityType Sample",
"description": "GetEntityType retrieves the specified entity type.",
"file": "EntityTypesClient/GetEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.GetEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.EntityType",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "GetEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.GetEntityType",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "EntityTypesClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.GetLocation",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "EntityTypesClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.GetOperation",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_ListEntityTypes_sync",
"title": "dialogflow ListEntityTypes Sample",
"description": "ListEntityTypes returns the list of all entity types in the specified agent.",
"file": "EntityTypesClient/ListEntityTypes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.ListEntityTypes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListEntityTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "EntityTypeIterator",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "ListEntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "EntityTypesClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.ListLocations",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "EntityTypesClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.ListOperations",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_EntityTypes_UpdateEntityType_sync",
"title": "dialogflow UpdateEntityType Sample",
"description": "UpdateEntityType updates the specified entity type.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "EntityTypesClient/UpdateEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient.UpdateEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.EntityType",
"client": {
"shortName": "EntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.EntityTypesClient"
},
"method": {
"shortName": "UpdateEntityType",
"fullName": "google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType",
"service": {
"shortName": "EntityTypes",
"fullName": "google.cloud.dialogflow.v2.EntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "EnvironmentsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Environments.CancelOperation",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_CreateEnvironment_sync",
"title": "dialogflow CreateEnvironment Sample",
"description": "CreateEnvironment creates an agent environment.",
"file": "EnvironmentsClient/CreateEnvironment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateEnvironment",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.CreateEnvironment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateEnvironmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Environment",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "CreateEnvironment",
"fullName": "google.cloud.dialogflow.v2.Environments.CreateEnvironment",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_DeleteEnvironment_sync",
"title": "dialogflow DeleteEnvironment Sample",
"description": "DeleteEnvironment deletes the specified agent environment.",
"file": "EnvironmentsClient/DeleteEnvironment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteEnvironment",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.DeleteEnvironment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteEnvironmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "DeleteEnvironment",
"fullName": "google.cloud.dialogflow.v2.Environments.DeleteEnvironment",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_GetEnvironment_sync",
"title": "dialogflow GetEnvironment Sample",
"description": "GetEnvironment retrieves the specified agent environment.",
"file": "EnvironmentsClient/GetEnvironment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEnvironment",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.GetEnvironment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetEnvironmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Environment",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "GetEnvironment",
"fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironment",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_GetEnvironmentHistory_sync",
"title": "dialogflow GetEnvironmentHistory Sample",
"description": "GetEnvironmentHistory gets the history of the specified environment.",
"file": "EnvironmentsClient/GetEnvironmentHistory/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEnvironmentHistory",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.GetEnvironmentHistory",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetEnvironmentHistoryRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "EnvironmentHistory_EntryIterator",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "GetEnvironmentHistory",
"fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "EnvironmentsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Environments.GetLocation",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "EnvironmentsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Environments.GetOperation",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_ListEnvironments_sync",
"title": "dialogflow ListEnvironments Sample",
"description": "ListEnvironments returns the list of all non-default environments of the specified agent.",
"file": "EnvironmentsClient/ListEnvironments/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListEnvironments",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.ListEnvironments",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListEnvironmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "EnvironmentIterator",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "ListEnvironments",
"fullName": "google.cloud.dialogflow.v2.Environments.ListEnvironments",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "EnvironmentsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Environments.ListLocations",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "EnvironmentsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Environments.ListOperations",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Environments_UpdateEnvironment_sync",
"title": "dialogflow UpdateEnvironment Sample",
"description": "UpdateEnvironment updates the specified agent environment.\n\nThis method allows you to deploy new agent versions into the environment.\nWhen an environment is pointed to a new agent version by setting\nenvironment.agent_version, the environment is temporarily set to the\nLOADING state. During that time, the environment continues serving the\nprevious version of the agent. After the new agent version is done loading,\nthe environment is set back to the RUNNING state.\nYou can use “-” as Environment ID in environment name to update an agent\nversion in the default environment. WARNING: this will negate all recent\nchanges to the draft agent and can’t be undone. You may want to save the\ndraft agent to a version before calling this method.",
"file": "EnvironmentsClient/UpdateEnvironment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateEnvironment",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient.UpdateEnvironment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateEnvironmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Environment",
"client": {
"shortName": "EnvironmentsClient",
"fullName": "google.cloud.dialogflow.v2.EnvironmentsClient"
},
"method": {
"shortName": "UpdateEnvironment",
"fullName": "google.cloud.dialogflow.v2.Environments.UpdateEnvironment",
"service": {
"shortName": "Environments",
"fullName": "google.cloud.dialogflow.v2.Environments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "FulfillmentsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.CancelOperation",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_GetFulfillment_sync",
"title": "dialogflow GetFulfillment Sample",
"description": "GetFulfillment retrieves the fulfillment.",
"file": "FulfillmentsClient/GetFulfillment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetFulfillment",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.GetFulfillment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetFulfillmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Fulfillment",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "GetFulfillment",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.GetFulfillment",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "FulfillmentsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.GetLocation",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "FulfillmentsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.GetOperation",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "FulfillmentsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.ListLocations",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "FulfillmentsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.ListOperations",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Fulfillments_UpdateFulfillment_sync",
"title": "dialogflow UpdateFulfillment Sample",
"description": "UpdateFulfillment updates the fulfillment.",
"file": "FulfillmentsClient/UpdateFulfillment/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateFulfillment",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient.UpdateFulfillment",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateFulfillmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Fulfillment",
"client": {
"shortName": "FulfillmentsClient",
"fullName": "google.cloud.dialogflow.v2.FulfillmentsClient"
},
"method": {
"shortName": "UpdateFulfillment",
"fullName": "google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillment",
"service": {
"shortName": "Fulfillments",
"fullName": "google.cloud.dialogflow.v2.Fulfillments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_BatchDeleteIntents_sync",
"title": "dialogflow BatchDeleteIntents Sample",
"description": "BatchDeleteIntents deletes intents in the specified agent.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: An Empty\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "IntentsClient/BatchDeleteIntents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchDeleteIntents",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.BatchDeleteIntents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchDeleteIntentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchDeleteIntentsOperation",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "BatchDeleteIntents",
"fullName": "google.cloud.dialogflow.v2.Intents.BatchDeleteIntents",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_BatchUpdateIntents_sync",
"title": "dialogflow BatchUpdateIntents Sample",
"description": "BatchUpdateIntents updates/Creates multiple intents in the specified agent.\n\nThis method is a long-running\noperation (at https: //cloud.google.com/dialogflow/es/docs/how/long-running-operations).\nThe returned Operation type has the following method-specific fields: \n\n metadata: An empty Struct\n message (at https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n\n response: BatchUpdateIntentsResponse\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "IntentsClient/BatchUpdateIntents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchUpdateIntents",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.BatchUpdateIntents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.BatchUpdateIntentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BatchUpdateIntentsOperation",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "BatchUpdateIntents",
"fullName": "google.cloud.dialogflow.v2.Intents.BatchUpdateIntents",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "IntentsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Intents.CancelOperation",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_CreateIntent_sync",
"title": "dialogflow CreateIntent Sample",
"description": "CreateIntent creates an intent in the specified agent.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "IntentsClient/CreateIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateIntent",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.CreateIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateIntentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Intent",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "CreateIntent",
"fullName": "google.cloud.dialogflow.v2.Intents.CreateIntent",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_DeleteIntent_sync",
"title": "dialogflow DeleteIntent Sample",
"description": "DeleteIntent deletes the specified intent and its direct or indirect followup intents.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "IntentsClient/DeleteIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteIntent",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.DeleteIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteIntentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "DeleteIntent",
"fullName": "google.cloud.dialogflow.v2.Intents.DeleteIntent",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_GetIntent_sync",
"title": "dialogflow GetIntent Sample",
"description": "GetIntent retrieves the specified intent.",
"file": "IntentsClient/GetIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIntent",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.GetIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetIntentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Intent",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "GetIntent",
"fullName": "google.cloud.dialogflow.v2.Intents.GetIntent",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "IntentsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Intents.GetLocation",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "IntentsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Intents.GetOperation",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_ListIntents_sync",
"title": "dialogflow ListIntents Sample",
"description": "ListIntents returns the list of all intents in the specified agent.",
"file": "IntentsClient/ListIntents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListIntents",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.ListIntents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListIntentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "IntentIterator",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "ListIntents",
"fullName": "google.cloud.dialogflow.v2.Intents.ListIntents",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "IntentsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Intents.ListLocations",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "IntentsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Intents.ListOperations",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Intents_UpdateIntent_sync",
"title": "dialogflow UpdateIntent Sample",
"description": "UpdateIntent updates the specified intent.\n\nNote: You should always train an agent prior to sending it queries. See the\ntraining\ndocumentation (at https: //cloud.google.com/dialogflow/es/docs/training).",
"file": "IntentsClient/UpdateIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateIntent",
"fullName": "google.cloud.dialogflow.v2.IntentsClient.UpdateIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateIntentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Intent",
"client": {
"shortName": "IntentsClient",
"fullName": "google.cloud.dialogflow.v2.IntentsClient"
},
"method": {
"shortName": "UpdateIntent",
"fullName": "google.cloud.dialogflow.v2.Intents.UpdateIntent",
"service": {
"shortName": "Intents",
"fullName": "google.cloud.dialogflow.v2.Intents"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "KnowledgeBasesClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.CancelOperation",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_CreateKnowledgeBase_sync",
"title": "dialogflow CreateKnowledgeBase Sample",
"description": "CreateKnowledgeBase creates a knowledge base.",
"file": "KnowledgeBasesClient/CreateKnowledgeBase/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.CreateKnowledgeBase",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateKnowledgeBaseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.KnowledgeBase",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "CreateKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_DeleteKnowledgeBase_sync",
"title": "dialogflow DeleteKnowledgeBase Sample",
"description": "DeleteKnowledgeBase deletes the specified knowledge base.",
"file": "KnowledgeBasesClient/DeleteKnowledgeBase/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.DeleteKnowledgeBase",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteKnowledgeBaseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "DeleteKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_GetKnowledgeBase_sync",
"title": "dialogflow GetKnowledgeBase Sample",
"description": "GetKnowledgeBase retrieves the specified knowledge base.",
"file": "KnowledgeBasesClient/GetKnowledgeBase/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.GetKnowledgeBase",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetKnowledgeBaseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.KnowledgeBase",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "GetKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "KnowledgeBasesClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.GetLocation",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "KnowledgeBasesClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.GetOperation",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_ListKnowledgeBases_sync",
"title": "dialogflow ListKnowledgeBases Sample",
"description": "ListKnowledgeBases returns the list of all knowledge bases of the specified agent.",
"file": "KnowledgeBasesClient/ListKnowledgeBases/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListKnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.ListKnowledgeBases",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListKnowledgeBasesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "KnowledgeBaseIterator",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "ListKnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "KnowledgeBasesClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.ListLocations",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "KnowledgeBasesClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.ListOperations",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_KnowledgeBases_UpdateKnowledgeBase_sync",
"title": "dialogflow UpdateKnowledgeBase Sample",
"description": "UpdateKnowledgeBase updates the specified knowledge base.",
"file": "KnowledgeBasesClient/UpdateKnowledgeBase/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient.UpdateKnowledgeBase",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateKnowledgeBaseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.KnowledgeBase",
"client": {
"shortName": "KnowledgeBasesClient",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient"
},
"method": {
"shortName": "UpdateKnowledgeBase",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase",
"service": {
"shortName": "KnowledgeBases",
"fullName": "google.cloud.dialogflow.v2.KnowledgeBases"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_AnalyzeContent_sync",
"title": "dialogflow AnalyzeContent Sample",
"description": "AnalyzeContent adds a text (chat, for example), or audio (phone recording, for example)\nmessage from a participant into the conversation.\n\nNote: Always use agent versions for production traffic\nsent to virtual agents. See Versions and\nenvironments (at https: //cloud.google.com/dialogflow/es/docs/agents-versions).",
"file": "ParticipantsClient/AnalyzeContent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AnalyzeContent",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.AnalyzeContent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.AnalyzeContentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.AnalyzeContentResponse",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "AnalyzeContent",
"fullName": "google.cloud.dialogflow.v2.Participants.AnalyzeContent",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "ParticipantsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Participants.CancelOperation",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_CreateParticipant_sync",
"title": "dialogflow CreateParticipant Sample",
"description": "CreateParticipant creates a new participant in a conversation.",
"file": "ParticipantsClient/CreateParticipant/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateParticipant",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.CreateParticipant",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateParticipantRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Participant",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "CreateParticipant",
"fullName": "google.cloud.dialogflow.v2.Participants.CreateParticipant",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "ParticipantsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Participants.GetLocation",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "ParticipantsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Participants.GetOperation",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_GetParticipant_sync",
"title": "dialogflow GetParticipant Sample",
"description": "GetParticipant retrieves a conversation participant.",
"file": "ParticipantsClient/GetParticipant/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetParticipant",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.GetParticipant",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetParticipantRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Participant",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "GetParticipant",
"fullName": "google.cloud.dialogflow.v2.Participants.GetParticipant",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "ParticipantsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Participants.ListLocations",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "ParticipantsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Participants.ListOperations",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_ListParticipants_sync",
"title": "dialogflow ListParticipants Sample",
"description": "ListParticipants returns the list of all participants in the specified conversation.",
"file": "ParticipantsClient/ListParticipants/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListParticipants",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.ListParticipants",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListParticipantsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ParticipantIterator",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "ListParticipants",
"fullName": "google.cloud.dialogflow.v2.Participants.ListParticipants",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_SuggestArticles_sync",
"title": "dialogflow SuggestArticles Sample",
"description": "SuggestArticles gets suggested articles for a participant based on specific historical\nmessages.",
"file": "ParticipantsClient/SuggestArticles/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SuggestArticles",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.SuggestArticles",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SuggestArticlesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SuggestArticlesResponse",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "SuggestArticles",
"fullName": "google.cloud.dialogflow.v2.Participants.SuggestArticles",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_SuggestFaqAnswers_sync",
"title": "dialogflow SuggestFaqAnswers Sample",
"description": "SuggestFaqAnswers gets suggested faq answers for a participant based on specific historical\nmessages.",
"file": "ParticipantsClient/SuggestFaqAnswers/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SuggestFaqAnswers",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.SuggestFaqAnswers",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SuggestFaqAnswersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SuggestFaqAnswersResponse",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "SuggestFaqAnswers",
"fullName": "google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_SuggestSmartReplies_sync",
"title": "dialogflow SuggestSmartReplies Sample",
"description": "SuggestSmartReplies gets smart replies for a participant based on specific historical\nmessages.",
"file": "ParticipantsClient/SuggestSmartReplies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SuggestSmartReplies",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.SuggestSmartReplies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.SuggestSmartRepliesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SuggestSmartRepliesResponse",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "SuggestSmartReplies",
"fullName": "google.cloud.dialogflow.v2.Participants.SuggestSmartReplies",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Participants_UpdateParticipant_sync",
"title": "dialogflow UpdateParticipant Sample",
"description": "UpdateParticipant updates the specified participant.",
"file": "ParticipantsClient/UpdateParticipant/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateParticipant",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient.UpdateParticipant",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateParticipantRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Participant",
"client": {
"shortName": "ParticipantsClient",
"fullName": "google.cloud.dialogflow.v2.ParticipantsClient"
},
"method": {
"shortName": "UpdateParticipant",
"fullName": "google.cloud.dialogflow.v2.Participants.UpdateParticipant",
"service": {
"shortName": "Participants",
"fullName": "google.cloud.dialogflow.v2.Participants"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "SessionEntityTypesClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.CancelOperation",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_CreateSessionEntityType_sync",
"title": "dialogflow CreateSessionEntityType Sample",
"description": "CreateSessionEntityType creates a session entity type.\n\nIf the specified session entity type already exists, overrides the session\nentity type.\n\nThis method doesn’t work with Google Assistant integration.\nContact Dialogflow support if you need to use session entities\nwith Google Assistant integration.",
"file": "SessionEntityTypesClient/CreateSessionEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.CreateSessionEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateSessionEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SessionEntityType",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "CreateSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_DeleteSessionEntityType_sync",
"title": "dialogflow DeleteSessionEntityType Sample",
"description": "DeleteSessionEntityType deletes the specified session entity type.\n\nThis method doesn’t work with Google Assistant integration.\nContact Dialogflow support if you need to use session entities\nwith Google Assistant integration.",
"file": "SessionEntityTypesClient/DeleteSessionEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.DeleteSessionEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteSessionEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "DeleteSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "SessionEntityTypesClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.GetLocation",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "SessionEntityTypesClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.GetOperation",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_GetSessionEntityType_sync",
"title": "dialogflow GetSessionEntityType Sample",
"description": "GetSessionEntityType retrieves the specified session entity type.\n\nThis method doesn’t work with Google Assistant integration.\nContact Dialogflow support if you need to use session entities\nwith Google Assistant integration.",
"file": "SessionEntityTypesClient/GetSessionEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.GetSessionEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetSessionEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SessionEntityType",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "GetSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "SessionEntityTypesClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.ListLocations",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "SessionEntityTypesClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.ListOperations",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_ListSessionEntityTypes_sync",
"title": "dialogflow ListSessionEntityTypes Sample",
"description": "ListSessionEntityTypes returns the list of all session entity types in the specified session.\n\nThis method doesn’t work with Google Assistant integration.\nContact Dialogflow support if you need to use session entities\nwith Google Assistant integration.",
"file": "SessionEntityTypesClient/ListSessionEntityTypes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListSessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.ListSessionEntityTypes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListSessionEntityTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SessionEntityTypeIterator",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "ListSessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_SessionEntityTypes_UpdateSessionEntityType_sync",
"title": "dialogflow UpdateSessionEntityType Sample",
"description": "UpdateSessionEntityType updates the specified session entity type.\n\nThis method doesn’t work with Google Assistant integration.\nContact Dialogflow support if you need to use session entities\nwith Google Assistant integration.",
"file": "SessionEntityTypesClient/UpdateSessionEntityType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient.UpdateSessionEntityType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateSessionEntityTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.SessionEntityType",
"client": {
"shortName": "SessionEntityTypesClient",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient"
},
"method": {
"shortName": "UpdateSessionEntityType",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType",
"service": {
"shortName": "SessionEntityTypes",
"fullName": "google.cloud.dialogflow.v2.SessionEntityTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "SessionsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Sessions.CancelOperation",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_DetectIntent_sync",
"title": "dialogflow DetectIntent Sample",
"description": "DetectIntent processes a natural language query and returns structured, actionable data\nas a result. This method is not idempotent, because it may cause contexts\nand session entity types to be updated, which in turn might affect\nresults of future queries.\n\nIf you might use\nAgent Assist (at https: //cloud.google.com/dialogflow/docs/#aa)\nor other CCAI products now or in the future, consider using\nAnalyzeContent\ninstead of DetectIntent. AnalyzeContent has additional\nfunctionality for Agent Assist and other CCAI products.\n\nNote: Always use agent versions for production traffic.\nSee Versions and\nenvironments (at https: //cloud.google.com/dialogflow/es/docs/agents-versions).",
"file": "SessionsClient/DetectIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DetectIntent",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.DetectIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DetectIntentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.DetectIntentResponse",
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "DetectIntent",
"fullName": "google.cloud.dialogflow.v2.Sessions.DetectIntent",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "SessionsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Sessions.GetLocation",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "SessionsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Sessions.GetOperation",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "SessionsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Sessions.ListLocations",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "SessionsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Sessions.ListOperations",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Sessions_StreamingDetectIntent_sync",
"title": "dialogflow StreamingDetectIntent Sample",
"description": "StreamingDetectIntent processes a natural language query in audio format in a streaming fashion\nand returns structured, actionable data as a result. This method is only\navailable via the gRPC API (not REST).\n\nIf you might use\nAgent Assist (at https: //cloud.google.com/dialogflow/docs/#aa)\nor other CCAI products now or in the future, consider using\nStreamingAnalyzeContent\ninstead of StreamingDetectIntent. StreamingAnalyzeContent has\nadditional functionality for Agent Assist and other CCAI products.\n\nNote: Always use agent versions for production traffic.\nSee Versions and\nenvironments (at https: //cloud.google.com/dialogflow/es/docs/agents-versions).",
"file": "SessionsClient/StreamingDetectIntent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StreamingDetectIntent",
"fullName": "google.cloud.dialogflow.v2.SessionsClient.StreamingDetectIntent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "SessionsClient",
"fullName": "google.cloud.dialogflow.v2.SessionsClient"
},
"method": {
"shortName": "StreamingDetectIntent",
"fullName": "google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent",
"service": {
"shortName": "Sessions",
"fullName": "google.cloud.dialogflow.v2.Sessions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 63,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_CancelOperation_sync",
"title": "dialogflow CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "VersionsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.cloud.dialogflow.v2.Versions.CancelOperation",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_CreateVersion_sync",
"title": "dialogflow CreateVersion Sample",
"description": "CreateVersion creates an agent version.\n\nThe new version points to the agent instance in the “default” environment.",
"file": "VersionsClient/CreateVersion/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateVersion",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.CreateVersion",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.CreateVersionRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Version",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "CreateVersion",
"fullName": "google.cloud.dialogflow.v2.Versions.CreateVersion",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_DeleteVersion_sync",
"title": "dialogflow DeleteVersion Sample",
"description": "DeleteVersion delete the specified agent version.",
"file": "VersionsClient/DeleteVersion/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteVersion",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.DeleteVersion",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.DeleteVersionRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "DeleteVersion",
"fullName": "google.cloud.dialogflow.v2.Versions.DeleteVersion",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 45,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_GetLocation_sync",
"title": "dialogflow GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "VersionsClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "locationpb.Location",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.dialogflow.v2.Versions.GetLocation",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_GetOperation_sync",
"title": "dialogflow GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "VersionsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "longrunningpb.Operation",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.cloud.dialogflow.v2.Versions.GetOperation",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_GetVersion_sync",
"title": "dialogflow GetVersion Sample",
"description": "GetVersion retrieves the specified agent version.",
"file": "VersionsClient/GetVersion/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetVersion",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.GetVersion",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.GetVersionRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Version",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "GetVersion",
"fullName": "google.cloud.dialogflow.v2.Versions.GetVersion",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_ListLocations_sync",
"title": "dialogflow ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "VersionsClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.dialogflow.v2.Versions.ListLocations",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_ListOperations_sync",
"title": "dialogflow ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "VersionsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.cloud.dialogflow.v2.Versions.ListOperations",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_ListVersions_sync",
"title": "dialogflow ListVersions Sample",
"description": "ListVersions returns the list of all versions of the specified agent.",
"file": "VersionsClient/ListVersions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListVersions",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.ListVersions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.ListVersionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VersionIterator",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "ListVersions",
"fullName": "google.cloud.dialogflow.v2.Versions.ListVersions",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 54,
"type": "FULL"
}
]
},
{
"regionTag": "dialogflow_v2_generated_Versions_UpdateVersion_sync",
"title": "dialogflow UpdateVersion Sample",
"description": "UpdateVersion updates the specified agent version.\n\nNote that this method does not allow you to update the state of the agent\nthe given version points to. It allows you to update only mutable\nproperties of the version resource.",
"file": "VersionsClient/UpdateVersion/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateVersion",
"fullName": "google.cloud.dialogflow.v2.VersionsClient.UpdateVersion",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dialogflowpb.UpdateVersionRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "dialogflowpb.Version",
"client": {
"shortName": "VersionsClient",
"fullName": "google.cloud.dialogflow.v2.VersionsClient"
},
"method": {
"shortName": "UpdateVersion",
"fullName": "google.cloud.dialogflow.v2.Versions.UpdateVersion",
"service": {
"shortName": "Versions",
"fullName": "google.cloud.dialogflow.v2.Versions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 47,
"type": "FULL"
}
]
}
]
}