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 Type
    Method
    Description
    int
    gRPC canonical error code (see https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
    int
    Numeric code drawn from target-specific error space above.
    com.google.protobuf.Any
    Optional: Allows reporting back additional target-specific details on the error.
    com.google.protobuf.AnyOrBuilder
    Optional: Allows reporting back additional target-specific details on the error.
    Detailed error message.
    com.google.protobuf.ByteString
    Detailed error message.
    Target and architecture specific space to which this error belongs.
    com.google.protobuf.ByteString
    Target and architecture specific space to which this error belongs.
    boolean
    Optional: Allows reporting back additional target-specific details on the error.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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;