Class GrpcStatusCode

  • All Implemented Interfaces:
    com.google.api.gax.rpc.StatusCode

    @InternalExtensionOnly
    public abstract class GrpcStatusCode
    extends java.lang.Object
    implements com.google.api.gax.rpc.StatusCode
    A failure code specific to a gRPC call.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.api.gax.rpc.StatusCode

        com.google.api.gax.rpc.StatusCode.Code
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcStatusCode()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.api.gax.rpc.StatusCode.Code getCode()
      Returns the Status.Code from grpc.
      abstract io.grpc.Status.Code getTransportCode()  
      static GrpcStatusCode of​(io.grpc.Status.Code grpcCode)
      Creates a new instance with the given Status.Code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrpcStatusCode

        public GrpcStatusCode()
    • Method Detail

      • of

        public static GrpcStatusCode of​(io.grpc.Status.Code grpcCode)
        Creates a new instance with the given Status.Code.
      • getCode

        public com.google.api.gax.rpc.StatusCode.Code getCode()
        Returns the Status.Code from grpc.
        Specified by:
        getCode in interface com.google.api.gax.rpc.StatusCode
      • getTransportCode

        public abstract io.grpc.Status.Code getTransportCode()
        Specified by:
        getTransportCode in interface com.google.api.gax.rpc.StatusCode