public static void asyncUnimplementedUnaryCall(
      MethodDescriptor<?, ?> methodDescriptor, StreamObserver<?> responseObserver) {
    checkNotNull(methodDescriptor, "methodDescriptor");
    checkNotNull(responseObserver, "responseObserver");
    responseObserver.onError(Status.UNIMPLEMENTED
        .withDescription(String.format("Method %s is unimplemented",
            methodDescriptor.getFullMethodName()))
        .asRuntimeException());
  }
public static void asyncUnimplementedUnaryCall ( MethodDescriptor < ? , ? > methodDescriptor , StreamObserver < ? > responseObserver ) { checkNotNull ( methodDescriptor , "methodDescriptor" ) ; checkNotNull ( responseObserver , "responseObserver" ) ; responseObserver . onError ( Status . UNIMPLEMENTED . withDescription ( String . format ( "Method %s is unimplemented" , methodDescriptor . getFullMethodName ( ) ) ) . asRuntimeException ( ) ) ; }
Sets unimplemented status for method on given response stream for unary call.

@param methodDescriptor of method for which error will be thrown.
@param responseObserver on which error will be set.