async def sample_delete_conversation_profile():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

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

    # Make the request
    await client.delete_conversation_profile(request=request)
async def sample_get_conversation_profile():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

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

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

    # Handle the response
    print(response)
Пример #3
0
async def sample_list_conversation_profiles():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

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

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

    # Handle the response
    async for response in page_result:
        print(response)
async def sample_update_conversation_profile():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

    # Initialize request argument(s)
    conversation_profile = dialogflow_v2beta1.ConversationProfile()
    conversation_profile.display_name = "display_name_value"

    request = dialogflow_v2beta1.UpdateConversationProfileRequest(
        conversation_profile=conversation_profile, )

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

    # Handle the response
    print(response)
Пример #5
0
async def sample_set_suggestion_feature_config():
    # Create a client
    client = dialogflow_v2beta1.ConversationProfilesAsyncClient()

    # Initialize request argument(s)
    request = dialogflow_v2beta1.SetSuggestionFeatureConfigRequest(
        conversation_profile="conversation_profile_value",
        participant_role="END_USER",
    )

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

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

    response = await operation.result()

    # Handle the response
    print(response)