async def sample_get_conversation_dataset(): # Create a client client = dialogflow_v2.ConversationDatasetsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.GetConversationDatasetRequest(name="name_value", ) # Make the request response = await client.get_conversation_dataset(request=request) # Handle the response print(response)
async def sample_list_conversation_datasets(): # Create a client client = dialogflow_v2.ConversationDatasetsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.ListConversationDatasetsRequest( parent="parent_value", ) # Make the request page_result = client.list_conversation_datasets(request=request) # Handle the response async for response in page_result: print(response)
async def sample_delete_conversation_dataset(): # Create a client client = dialogflow_v2.ConversationDatasetsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.DeleteConversationDatasetRequest( name="name_value", ) # Make the request operation = client.delete_conversation_dataset(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)
async def sample_import_conversation_data(): # Create a client client = dialogflow_v2.ConversationDatasetsAsyncClient() # Initialize request argument(s) input_config = dialogflow_v2.InputConfig() input_config.gcs_source.uris = ['uris_value_1', 'uris_value_2'] request = dialogflow_v2.ImportConversationDataRequest( name="name_value", input_config=input_config, ) # Make the request operation = client.import_conversation_data(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)