def sample_delete_session_entity_type(): # Create a client client = dialogflowcx_v3.SessionEntityTypesClient() # Initialize request argument(s) request = dialogflowcx_v3.DeleteSessionEntityTypeRequest( name="name_value", ) # Make the request client.delete_session_entity_type(request=request)
def sample_get_session_entity_type(): # Create a client client = dialogflowcx_v3.SessionEntityTypesClient() # Initialize request argument(s) request = dialogflowcx_v3.GetSessionEntityTypeRequest( name="name_value", ) # Make the request response = client.get_session_entity_type(request=request) # Handle the response print(response)
def sample_list_session_entity_types(): # Create a client client = dialogflowcx_v3.SessionEntityTypesClient() # Initialize request argument(s) request = dialogflowcx_v3.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)
def sample_update_session_entity_type(): # Create a client client = dialogflowcx_v3.SessionEntityTypesClient() # Initialize request argument(s) session_entity_type = dialogflowcx_v3.SessionEntityType() session_entity_type.name = "name_value" session_entity_type.entity_override_mode = "ENTITY_OVERRIDE_MODE_SUPPLEMENT" session_entity_type.entities.value = "value_value" session_entity_type.entities.synonyms = [ 'synonyms_value_1', 'synonyms_value_2' ] request = dialogflowcx_v3.UpdateSessionEntityTypeRequest( session_entity_type=session_entity_type, ) # Make the request response = client.update_session_entity_type(request=request) # Handle the response print(response)