code: public EntityRecognizerMetadata withEntityTypes(EntityRecognizerMetadataEntityTypesListItem... entityTypes) {
          if (this.entityTypes == null) {
              setEntityTypes(new java.util.ArrayList<EntityRecognizerMetadataEntityTypesListItem>(entityTypes.length));
          }
          for (EntityRecognizerMetadataEntityTypesListItem ele : entityTypes) {
              this.entityTypes.add(ele);
          }
          return this;
      }
docs: <p>
  Entity types from the metadata of an entity recognizer.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEntityTypes(java.util.Collection)} or {@link #withEntityTypes(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param entityTypes
  Entity types from the metadata of an entity recognizer.
  @return Returns a reference to this object so that method calls can be chained together.