async def sample_delete_session_entity_type():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.DeleteSessionEntityTypeRequest(
        name="name_value", )

    # Make the request
    await client.delete_session_entity_type(request=request)
示例#2
0
async def sample_update_session_entity_type():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.UpdateSessionEntityTypeRequest()

    # Make the request
    response = await client.update_session_entity_type(request=request)

    # Handle the response
    print(response)
async def sample_get_session_entity_type():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.GetSessionEntityTypeRequest(
        name="name_value", )

    # Make the request
    response = await client.get_session_entity_type(request=request)

    # Handle the response
    print(response)
async def sample_list_session_entity_types():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.ListSessionEntityTypesRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_session_entity_types(request=request)

    # Handle the response
    async for response in page_result:
        print(response)