Class TuningOperation.Builder

java.lang.Object
com.google.genai.types.TuningOperation.Builder
Enclosing class:
TuningOperation

public abstract static class TuningOperation.Builder extends Object
Builder for TuningOperation.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • sdkHttpResponse

      public abstract TuningOperation.Builder sdkHttpResponse(HttpResponse sdkHttpResponse)
      Setter for sdkHttpResponse.

      sdkHttpResponse: Used to retain the full HTTP response.

    • sdkHttpResponse

      public TuningOperation.Builder sdkHttpResponse(HttpResponse.Builder sdkHttpResponseBuilder)
      Setter for sdkHttpResponse builder.

      sdkHttpResponse: Used to retain the full HTTP response.

    • name

      public abstract TuningOperation.Builder name(String name)
      Setter for name.

      name: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.

    • metadata

      public abstract TuningOperation.Builder metadata(Map<String,Object> metadata)
      Setter for metadata.

      metadata: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

    • done

      public abstract TuningOperation.Builder done(boolean done)
      Setter for done.

      done: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.

    • error

      public abstract TuningOperation.Builder error(Map<String,Object> error)
      Setter for error.

      error: The error result of the operation in case of failure or cancellation.

    • build

      public abstract TuningOperation build()