from google.cloud import dialogflow_v2


def sample_list_messages():
    # Create a client
    client = dialogflow_v2.ConversationsClient()

    # Initialize request argument(s)
    request = dialogflow_v2.ListMessagesRequest(
        parent="parent_value",
    )

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

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

# [END dialogflow_v2_generated_Conversations_ListMessages_sync]
