code: public final EntityType updateEntityType(EntityType entityType, String languageCode) {
  
      UpdateEntityTypeRequest request =
          UpdateEntityTypeRequest.newBuilder()
              .setEntityType(entityType)
              .setLanguageCode(languageCode)
              .build();
      return updateEntityType(request);
    }
docs: Updates the specified entity type.
  
  <p>Sample code:
  
  <pre><code>
  try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
  EntityType entityType = EntityType.newBuilder().build();
  String languageCode = "";
  EntityType response = entityTypesClient.updateEntityType(entityType, languageCode);
  }
  </code></pre>
  
  @param entityType Required. The entity type to update.
  @param languageCode Optional. The language of entity synonyms defined in `entity_type`. If not
  specified, the agent's default language is used. [Many
  languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) are
  supported. Note: languages must be enabled in the agent before they can be used.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails