Class ImportFileOperation.Builder
-
- All Implemented Interfaces:
public abstract class ImportFileOperation.BuilderBuilder for ImportFileOperation.
-
-
Constructor Summary
Constructors Constructor Description ImportFileOperation.Builder()
-
Method Summary
Modifier and Type Method Description abstract ImportFileOperation.Buildername(String name)Setter for name. ImportFileOperation.BuilderclearName()Clears the value of name field. abstract ImportFileOperation.Buildermetadata(Map<String, Object> metadata)Setter for metadata. ImportFileOperation.BuilderclearMetadata()Clears the value of metadata field. abstract ImportFileOperation.Builderdone(boolean done)Setter for done. ImportFileOperation.BuilderclearDone()Clears the value of done field. abstract ImportFileOperation.Buildererror(Map<String, Object> error)Setter for error. ImportFileOperation.BuilderclearError()Clears the value of error field. abstract ImportFileOperation.Builderresponse(ImportFileResponse response)Setter for response. ImportFileOperation.Builderresponse(ImportFileResponse.Builder responseBuilder)Setter for response builder. ImportFileOperation.BuilderclearResponse()Clears the value of response field. abstract ImportFileOperationbuild()-
-
Method Detail
-
name
abstract ImportFileOperation.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() ImportFileOperation.Builder clearName()
Clears the value of name field.
-
metadata
abstract ImportFileOperation.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() ImportFileOperation.Builder clearMetadata()
Clears the value of metadata field.
-
done
abstract ImportFileOperation.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() ImportFileOperation.Builder clearDone()
Clears the value of done field.
-
error
abstract ImportFileOperation.Builder error(Map<String, Object> error)
Setter for error.
error: The error result of the operation in case of failure or cancellation.
-
clearError
@CanIgnoreReturnValue() ImportFileOperation.Builder clearError()
Clears the value of error field.
-
response
abstract ImportFileOperation.Builder response(ImportFileResponse response)
Setter for response.
response: The result of the ImportFile operation, available when the operation is done.
-
response
@CanIgnoreReturnValue() ImportFileOperation.Builder response(ImportFileResponse.Builder responseBuilder)
Setter for response builder.
response: The result of the ImportFile operation, available when the operation is done.
-
clearResponse
@CanIgnoreReturnValue() ImportFileOperation.Builder clearResponse()
Clears the value of response field.
-
build
abstract ImportFileOperation build()
-
-
-
-