setFunctionType(other.getFunctionType());
@Override public final boolean containFunction(final String signature, FunctionType funcType, DataType... paramTypes) { final ContainFunctionRequest.Builder builder = ContainFunctionRequest.newBuilder(); if (funcType != null) { builder.setFunctionType(funcType); } builder.setSignature(signature); for (DataType type : paramTypes) { builder.addParameterTypes(type); } try { final BlockingInterface stub = getStub(); final ReturnState state = stub.containFunction(null, builder.build()); if (isThisError(state, UNDEFINED_FUNCTION)) { return false; } ensureOk(state); return true; } catch (ServiceException e) { throw new RuntimeException(e); } }
@Override public final boolean containFunction(final String signature, FunctionType funcType, DataType... paramTypes) { final ContainFunctionRequest.Builder builder = ContainFunctionRequest.newBuilder(); if (funcType != null) { builder.setFunctionType(funcType); } builder.setSignature(signature); for (DataType type : paramTypes) { builder.addParameterTypes(type); } try { final BlockingInterface stub = getStub(); final ReturnState state = stub.containFunction(null, builder.build()); if (isThisError(state, UNDEFINED_FUNCTION)) { return false; } ensureOk(state); return true; } catch (ServiceException e) { throw new RuntimeException(e); } }