code: public final SessionEntityType createSessionEntityType(
        SessionName parent, SessionEntityType sessionEntityType) {
  
      CreateSessionEntityTypeRequest request =
          CreateSessionEntityTypeRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setSessionEntityType(sessionEntityType)
              .build();
      return createSessionEntityType(request);
    }
docs: Creates a session entity type.
  
  <p>If the specified session entity type already exists, overrides the session entity type.
  
  <p>Sample code:
  
  <pre><code>
  try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
  SessionName parent = SessionName.of("[PROJECT]", "[SESSION]");
  SessionEntityType sessionEntityType = SessionEntityType.newBuilder().build();
  SessionEntityType response = sessionEntityTypesClient.createSessionEntityType(parent, sessionEntityType);
  }
  </code></pre>
  
  @param parent Required. The session to create a session entity type for. Format:
  `projects/&lt;Project ID&gt;/agent/sessions/&lt;Session ID&gt;` or `projects/&lt;Project
  ID&gt;/agent/environments/&lt;Environment ID&gt;/users/&lt;User ID&gt;/
  sessions/&lt;Session ID&gt;`. If `Environment ID` is not specified, we assume default
  'draft' environment. If `User ID` is not specified, we assume default '-' user.
  @param sessionEntityType Required. The session entity type to create.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails