|
dataflow
v1b3
|
#include <status.h>
Public Member Functions | |
| Status (const Json::Value &storage) | |
| Status (Json::Value *storage) | |
| virtual | ~Status () |
| const StringPiece | GetTypeName () const |
| bool | has_code () const |
| void | clear_code () |
| int32 | get_code () const |
| void | set_code (int32 value) |
| bool | has_details () const |
| void | clear_details () |
| const client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > | get_details () const |
| client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > | mutable_details () |
| bool | has_message () const |
| void | clear_message () |
| const StringPiece | get_message () const |
| void | set_message (const StringPiece &value) |
Static Public Member Functions | |
| static Status * | New () |
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the API Design Guide.
|
explicit |
Standard constructor for an immutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'code' attribute.
|
inline |
Clears the 'details' attribute.
|
inline |
Clears the 'message' attribute.
|
inline |
Get the value of the 'code' attribute.
|
inline |
Get a reference to the value of the 'details' attribute.
|
inline |
Get the value of the 'message' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_dataflow_api::Status
|
inline |
Determine if the 'code' attribute was set.
code' attribute was set.
|
inline |
Determine if the 'details' attribute was set.
details' attribute was set.
|
inline |
Determine if the 'message' attribute was set.
message' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'details' property.
A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
static |
Creates a new default instance.
|
inline |
Change the 'code' attribute.
The status code, which should be an enum value of google.rpc.Code.
| [in] | value | The new value. |
|
inline |
Change the 'message' attribute.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
| [in] | value | The new value. |