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

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

    # Make the request
    client.delete_session_entity_type(request=request)
コード例 #2
0
def sample_update_session_entity_type():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesClient()

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

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

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

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

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

    # Handle the response
    print(response)
コード例 #4
0
def sample_list_session_entity_types():
    # Create a client
    client = dialogflow_v2beta1.SessionEntityTypesClient()

    # 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
    for response in page_result:
        print(response)