Package com.google.api.gax.httpjson
Class HttpJsonOperationSnapshot
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonOperationSnapshot
-
- All Implemented Interfaces:
com.google.api.gax.longrunning.OperationSnapshot
@BetaApi @InternalApi public class HttpJsonOperationSnapshot extends Object implements com.google.api.gax.longrunning.OperationSnapshot
Implementation of OperationSnapshot based on REST transport.Public for technical reasons. For internal use only.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpJsonOperationSnapshot.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpJsonOperationSnapshotcreate(com.google.longrunning.Operation operation)com.google.api.gax.rpc.StatusCodegetErrorCode()StringgetErrorMessage()ObjectgetMetadata()StringgetName()ObjectgetResponse()booleanisDone()static HttpJsonOperationSnapshot.BuildernewBuilder()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacecom.google.api.gax.longrunning.OperationSnapshot
-
getMetadata
public Object getMetadata()
- Specified by:
getMetadatain interfacecom.google.api.gax.longrunning.OperationSnapshot
-
isDone
public boolean isDone()
- Specified by:
isDonein interfacecom.google.api.gax.longrunning.OperationSnapshot
-
getResponse
public Object getResponse()
- Specified by:
getResponsein interfacecom.google.api.gax.longrunning.OperationSnapshot
-
getErrorCode
public com.google.api.gax.rpc.StatusCode getErrorCode()
- Specified by:
getErrorCodein interfacecom.google.api.gax.longrunning.OperationSnapshot
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfacecom.google.api.gax.longrunning.OperationSnapshot
-
create
public static HttpJsonOperationSnapshot create(com.google.longrunning.Operation operation)
-
newBuilder
public static HttpJsonOperationSnapshot.Builder newBuilder()
-
-