code: public void setEntityTypes(java.util.Collection<EntityRecognizerMetadataEntityTypesListItem> entityTypes) {
          if (entityTypes == null) {
              this.entityTypes = null;
              return;
          }
  
          this.entityTypes = new java.util.ArrayList<EntityRecognizerMetadataEntityTypesListItem>(entityTypes);
      }
docs: <p>
  Entity types from the metadata of an entity recognizer.
  </p>
  
  @param entityTypes
  Entity types from the metadata of an entity recognizer.