Class Status (2.49.0)

public final class Status implements Serializable

The Status type defines a logical error model. Each Status message contains an error code and a error message.

This primarily wraps the protobuf com.google.rpc.Status.

Inheritance

Object > Status

Implements

Serializable

Static Methods

fromProto(Status proto)

public static Status fromProto(Status proto)

Wraps the given protobuf Status

Parameter
Name Description
proto com.google.rpc.Status
Returns
Type Description
Status

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getCode()

public Status.Code getCode()

Gets the typesafe code.

Returns
Type Description
Status.Code

getMessage()

public String getMessage()

Gets error message.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toProto()

public Status toProto()

Gets the underlying protobuf.

Returns
Type Description
com.google.rpc.Status

toString()

public String toString()
Returns
Type Description
String
Overrides