Class ComfyRequest

java.lang.Object
cloud.liblibai.openapi.client.model.ComfyRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-05T15:10:08.947334966+08:00[Asia/Shanghai]", comments="Generator version: 7.10.0") public class ComfyRequest extends Object
ComfyRequest
  • Field Details

  • Constructor Details

    • ComfyRequest

      public ComfyRequest()
  • Method Details

    • templateUuid

      public ComfyRequest templateUuid(@Nullable String templateUuid)
    • getTemplateUuid

      @Nullable public String getTemplateUuid()
      默认模版uuid
      Returns:
      templateUuid
    • setTemplateUuid

      public void setTemplateUuid(@Nullable String templateUuid)
    • generateParams

      public ComfyRequest generateParams(@Nonnull Map<String,ComfyNodeParams> generateParams)
    • putGenerateParamsItem

      public ComfyRequest putGenerateParamsItem(String key, ComfyNodeParams generateParamsItem)
    • getGenerateParams

      @Nonnull public Map<String,ComfyNodeParams> getGenerateParams()
      生图参数,json结构
      Returns:
      generateParams
    • setGenerateParams

      public void setGenerateParams(@Nonnull Map<String,ComfyNodeParams> generateParams)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ComfyRequest
    • fromJson

      public static ComfyRequest fromJson(String jsonString) throws IOException
      Create an instance of ComfyRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ComfyRequest
      Throws:
      IOException - if the JSON string is invalid with respect to ComfyRequest
    • toJson

      public String toJson()
      Convert an instance of ComfyRequest to an JSON string
      Returns:
      JSON string