def sample_delete_entity_type():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

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

    # Make the request
    client.delete_entity_type(request=request)
def sample_get_entity_type():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

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

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

    # Handle the response
    print(response)
Example #3
0
def sample_list_entity_types():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

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

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

    # Handle the response
    for response in page_result:
        print(response)
Example #4
0
def sample_update_entity_type():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

    # Initialize request argument(s)
    entity_type = dialogflow_v2beta1.EntityType()
    entity_type.display_name = "display_name_value"
    entity_type.kind = "KIND_REGEXP"

    request = dialogflow_v2beta1.UpdateEntityTypeRequest(
        entity_type=entity_type, )

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

    # Handle the response
    print(response)
Example #5
0
def sample_batch_update_entity_types():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.BatchUpdateEntityTypesRequest(
        entity_type_batch_uri="entity_type_batch_uri_value",
        parent="parent_value",
    )

    # Make the request
    operation = client.batch_update_entity_types(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Example #6
0
def sample_batch_delete_entities():
    # Create a client
    client = dialogflow_v2beta1.EntityTypesClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.BatchDeleteEntitiesRequest(
        parent="parent_value",
        entity_values=['entity_values_value_1', 'entity_values_value_2'],
    )

    # Make the request
    operation = client.batch_delete_entities(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)