Equivalent toService#callMethod, except thatcallBlockingMethod()returns the
result of the RPC or throws aServiceExceptionif there is a failure, rather than
passing the information to a callback.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface BlockingService (3.19.4)\n\n public interface BlockingService\n\nBlocking equivalent to [Service](/java/docs/reference/protobuf/latest/com.google.protobuf.Service).\n\nMethods\n-------\n\n### callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request)\n\n public abstract Message callBlockingMethod(Descriptors.MethodDescriptor method, RpcController controller, Message request)\n\nEquivalent to [Service#callMethod](/java/docs/reference/protobuf/latest/com.google.protobuf.Service#com_google_protobuf_Service_callMethod_), except that `callBlockingMethod()` returns the\nresult of the RPC or throws a [ServiceException](/java/docs/reference/protobuf/latest/com.google.protobuf.ServiceException) if there is a failure, rather than\npassing the information to a callback.\n\n### getDescriptorForType()\n\n public abstract Descriptors.ServiceDescriptor getDescriptorForType()\n\nEquivalent to [Service#getDescriptorForType](/java/docs/reference/protobuf/latest/com.google.protobuf.Service#com_google_protobuf_Service_getDescriptorForType_).\n\n### getRequestPrototype(Descriptors.MethodDescriptor method)\n\n public abstract Message getRequestPrototype(Descriptors.MethodDescriptor method)\n\nEquivalent to [Service#getRequestPrototype](/java/docs/reference/protobuf/latest/com.google.protobuf.Service#com_google_protobuf_Service_getRequestPrototype_).\n\n### getResponsePrototype(Descriptors.MethodDescriptor method)\n\n public abstract Message getResponsePrototype(Descriptors.MethodDescriptor method)\n\nEquivalent to [Service#getResponsePrototype](/java/docs/reference/protobuf/latest/com.google.protobuf.Service#com_google_protobuf_Service_getResponsePrototype_)."]]