code: async function createSessionEntityType(
    projectId,
    sessionId,
    entityValues,
    entityTypeDisplayName,
    entityOverrideMode
  ) {
    // Imports the Dialogflow library
    const dialogflow = require('dialogflow');
  
    // Instantiates clients
    const sessionEntityTypesClient = new dialogflow.SessionEntityTypesClient();
  
    const sessionPath = sessionEntityTypesClient.sessionPath(
      projectId,
      sessionId
    );
    const sessionEntityTypePath = sessionEntityTypesClient.sessionEntityTypePath(
      projectId,
      sessionId,
      entityTypeDisplayName
    );
  
    // Here we use the entity value as the only synonym.
    const entities = [];
    entityValues.forEach(entityValue => {
      entities.push({
        value: entityValue,
        synonyms: [entityValue],
      });
    });
  
    const sessionEntityTypeRequest = {
      parent: sessionPath,
      sessionEntityType: {
        name: sessionEntityTypePath,
        entityOverrideMode: entityOverrideMode,
        entities: entities,
      },
    };
  
    const [response] = await sessionEntityTypesClient.createSessionEntityType(
      sessionEntityTypeRequest
    );
    console.log('SessionEntityType created:');
    console.log(response);
  }
docs: ///////////////////////////////////////////////////////////////////////////// Operations for session entity type /////////////////////////////////////////////////////////////////////////////