Table of Contents

Class OperationStatus

The OperationStatus type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC.

public class OperationStatus
Inheritance
OperationStatus

Remarks

Each OperationStatus message contains three pieces of data: error code, error message, and error details.

Fields

Code

The status code, which should be an enum value of google.rpc.Code.

public int Code

Field Value

int

Details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

public ProtobufObject[] Details

Field Value

ProtobufObject[]

Message

A developer-facing error message, which should be in English.

public string Message

Field Value

string

Remarks

Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.