Package com.google.api.gax.httpjson
Class HttpJsonStatusCode
- java.lang.Object
-
- com.google.api.gax.httpjson.HttpJsonStatusCode
-
- All Implemented Interfaces:
com.google.api.gax.rpc.StatusCode
@BetaApi @InternalExtensionOnly public class HttpJsonStatusCode extends java.lang.Object implements com.google.api.gax.rpc.StatusCodeA failure code specific to an HTTP call.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)com.google.api.gax.rpc.StatusCode.CodegetCode()java.lang.IntegergetTransportCode()Returns the status code from the http call.inthashCode()static HttpJsonStatusCodeof(int httpStatus)Creates a new instance with the given status code.static HttpJsonStatusCodeof(com.google.api.gax.rpc.StatusCode.Code statusCode)static HttpJsonStatusCodeof(com.google.rpc.Code rpcCode)java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static HttpJsonStatusCode of(int httpStatus)
Creates a new instance with the given status code.
-
of
public static HttpJsonStatusCode of(com.google.api.gax.rpc.StatusCode.Code statusCode)
-
of
public static HttpJsonStatusCode of(com.google.rpc.Code rpcCode)
-
getCode
public com.google.api.gax.rpc.StatusCode.Code getCode()
- Specified by:
getCodein interfacecom.google.api.gax.rpc.StatusCode
-
getTransportCode
public java.lang.Integer getTransportCode()
Returns the status code from the http call.- Specified by:
getTransportCodein interfacecom.google.api.gax.rpc.StatusCode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-