async def sample_delete_entity_type(): # Create a client client = dialogflowcx_v3beta1.EntityTypesAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.DeleteEntityTypeRequest( name="name_value", ) # Make the request await client.delete_entity_type(request=request)
async def sample_get_entity_type(): # Create a client client = dialogflowcx_v3beta1.EntityTypesAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.GetEntityTypeRequest( name="name_value", ) # Make the request response = await client.get_entity_type(request=request) # Handle the response print(response)
async def sample_list_entity_types(): # Create a client client = dialogflowcx_v3beta1.EntityTypesAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3beta1.ListEntityTypesRequest( parent="parent_value", ) # Make the request page_result = client.list_entity_types(request=request) # Handle the response async for response in page_result: print(response)
async def sample_update_entity_type(): # Create a client client = dialogflowcx_v3beta1.EntityTypesAsyncClient() # Initialize request argument(s) entity_type = dialogflowcx_v3beta1.EntityType() entity_type.display_name = "display_name_value" entity_type.kind = "KIND_REGEXP" request = dialogflowcx_v3beta1.UpdateEntityTypeRequest( entity_type=entity_type, ) # Make the request response = await client.update_entity_type(request=request) # Handle the response print(response)