async def sample_create_participant(): # Create a client client = dialogflow_v2.ParticipantsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.CreateParticipantRequest(parent="parent_value", ) # Make the request response = await client.create_participant(request=request) # Handle the response print(response)
async def sample_get_participant(): # Create a client client = dialogflow_v2.ParticipantsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.GetParticipantRequest(name="name_value", ) # Make the request response = await client.get_participant(request=request) # Handle the response print(response)
async def sample_suggest_faq_answers(): # Create a client client = dialogflow_v2.ParticipantsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.SuggestFaqAnswersRequest(parent="parent_value", ) # Make the request response = await client.suggest_faq_answers(request=request) # Handle the response print(response)
async def sample_list_participants(): # Create a client client = dialogflow_v2.ParticipantsAsyncClient() # Initialize request argument(s) request = dialogflow_v2.ListParticipantsRequest(parent="parent_value", ) # Make the request page_result = client.list_participants(request=request) # Handle the response async for response in page_result: print(response)
async def sample_analyze_content(): # Create a client client = dialogflow_v2.ParticipantsAsyncClient() # Initialize request argument(s) text_input = dialogflow_v2.TextInput() text_input.text = "text_value" text_input.language_code = "language_code_value" request = dialogflow_v2.AnalyzeContentRequest( text_input=text_input, participant="participant_value", ) # Make the request response = await client.analyze_content(request=request) # Handle the response print(response)