Class TuningOperation.Builder
-
- All Implemented Interfaces:
public abstract class TuningOperation.BuilderBuilder for TuningOperation.
-
-
Constructor Summary
Constructors Constructor Description TuningOperation.Builder()
-
Method Summary
Modifier and Type Method Description abstract TuningOperation.BuildersdkHttpResponse(HttpResponse sdkHttpResponse)Setter for sdkHttpResponse. TuningOperation.BuildersdkHttpResponse(HttpResponse.Builder sdkHttpResponseBuilder)Setter for sdkHttpResponse builder. TuningOperation.BuilderclearSdkHttpResponse()Clears the value of sdkHttpResponse field. abstract TuningOperation.Buildername(String name)Setter for name. TuningOperation.BuilderclearName()Clears the value of name field. abstract TuningOperation.Buildermetadata(Map<String, Object> metadata)Setter for metadata. TuningOperation.BuilderclearMetadata()Clears the value of metadata field. abstract TuningOperation.Builderdone(boolean done)Setter for done. TuningOperation.BuilderclearDone()Clears the value of done field. abstract TuningOperation.Buildererror(Map<String, Object> error)Setter for error. TuningOperation.BuilderclearError()Clears the value of error field. abstract TuningOperationbuild()-
-
Method Detail
-
sdkHttpResponse
abstract TuningOperation.Builder sdkHttpResponse(HttpResponse sdkHttpResponse)
Setter for sdkHttpResponse.
sdkHttpResponse: Used to retain the full HTTP response.
-
sdkHttpResponse
@CanIgnoreReturnValue() TuningOperation.Builder sdkHttpResponse(HttpResponse.Builder sdkHttpResponseBuilder)
Setter for sdkHttpResponse builder.
sdkHttpResponse: Used to retain the full HTTP response.
-
clearSdkHttpResponse
@CanIgnoreReturnValue() TuningOperation.Builder clearSdkHttpResponse()
Clears the value of sdkHttpResponse field.
-
name
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}`.
-
clearName
@CanIgnoreReturnValue() TuningOperation.Builder clearName()
Clears the value of name field.
-
metadata
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.
-
clearMetadata
@CanIgnoreReturnValue() TuningOperation.Builder clearMetadata()
Clears the value of metadata field.
-
done
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.
-
clearDone
@CanIgnoreReturnValue() TuningOperation.Builder clearDone()
Clears the value of done field.
-
error
abstract TuningOperation.Builder error(Map<String, Object> error)
Setter for error.
error: The error result of the operation in case of failure or cancellation.
-
clearError
@CanIgnoreReturnValue() TuningOperation.Builder clearError()
Clears the value of error field.
-
build
abstract TuningOperation build()
-
-
-
-