Package io.opencensus.proto.trace.v1
Interface StatusOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Status,Status.Builder
public interface StatusOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCode()The status code.StringgetMessage()A developer-facing error message, which should be in English.com.google.protobuf.ByteStringgetMessageBytes()A developer-facing error message, which should be in English.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCode
int getCode()
The status code. This is optional field. It is safe to assume 0 (OK) when not set.
int32 code = 1;- Returns:
- The code.
-
getMessage
String getMessage()
A developer-facing error message, which should be in English.
string message = 2;- Returns:
- The message.
-
getMessageBytes
com.google.protobuf.ByteString getMessageBytes()
A developer-facing error message, which should be in English.
string message = 2;- Returns:
- The bytes for message.
-
-