Package com.google.genai.types
Class TuningOperation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TuningOperation
A long-running operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for TuningOperation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TuningOperation.Builder
builder()
Instantiates a builder for TuningOperation.done()
If the value is `false`, it means the operation is still in progress.error()
The error result of the operation in case of failure or cancellation.static TuningOperation
Deserializes a JSON string to a TuningOperation object.metadata()
Service-specific metadata associated with the operation.name()
The server-assigned name, which is only unique within the same service that originally returns it.abstract Optional<HttpResponse>
Used to retain the full HTTP response.abstract TuningOperation.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
TuningOperation
public TuningOperation()
-
-
Method Details
-
sdkHttpResponse
Used to retain the full HTTP response. -
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
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
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
The error result of the operation in case of failure or cancellation. -
builder
Instantiates a builder for TuningOperation. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a TuningOperation object.
-