Package p4.v1
Interface P4RuntimeOuterClass.ErrorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4RuntimeOuterClass.Error,P4RuntimeOuterClass.Error.Builder
- Enclosing class:
P4RuntimeOuterClass
public static interface P4RuntimeOuterClass.ErrorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)intgetCode()Numeric code drawn from target-specific error space above.com.google.protobuf.AnyOptional: Allows reporting back additional target-specific details on the error.com.google.protobuf.AnyOrBuilderOptional: Allows reporting back additional target-specific details on the error.Detailed error message.com.google.protobuf.ByteStringDetailed error message.getSpace()Target and architecture specific space to which this error belongs.com.google.protobuf.ByteStringTarget and architecture specific space to which this error belongs.booleanOptional: Allows reporting back additional target-specific details on the error.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCanonicalCode
int getCanonicalCode()gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
int32 canonical_code = 1;- Returns:
- The canonicalCode.
-
getMessage
String getMessage()Detailed error message.
string message = 2;- Returns:
- The message.
-
getMessageBytes
com.google.protobuf.ByteString getMessageBytes()Detailed error message.
string message = 2;- Returns:
- The bytes for message.
-
getSpace
String getSpace()Target and architecture specific space to which this error belongs. We encourage using triplet: <target>-<arch>-<vendor>, e.g."targetX-psa-vendor1" or "targetY-psa-vendor2".
string space = 3;- Returns:
- The space.
-
getSpaceBytes
com.google.protobuf.ByteString getSpaceBytes()Target and architecture specific space to which this error belongs. We encourage using triplet: <target>-<arch>-<vendor>, e.g."targetX-psa-vendor1" or "targetY-psa-vendor2".
string space = 3;- Returns:
- The bytes for space.
-
getCode
int getCode()Numeric code drawn from target-specific error space above.
int32 code = 4;- Returns:
- The code.
-
hasDetails
boolean hasDetails()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;- Returns:
- Whether the details field is set.
-
getDetails
com.google.protobuf.Any getDetails()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;- Returns:
- The details.
-
getDetailsOrBuilder
com.google.protobuf.AnyOrBuilder getDetailsOrBuilder()Optional: Allows reporting back additional target-specific details on the error.
.google.protobuf.Any details = 5;
-