Package com.google.api.gax.httpjson
Class HttpJsonOperationSnapshot
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonOperationSnapshot
-
- All Implemented Interfaces:
OperationSnapshot
@BetaApi @InternalApi public class HttpJsonOperationSnapshot extends Object implements 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(Operation operation)StatusCodegetErrorCode()StringgetErrorMessage()ObjectgetMetadata()StringgetName()ObjectgetResponse()booleanisDone()static HttpJsonOperationSnapshot.BuildernewBuilder()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceOperationSnapshot
-
getMetadata
public Object getMetadata()
- Specified by:
getMetadatain interfaceOperationSnapshot
-
isDone
public boolean isDone()
- Specified by:
isDonein interfaceOperationSnapshot
-
getResponse
public Object getResponse()
- Specified by:
getResponsein interfaceOperationSnapshot
-
getErrorCode
public StatusCode getErrorCode()
- Specified by:
getErrorCodein interfaceOperationSnapshot
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfaceOperationSnapshot
-
create
public static HttpJsonOperationSnapshot create(Operation operation)
-
newBuilder
public static HttpJsonOperationSnapshot.Builder newBuilder()
-
-