All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.model.Operation.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241027-2.0.0
Show newest version






Operation (Google Drive API v3-rev20240914-2.0.0)












com.google.api.services.drive.model

Class Operation

    • Constructor Detail

      • Operation

        public Operation()
    • Method Detail

      • getDone

        public Boolean getDone()
        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.
        Returns:
        value or null for none
      • setDone

        public Operation setDone(Boolean 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.
        Parameters:
        done - done or null for none
      • getError

        public Status getError()
        The error result of the operation in case of failure or cancellation.
        Returns:
        value or null for none
      • setError

        public Operation setError(Status error)
        The error result of the operation in case of failure or cancellation.
        Parameters:
        error - error or null for none
      • getMetadata

        public Map<String,Object> getMetadata()
        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.
        Returns:
        value or null for none
      • setMetadata

        public Operation setMetadata(Map<String,Object> 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.
        Parameters:
        metadata - metadata or null for none
      • getName

        public String getName()
        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}`.
        Returns:
        value or null for none
      • setName

        public Operation setName(String 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}`.
        Parameters:
        name - name or null for none
      • getResponse

        public Map<String,Object> getResponse()
        The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
        Returns:
        value or null for none
      • setResponse

        public Operation setResponse(Map<String,Object> response)
        The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
        Parameters:
        response - response or null for none
      • set

        public Operation set(String fieldName,
                             Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Operation clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy