TaiheRegisterServiceGrpc.java 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  1. package com.ywt.gapi.taihe.register;
  2. import static io.grpc.stub.ClientCalls.asyncUnaryCall;
  3. import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
  4. import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
  5. import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
  6. import static io.grpc.stub.ClientCalls.blockingUnaryCall;
  7. import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
  8. import static io.grpc.stub.ClientCalls.futureUnaryCall;
  9. import static io.grpc.MethodDescriptor.generateFullMethodName;
  10. import static io.grpc.stub.ServerCalls.asyncUnaryCall;
  11. import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
  12. import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
  13. import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
  14. import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
  15. import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
  16. /**
  17. * <pre>
  18. *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
  19. * </pre>
  20. */
  21. @javax.annotation.Generated(
  22. value = "by gRPC proto compiler (version 1.7.0)",
  23. comments = "Source: taihe_register.proto")
  24. public final class TaiheRegisterServiceGrpc {
  25. private TaiheRegisterServiceGrpc() {}
  26. public static final String SERVICE_NAME = "com.ywt.gapi.taihe.register.TaiheRegisterService";
  27. // Static method descriptors that strictly reflect the proto.
  28. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  29. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.CreateRegisteredRequest,
  30. com.ywt.gapi.taihe.register.CreateRegisteredResponse> METHOD_CREATE_REGISTERED =
  31. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.CreateRegisteredRequest, com.ywt.gapi.taihe.register.CreateRegisteredResponse>newBuilder()
  32. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  33. .setFullMethodName(generateFullMethodName(
  34. "com.ywt.gapi.taihe.register.TaiheRegisterService", "createRegistered"))
  35. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  36. com.ywt.gapi.taihe.register.CreateRegisteredRequest.getDefaultInstance()))
  37. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  38. com.ywt.gapi.taihe.register.CreateRegisteredResponse.getDefaultInstance()))
  39. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("createRegistered"))
  40. .build();
  41. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  42. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.CancelRegisteredRequest,
  43. com.ywt.gapi.taihe.register.CancelRegisteredResponse> METHOD_CANCEL_REGISTERED =
  44. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.CancelRegisteredRequest, com.ywt.gapi.taihe.register.CancelRegisteredResponse>newBuilder()
  45. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  46. .setFullMethodName(generateFullMethodName(
  47. "com.ywt.gapi.taihe.register.TaiheRegisterService", "cancelRegistered"))
  48. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  49. com.ywt.gapi.taihe.register.CancelRegisteredRequest.getDefaultInstance()))
  50. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  51. com.ywt.gapi.taihe.register.CancelRegisteredResponse.getDefaultInstance()))
  52. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("cancelRegistered"))
  53. .build();
  54. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  55. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.PayCallbackRequest,
  56. com.ywt.gapi.taihe.register.PayCallbackResponse> METHOD_PAY_CALLBACK =
  57. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.PayCallbackRequest, com.ywt.gapi.taihe.register.PayCallbackResponse>newBuilder()
  58. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  59. .setFullMethodName(generateFullMethodName(
  60. "com.ywt.gapi.taihe.register.TaiheRegisterService", "payCallback"))
  61. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  62. com.ywt.gapi.taihe.register.PayCallbackRequest.getDefaultInstance()))
  63. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  64. com.ywt.gapi.taihe.register.PayCallbackResponse.getDefaultInstance()))
  65. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("payCallback"))
  66. .build();
  67. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  68. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.RefundCallbackRequest,
  69. com.ywt.gapi.taihe.register.RefundCallbackResponse> METHOD_REFUND_CALLBACK =
  70. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.RefundCallbackRequest, com.ywt.gapi.taihe.register.RefundCallbackResponse>newBuilder()
  71. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  72. .setFullMethodName(generateFullMethodName(
  73. "com.ywt.gapi.taihe.register.TaiheRegisterService", "refundCallback"))
  74. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  75. com.ywt.gapi.taihe.register.RefundCallbackRequest.getDefaultInstance()))
  76. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  77. com.ywt.gapi.taihe.register.RefundCallbackResponse.getDefaultInstance()))
  78. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("refundCallback"))
  79. .build();
  80. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  81. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.RegisterRequest,
  82. com.ywt.gapi.taihe.register.RegisterResponse> METHOD_REGISTER =
  83. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.RegisterRequest, com.ywt.gapi.taihe.register.RegisterResponse>newBuilder()
  84. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  85. .setFullMethodName(generateFullMethodName(
  86. "com.ywt.gapi.taihe.register.TaiheRegisterService", "register"))
  87. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  88. com.ywt.gapi.taihe.register.RegisterRequest.getDefaultInstance()))
  89. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  90. com.ywt.gapi.taihe.register.RegisterResponse.getDefaultInstance()))
  91. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("register"))
  92. .build();
  93. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  94. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.TakeRequest,
  95. com.ywt.gapi.taihe.register.TakeResponse> METHOD_TAKE =
  96. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.TakeRequest, com.ywt.gapi.taihe.register.TakeResponse>newBuilder()
  97. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  98. .setFullMethodName(generateFullMethodName(
  99. "com.ywt.gapi.taihe.register.TaiheRegisterService", "take"))
  100. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  101. com.ywt.gapi.taihe.register.TakeRequest.getDefaultInstance()))
  102. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  103. com.ywt.gapi.taihe.register.TakeResponse.getDefaultInstance()))
  104. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("take"))
  105. .build();
  106. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  107. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetQueueListRequest,
  108. com.ywt.gapi.taihe.register.GetQueueListResponse> METHOD_GET_QUEUE_LIST =
  109. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetQueueListRequest, com.ywt.gapi.taihe.register.GetQueueListResponse>newBuilder()
  110. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  111. .setFullMethodName(generateFullMethodName(
  112. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getQueueList"))
  113. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  114. com.ywt.gapi.taihe.register.GetQueueListRequest.getDefaultInstance()))
  115. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  116. com.ywt.gapi.taihe.register.GetQueueListResponse.getDefaultInstance()))
  117. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getQueueList"))
  118. .build();
  119. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  120. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetCommonOrderListRequest,
  121. com.ywt.gapi.taihe.register.GetCommonOrderListResponse> METHOD_GET_COMMON_ORDER_LIST =
  122. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetCommonOrderListRequest, com.ywt.gapi.taihe.register.GetCommonOrderListResponse>newBuilder()
  123. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  124. .setFullMethodName(generateFullMethodName(
  125. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getCommonOrderList"))
  126. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  127. com.ywt.gapi.taihe.register.GetCommonOrderListRequest.getDefaultInstance()))
  128. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  129. com.ywt.gapi.taihe.register.GetCommonOrderListResponse.getDefaultInstance()))
  130. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getCommonOrderList"))
  131. .build();
  132. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  133. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetRegisteredListRequest,
  134. com.ywt.gapi.taihe.register.GetRegisteredListResponse> METHOD_GET_REGISTERED_LIST =
  135. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetRegisteredListRequest, com.ywt.gapi.taihe.register.GetRegisteredListResponse>newBuilder()
  136. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  137. .setFullMethodName(generateFullMethodName(
  138. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getRegisteredList"))
  139. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  140. com.ywt.gapi.taihe.register.GetRegisteredListRequest.getDefaultInstance()))
  141. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  142. com.ywt.gapi.taihe.register.GetRegisteredListResponse.getDefaultInstance()))
  143. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getRegisteredList"))
  144. .build();
  145. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  146. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest,
  147. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> METHOD_REGISTER_WITHOUT_MEDICAL_CARD =
  148. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest, com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse>newBuilder()
  149. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  150. .setFullMethodName(generateFullMethodName(
  151. "com.ywt.gapi.taihe.register.TaiheRegisterService", "registerWithoutMedicalCard"))
  152. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  153. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest.getDefaultInstance()))
  154. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  155. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse.getDefaultInstance()))
  156. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("registerWithoutMedicalCard"))
  157. .build();
  158. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  159. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest,
  160. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID =
  161. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest, com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse>newBuilder()
  162. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  163. .setFullMethodName(generateFullMethodName(
  164. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getOfflineConsultInfoByDoctorId"))
  165. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  166. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest.getDefaultInstance()))
  167. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  168. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse.getDefaultInstance()))
  169. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getOfflineConsultInfoByDoctorId"))
  170. .build();
  171. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  172. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetLatestRegOrderRequest,
  173. com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> METHOD_GET_LATEST_REG_ORDER =
  174. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetLatestRegOrderRequest, com.ywt.gapi.taihe.register.GetLatestRegOrderResponse>newBuilder()
  175. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  176. .setFullMethodName(generateFullMethodName(
  177. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getLatestRegOrder"))
  178. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  179. com.ywt.gapi.taihe.register.GetLatestRegOrderRequest.getDefaultInstance()))
  180. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  181. com.ywt.gapi.taihe.register.GetLatestRegOrderResponse.getDefaultInstance()))
  182. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getLatestRegOrder"))
  183. .build();
  184. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  185. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.CalAdditionalFeeRequest,
  186. com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> METHOD_CAL_ADDITIONAL_FEE =
  187. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.CalAdditionalFeeRequest, com.ywt.gapi.taihe.register.CalAdditionalFeeResponse>newBuilder()
  188. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  189. .setFullMethodName(generateFullMethodName(
  190. "com.ywt.gapi.taihe.register.TaiheRegisterService", "calAdditionalFee"))
  191. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  192. com.ywt.gapi.taihe.register.CalAdditionalFeeRequest.getDefaultInstance()))
  193. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  194. com.ywt.gapi.taihe.register.CalAdditionalFeeResponse.getDefaultInstance()))
  195. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("calAdditionalFee"))
  196. .build();
  197. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  198. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest,
  199. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE =
  200. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest, com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse>newBuilder()
  201. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  202. .setFullMethodName(generateFullMethodName(
  203. "com.ywt.gapi.taihe.register.TaiheRegisterService", "getHisPatientIdByUserIdAndMobile"))
  204. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  205. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest.getDefaultInstance()))
  206. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  207. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse.getDefaultInstance()))
  208. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("getHisPatientIdByUserIdAndMobile"))
  209. .build();
  210. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  211. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.CreateMedicalCardRequest,
  212. com.ywt.gapi.taihe.register.CreateMedicalCardResponse> METHOD_CREATE_MEDICAL_CARD =
  213. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.CreateMedicalCardRequest, com.ywt.gapi.taihe.register.CreateMedicalCardResponse>newBuilder()
  214. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  215. .setFullMethodName(generateFullMethodName(
  216. "com.ywt.gapi.taihe.register.TaiheRegisterService", "createMedicalCard"))
  217. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  218. com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance()))
  219. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  220. com.ywt.gapi.taihe.register.CreateMedicalCardResponse.getDefaultInstance()))
  221. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("createMedicalCard"))
  222. .build();
  223. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  224. public static final io.grpc.MethodDescriptor<com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest,
  225. com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse> METHOD_REGISTER_CHECK_IN_MESSAGE =
  226. io.grpc.MethodDescriptor.<com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest, com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse>newBuilder()
  227. .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
  228. .setFullMethodName(generateFullMethodName(
  229. "com.ywt.gapi.taihe.register.TaiheRegisterService", "registerCheckInMessage"))
  230. .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  231. com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest.getDefaultInstance()))
  232. .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
  233. com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse.getDefaultInstance()))
  234. .setSchemaDescriptor(new TaiheRegisterServiceMethodDescriptorSupplier("registerCheckInMessage"))
  235. .build();
  236. /**
  237. * Creates a new async stub that supports all call types for the service
  238. */
  239. public static TaiheRegisterServiceStub newStub(io.grpc.Channel channel) {
  240. return new TaiheRegisterServiceStub(channel);
  241. }
  242. /**
  243. * Creates a new blocking-style stub that supports unary and streaming output calls on the service
  244. */
  245. public static TaiheRegisterServiceBlockingStub newBlockingStub(
  246. io.grpc.Channel channel) {
  247. return new TaiheRegisterServiceBlockingStub(channel);
  248. }
  249. /**
  250. * Creates a new ListenableFuture-style stub that supports unary calls on the service
  251. */
  252. public static TaiheRegisterServiceFutureStub newFutureStub(
  253. io.grpc.Channel channel) {
  254. return new TaiheRegisterServiceFutureStub(channel);
  255. }
  256. /**
  257. * <pre>
  258. *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
  259. * </pre>
  260. */
  261. public static abstract class TaiheRegisterServiceImplBase implements io.grpc.BindableService {
  262. /**
  263. * <pre>
  264. *预约挂号
  265. * </pre>
  266. */
  267. public void createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
  268. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateRegisteredResponse> responseObserver) {
  269. asyncUnimplementedUnaryCall(METHOD_CREATE_REGISTERED, responseObserver);
  270. }
  271. /**
  272. * <pre>
  273. *取消预约
  274. * </pre>
  275. */
  276. public void cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
  277. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CancelRegisteredResponse> responseObserver) {
  278. asyncUnimplementedUnaryCall(METHOD_CANCEL_REGISTERED, responseObserver);
  279. }
  280. /**
  281. * <pre>
  282. *订单支付成功通知
  283. * </pre>
  284. */
  285. public void payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request,
  286. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.PayCallbackResponse> responseObserver) {
  287. asyncUnimplementedUnaryCall(METHOD_PAY_CALLBACK, responseObserver);
  288. }
  289. /**
  290. * <pre>
  291. *退款回调
  292. * </pre>
  293. */
  294. public void refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request,
  295. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RefundCallbackResponse> responseObserver) {
  296. asyncUnimplementedUnaryCall(METHOD_REFUND_CALLBACK, responseObserver);
  297. }
  298. /**
  299. * <pre>
  300. *挂号(挂号信息已先保存至数据表中)
  301. * </pre>
  302. */
  303. public void register(com.ywt.gapi.taihe.register.RegisterRequest request,
  304. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterResponse> responseObserver) {
  305. asyncUnimplementedUnaryCall(METHOD_REGISTER, responseObserver);
  306. }
  307. /**
  308. * <pre>
  309. *取号
  310. * </pre>
  311. */
  312. public void take(com.ywt.gapi.taihe.register.TakeRequest request,
  313. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.TakeResponse> responseObserver) {
  314. asyncUnimplementedUnaryCall(METHOD_TAKE, responseObserver);
  315. }
  316. /**
  317. * <pre>
  318. *获取候诊订单列表
  319. * </pre>
  320. */
  321. public void getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request,
  322. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetQueueListResponse> responseObserver) {
  323. asyncUnimplementedUnaryCall(METHOD_GET_QUEUE_LIST, responseObserver);
  324. }
  325. /**
  326. * <pre>
  327. *获取太和门诊记录
  328. * </pre>
  329. */
  330. public void getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
  331. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> responseObserver) {
  332. asyncUnimplementedUnaryCall(METHOD_GET_COMMON_ORDER_LIST, responseObserver);
  333. }
  334. /**
  335. * <pre>
  336. *获取挂号订单列表
  337. * </pre>
  338. */
  339. public void getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
  340. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetRegisteredListResponse> responseObserver) {
  341. asyncUnimplementedUnaryCall(METHOD_GET_REGISTERED_LIST, responseObserver);
  342. }
  343. /**
  344. * <pre>
  345. *无诊疗卡挂号
  346. * </pre>
  347. */
  348. public void registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
  349. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> responseObserver) {
  350. asyncUnimplementedUnaryCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, responseObserver);
  351. }
  352. /**
  353. * <pre>
  354. * 根据医生 id 获取下线问诊相关信息
  355. * </pre>
  356. */
  357. public void getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
  358. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> responseObserver) {
  359. asyncUnimplementedUnaryCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, responseObserver);
  360. }
  361. /**
  362. * <pre>
  363. * 获取最近一次挂号订单
  364. * </pre>
  365. */
  366. public void getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
  367. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> responseObserver) {
  368. asyncUnimplementedUnaryCall(METHOD_GET_LATEST_REG_ORDER, responseObserver);
  369. }
  370. /**
  371. * <pre>
  372. * 计算加收费用
  373. * </pre>
  374. */
  375. public void calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
  376. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> responseObserver) {
  377. asyncUnimplementedUnaryCall(METHOD_CAL_ADDITIONAL_FEE, responseObserver);
  378. }
  379. /**
  380. * <pre>
  381. * 根据 userId &amp; mobile 获取 hisPatientId
  382. * </pre>
  383. */
  384. public void getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
  385. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> responseObserver) {
  386. asyncUnimplementedUnaryCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, responseObserver);
  387. }
  388. /**
  389. * <pre>
  390. * HIS 建档并在系统创建诊疗卡
  391. * </pre>
  392. */
  393. public void createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
  394. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> responseObserver) {
  395. asyncUnimplementedUnaryCall(METHOD_CREATE_MEDICAL_CARD, responseObserver);
  396. }
  397. /**
  398. * <pre>
  399. * 扫码报道发送信息
  400. * </pre>
  401. */
  402. public void registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request,
  403. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse> responseObserver) {
  404. asyncUnimplementedUnaryCall(METHOD_REGISTER_CHECK_IN_MESSAGE, responseObserver);
  405. }
  406. @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
  407. return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
  408. .addMethod(
  409. METHOD_CREATE_REGISTERED,
  410. asyncUnaryCall(
  411. new MethodHandlers<
  412. com.ywt.gapi.taihe.register.CreateRegisteredRequest,
  413. com.ywt.gapi.taihe.register.CreateRegisteredResponse>(
  414. this, METHODID_CREATE_REGISTERED)))
  415. .addMethod(
  416. METHOD_CANCEL_REGISTERED,
  417. asyncUnaryCall(
  418. new MethodHandlers<
  419. com.ywt.gapi.taihe.register.CancelRegisteredRequest,
  420. com.ywt.gapi.taihe.register.CancelRegisteredResponse>(
  421. this, METHODID_CANCEL_REGISTERED)))
  422. .addMethod(
  423. METHOD_PAY_CALLBACK,
  424. asyncUnaryCall(
  425. new MethodHandlers<
  426. com.ywt.gapi.taihe.register.PayCallbackRequest,
  427. com.ywt.gapi.taihe.register.PayCallbackResponse>(
  428. this, METHODID_PAY_CALLBACK)))
  429. .addMethod(
  430. METHOD_REFUND_CALLBACK,
  431. asyncUnaryCall(
  432. new MethodHandlers<
  433. com.ywt.gapi.taihe.register.RefundCallbackRequest,
  434. com.ywt.gapi.taihe.register.RefundCallbackResponse>(
  435. this, METHODID_REFUND_CALLBACK)))
  436. .addMethod(
  437. METHOD_REGISTER,
  438. asyncUnaryCall(
  439. new MethodHandlers<
  440. com.ywt.gapi.taihe.register.RegisterRequest,
  441. com.ywt.gapi.taihe.register.RegisterResponse>(
  442. this, METHODID_REGISTER)))
  443. .addMethod(
  444. METHOD_TAKE,
  445. asyncUnaryCall(
  446. new MethodHandlers<
  447. com.ywt.gapi.taihe.register.TakeRequest,
  448. com.ywt.gapi.taihe.register.TakeResponse>(
  449. this, METHODID_TAKE)))
  450. .addMethod(
  451. METHOD_GET_QUEUE_LIST,
  452. asyncUnaryCall(
  453. new MethodHandlers<
  454. com.ywt.gapi.taihe.register.GetQueueListRequest,
  455. com.ywt.gapi.taihe.register.GetQueueListResponse>(
  456. this, METHODID_GET_QUEUE_LIST)))
  457. .addMethod(
  458. METHOD_GET_COMMON_ORDER_LIST,
  459. asyncUnaryCall(
  460. new MethodHandlers<
  461. com.ywt.gapi.taihe.register.GetCommonOrderListRequest,
  462. com.ywt.gapi.taihe.register.GetCommonOrderListResponse>(
  463. this, METHODID_GET_COMMON_ORDER_LIST)))
  464. .addMethod(
  465. METHOD_GET_REGISTERED_LIST,
  466. asyncUnaryCall(
  467. new MethodHandlers<
  468. com.ywt.gapi.taihe.register.GetRegisteredListRequest,
  469. com.ywt.gapi.taihe.register.GetRegisteredListResponse>(
  470. this, METHODID_GET_REGISTERED_LIST)))
  471. .addMethod(
  472. METHOD_REGISTER_WITHOUT_MEDICAL_CARD,
  473. asyncUnaryCall(
  474. new MethodHandlers<
  475. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest,
  476. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse>(
  477. this, METHODID_REGISTER_WITHOUT_MEDICAL_CARD)))
  478. .addMethod(
  479. METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID,
  480. asyncUnaryCall(
  481. new MethodHandlers<
  482. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest,
  483. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse>(
  484. this, METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID)))
  485. .addMethod(
  486. METHOD_GET_LATEST_REG_ORDER,
  487. asyncUnaryCall(
  488. new MethodHandlers<
  489. com.ywt.gapi.taihe.register.GetLatestRegOrderRequest,
  490. com.ywt.gapi.taihe.register.GetLatestRegOrderResponse>(
  491. this, METHODID_GET_LATEST_REG_ORDER)))
  492. .addMethod(
  493. METHOD_CAL_ADDITIONAL_FEE,
  494. asyncUnaryCall(
  495. new MethodHandlers<
  496. com.ywt.gapi.taihe.register.CalAdditionalFeeRequest,
  497. com.ywt.gapi.taihe.register.CalAdditionalFeeResponse>(
  498. this, METHODID_CAL_ADDITIONAL_FEE)))
  499. .addMethod(
  500. METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE,
  501. asyncUnaryCall(
  502. new MethodHandlers<
  503. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest,
  504. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse>(
  505. this, METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE)))
  506. .addMethod(
  507. METHOD_CREATE_MEDICAL_CARD,
  508. asyncUnaryCall(
  509. new MethodHandlers<
  510. com.ywt.gapi.taihe.register.CreateMedicalCardRequest,
  511. com.ywt.gapi.taihe.register.CreateMedicalCardResponse>(
  512. this, METHODID_CREATE_MEDICAL_CARD)))
  513. .addMethod(
  514. METHOD_REGISTER_CHECK_IN_MESSAGE,
  515. asyncUnaryCall(
  516. new MethodHandlers<
  517. com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest,
  518. com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse>(
  519. this, METHODID_REGISTER_CHECK_IN_MESSAGE)))
  520. .build();
  521. }
  522. }
  523. /**
  524. * <pre>
  525. *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
  526. * </pre>
  527. */
  528. public static final class TaiheRegisterServiceStub extends io.grpc.stub.AbstractStub<TaiheRegisterServiceStub> {
  529. private TaiheRegisterServiceStub(io.grpc.Channel channel) {
  530. super(channel);
  531. }
  532. private TaiheRegisterServiceStub(io.grpc.Channel channel,
  533. io.grpc.CallOptions callOptions) {
  534. super(channel, callOptions);
  535. }
  536. @java.lang.Override
  537. protected TaiheRegisterServiceStub build(io.grpc.Channel channel,
  538. io.grpc.CallOptions callOptions) {
  539. return new TaiheRegisterServiceStub(channel, callOptions);
  540. }
  541. /**
  542. * <pre>
  543. *预约挂号
  544. * </pre>
  545. */
  546. public void createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request,
  547. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateRegisteredResponse> responseObserver) {
  548. asyncUnaryCall(
  549. getChannel().newCall(METHOD_CREATE_REGISTERED, getCallOptions()), request, responseObserver);
  550. }
  551. /**
  552. * <pre>
  553. *取消预约
  554. * </pre>
  555. */
  556. public void cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request,
  557. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CancelRegisteredResponse> responseObserver) {
  558. asyncUnaryCall(
  559. getChannel().newCall(METHOD_CANCEL_REGISTERED, getCallOptions()), request, responseObserver);
  560. }
  561. /**
  562. * <pre>
  563. *订单支付成功通知
  564. * </pre>
  565. */
  566. public void payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request,
  567. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.PayCallbackResponse> responseObserver) {
  568. asyncUnaryCall(
  569. getChannel().newCall(METHOD_PAY_CALLBACK, getCallOptions()), request, responseObserver);
  570. }
  571. /**
  572. * <pre>
  573. *退款回调
  574. * </pre>
  575. */
  576. public void refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request,
  577. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RefundCallbackResponse> responseObserver) {
  578. asyncUnaryCall(
  579. getChannel().newCall(METHOD_REFUND_CALLBACK, getCallOptions()), request, responseObserver);
  580. }
  581. /**
  582. * <pre>
  583. *挂号(挂号信息已先保存至数据表中)
  584. * </pre>
  585. */
  586. public void register(com.ywt.gapi.taihe.register.RegisterRequest request,
  587. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterResponse> responseObserver) {
  588. asyncUnaryCall(
  589. getChannel().newCall(METHOD_REGISTER, getCallOptions()), request, responseObserver);
  590. }
  591. /**
  592. * <pre>
  593. *取号
  594. * </pre>
  595. */
  596. public void take(com.ywt.gapi.taihe.register.TakeRequest request,
  597. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.TakeResponse> responseObserver) {
  598. asyncUnaryCall(
  599. getChannel().newCall(METHOD_TAKE, getCallOptions()), request, responseObserver);
  600. }
  601. /**
  602. * <pre>
  603. *获取候诊订单列表
  604. * </pre>
  605. */
  606. public void getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request,
  607. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetQueueListResponse> responseObserver) {
  608. asyncUnaryCall(
  609. getChannel().newCall(METHOD_GET_QUEUE_LIST, getCallOptions()), request, responseObserver);
  610. }
  611. /**
  612. * <pre>
  613. *获取太和门诊记录
  614. * </pre>
  615. */
  616. public void getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request,
  617. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> responseObserver) {
  618. asyncUnaryCall(
  619. getChannel().newCall(METHOD_GET_COMMON_ORDER_LIST, getCallOptions()), request, responseObserver);
  620. }
  621. /**
  622. * <pre>
  623. *获取挂号订单列表
  624. * </pre>
  625. */
  626. public void getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request,
  627. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetRegisteredListResponse> responseObserver) {
  628. asyncUnaryCall(
  629. getChannel().newCall(METHOD_GET_REGISTERED_LIST, getCallOptions()), request, responseObserver);
  630. }
  631. /**
  632. * <pre>
  633. *无诊疗卡挂号
  634. * </pre>
  635. */
  636. public void registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request,
  637. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> responseObserver) {
  638. asyncUnaryCall(
  639. getChannel().newCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions()), request, responseObserver);
  640. }
  641. /**
  642. * <pre>
  643. * 根据医生 id 获取下线问诊相关信息
  644. * </pre>
  645. */
  646. public void getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request,
  647. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> responseObserver) {
  648. asyncUnaryCall(
  649. getChannel().newCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions()), request, responseObserver);
  650. }
  651. /**
  652. * <pre>
  653. * 获取最近一次挂号订单
  654. * </pre>
  655. */
  656. public void getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request,
  657. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> responseObserver) {
  658. asyncUnaryCall(
  659. getChannel().newCall(METHOD_GET_LATEST_REG_ORDER, getCallOptions()), request, responseObserver);
  660. }
  661. /**
  662. * <pre>
  663. * 计算加收费用
  664. * </pre>
  665. */
  666. public void calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request,
  667. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> responseObserver) {
  668. asyncUnaryCall(
  669. getChannel().newCall(METHOD_CAL_ADDITIONAL_FEE, getCallOptions()), request, responseObserver);
  670. }
  671. /**
  672. * <pre>
  673. * 根据 userId &amp; mobile 获取 hisPatientId
  674. * </pre>
  675. */
  676. public void getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request,
  677. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> responseObserver) {
  678. asyncUnaryCall(
  679. getChannel().newCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions()), request, responseObserver);
  680. }
  681. /**
  682. * <pre>
  683. * HIS 建档并在系统创建诊疗卡
  684. * </pre>
  685. */
  686. public void createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request,
  687. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> responseObserver) {
  688. asyncUnaryCall(
  689. getChannel().newCall(METHOD_CREATE_MEDICAL_CARD, getCallOptions()), request, responseObserver);
  690. }
  691. /**
  692. * <pre>
  693. * 扫码报道发送信息
  694. * </pre>
  695. */
  696. public void registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request,
  697. io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse> responseObserver) {
  698. asyncUnaryCall(
  699. getChannel().newCall(METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions()), request, responseObserver);
  700. }
  701. }
  702. /**
  703. * <pre>
  704. *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
  705. * </pre>
  706. */
  707. public static final class TaiheRegisterServiceBlockingStub extends io.grpc.stub.AbstractStub<TaiheRegisterServiceBlockingStub> {
  708. private TaiheRegisterServiceBlockingStub(io.grpc.Channel channel) {
  709. super(channel);
  710. }
  711. private TaiheRegisterServiceBlockingStub(io.grpc.Channel channel,
  712. io.grpc.CallOptions callOptions) {
  713. super(channel, callOptions);
  714. }
  715. @java.lang.Override
  716. protected TaiheRegisterServiceBlockingStub build(io.grpc.Channel channel,
  717. io.grpc.CallOptions callOptions) {
  718. return new TaiheRegisterServiceBlockingStub(channel, callOptions);
  719. }
  720. /**
  721. * <pre>
  722. *预约挂号
  723. * </pre>
  724. */
  725. public com.ywt.gapi.taihe.register.CreateRegisteredResponse createRegistered(com.ywt.gapi.taihe.register.CreateRegisteredRequest request) {
  726. return blockingUnaryCall(
  727. getChannel(), METHOD_CREATE_REGISTERED, getCallOptions(), request);
  728. }
  729. /**
  730. * <pre>
  731. *取消预约
  732. * </pre>
  733. */
  734. public com.ywt.gapi.taihe.register.CancelRegisteredResponse cancelRegistered(com.ywt.gapi.taihe.register.CancelRegisteredRequest request) {
  735. return blockingUnaryCall(
  736. getChannel(), METHOD_CANCEL_REGISTERED, getCallOptions(), request);
  737. }
  738. /**
  739. * <pre>
  740. *订单支付成功通知
  741. * </pre>
  742. */
  743. public com.ywt.gapi.taihe.register.PayCallbackResponse payCallback(com.ywt.gapi.taihe.register.PayCallbackRequest request) {
  744. return blockingUnaryCall(
  745. getChannel(), METHOD_PAY_CALLBACK, getCallOptions(), request);
  746. }
  747. /**
  748. * <pre>
  749. *退款回调
  750. * </pre>
  751. */
  752. public com.ywt.gapi.taihe.register.RefundCallbackResponse refundCallback(com.ywt.gapi.taihe.register.RefundCallbackRequest request) {
  753. return blockingUnaryCall(
  754. getChannel(), METHOD_REFUND_CALLBACK, getCallOptions(), request);
  755. }
  756. /**
  757. * <pre>
  758. *挂号(挂号信息已先保存至数据表中)
  759. * </pre>
  760. */
  761. public com.ywt.gapi.taihe.register.RegisterResponse register(com.ywt.gapi.taihe.register.RegisterRequest request) {
  762. return blockingUnaryCall(
  763. getChannel(), METHOD_REGISTER, getCallOptions(), request);
  764. }
  765. /**
  766. * <pre>
  767. *取号
  768. * </pre>
  769. */
  770. public com.ywt.gapi.taihe.register.TakeResponse take(com.ywt.gapi.taihe.register.TakeRequest request) {
  771. return blockingUnaryCall(
  772. getChannel(), METHOD_TAKE, getCallOptions(), request);
  773. }
  774. /**
  775. * <pre>
  776. *获取候诊订单列表
  777. * </pre>
  778. */
  779. public com.ywt.gapi.taihe.register.GetQueueListResponse getQueueList(com.ywt.gapi.taihe.register.GetQueueListRequest request) {
  780. return blockingUnaryCall(
  781. getChannel(), METHOD_GET_QUEUE_LIST, getCallOptions(), request);
  782. }
  783. /**
  784. * <pre>
  785. *获取太和门诊记录
  786. * </pre>
  787. */
  788. public com.ywt.gapi.taihe.register.GetCommonOrderListResponse getCommonOrderList(com.ywt.gapi.taihe.register.GetCommonOrderListRequest request) {
  789. return blockingUnaryCall(
  790. getChannel(), METHOD_GET_COMMON_ORDER_LIST, getCallOptions(), request);
  791. }
  792. /**
  793. * <pre>
  794. *获取挂号订单列表
  795. * </pre>
  796. */
  797. public com.ywt.gapi.taihe.register.GetRegisteredListResponse getRegisteredList(com.ywt.gapi.taihe.register.GetRegisteredListRequest request) {
  798. return blockingUnaryCall(
  799. getChannel(), METHOD_GET_REGISTERED_LIST, getCallOptions(), request);
  800. }
  801. /**
  802. * <pre>
  803. *无诊疗卡挂号
  804. * </pre>
  805. */
  806. public com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse registerWithoutMedicalCard(com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request) {
  807. return blockingUnaryCall(
  808. getChannel(), METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions(), request);
  809. }
  810. /**
  811. * <pre>
  812. * 根据医生 id 获取下线问诊相关信息
  813. * </pre>
  814. */
  815. public com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse getOfflineConsultInfoByDoctorId(com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request) {
  816. return blockingUnaryCall(
  817. getChannel(), METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions(), request);
  818. }
  819. /**
  820. * <pre>
  821. * 获取最近一次挂号订单
  822. * </pre>
  823. */
  824. public com.ywt.gapi.taihe.register.GetLatestRegOrderResponse getLatestRegOrder(com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request) {
  825. return blockingUnaryCall(
  826. getChannel(), METHOD_GET_LATEST_REG_ORDER, getCallOptions(), request);
  827. }
  828. /**
  829. * <pre>
  830. * 计算加收费用
  831. * </pre>
  832. */
  833. public com.ywt.gapi.taihe.register.CalAdditionalFeeResponse calAdditionalFee(com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request) {
  834. return blockingUnaryCall(
  835. getChannel(), METHOD_CAL_ADDITIONAL_FEE, getCallOptions(), request);
  836. }
  837. /**
  838. * <pre>
  839. * 根据 userId &amp; mobile 获取 hisPatientId
  840. * </pre>
  841. */
  842. public com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse getHisPatientIdByUserIdAndMobile(com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request) {
  843. return blockingUnaryCall(
  844. getChannel(), METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions(), request);
  845. }
  846. /**
  847. * <pre>
  848. * HIS 建档并在系统创建诊疗卡
  849. * </pre>
  850. */
  851. public com.ywt.gapi.taihe.register.CreateMedicalCardResponse createMedicalCard(com.ywt.gapi.taihe.register.CreateMedicalCardRequest request) {
  852. return blockingUnaryCall(
  853. getChannel(), METHOD_CREATE_MEDICAL_CARD, getCallOptions(), request);
  854. }
  855. /**
  856. * <pre>
  857. * 扫码报道发送信息
  858. * </pre>
  859. */
  860. public com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse registerCheckInMessage(com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request) {
  861. return blockingUnaryCall(
  862. getChannel(), METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions(), request);
  863. }
  864. }
  865. /**
  866. * <pre>
  867. *太和医院预约挂号业务类 // 对应 taihe-rpc 项目 TaiheRegisterService 类
  868. * </pre>
  869. */
  870. public static final class TaiheRegisterServiceFutureStub extends io.grpc.stub.AbstractStub<TaiheRegisterServiceFutureStub> {
  871. private TaiheRegisterServiceFutureStub(io.grpc.Channel channel) {
  872. super(channel);
  873. }
  874. private TaiheRegisterServiceFutureStub(io.grpc.Channel channel,
  875. io.grpc.CallOptions callOptions) {
  876. super(channel, callOptions);
  877. }
  878. @java.lang.Override
  879. protected TaiheRegisterServiceFutureStub build(io.grpc.Channel channel,
  880. io.grpc.CallOptions callOptions) {
  881. return new TaiheRegisterServiceFutureStub(channel, callOptions);
  882. }
  883. /**
  884. * <pre>
  885. *预约挂号
  886. * </pre>
  887. */
  888. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.CreateRegisteredResponse> createRegistered(
  889. com.ywt.gapi.taihe.register.CreateRegisteredRequest request) {
  890. return futureUnaryCall(
  891. getChannel().newCall(METHOD_CREATE_REGISTERED, getCallOptions()), request);
  892. }
  893. /**
  894. * <pre>
  895. *取消预约
  896. * </pre>
  897. */
  898. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.CancelRegisteredResponse> cancelRegistered(
  899. com.ywt.gapi.taihe.register.CancelRegisteredRequest request) {
  900. return futureUnaryCall(
  901. getChannel().newCall(METHOD_CANCEL_REGISTERED, getCallOptions()), request);
  902. }
  903. /**
  904. * <pre>
  905. *订单支付成功通知
  906. * </pre>
  907. */
  908. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.PayCallbackResponse> payCallback(
  909. com.ywt.gapi.taihe.register.PayCallbackRequest request) {
  910. return futureUnaryCall(
  911. getChannel().newCall(METHOD_PAY_CALLBACK, getCallOptions()), request);
  912. }
  913. /**
  914. * <pre>
  915. *退款回调
  916. * </pre>
  917. */
  918. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.RefundCallbackResponse> refundCallback(
  919. com.ywt.gapi.taihe.register.RefundCallbackRequest request) {
  920. return futureUnaryCall(
  921. getChannel().newCall(METHOD_REFUND_CALLBACK, getCallOptions()), request);
  922. }
  923. /**
  924. * <pre>
  925. *挂号(挂号信息已先保存至数据表中)
  926. * </pre>
  927. */
  928. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.RegisterResponse> register(
  929. com.ywt.gapi.taihe.register.RegisterRequest request) {
  930. return futureUnaryCall(
  931. getChannel().newCall(METHOD_REGISTER, getCallOptions()), request);
  932. }
  933. /**
  934. * <pre>
  935. *取号
  936. * </pre>
  937. */
  938. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.TakeResponse> take(
  939. com.ywt.gapi.taihe.register.TakeRequest request) {
  940. return futureUnaryCall(
  941. getChannel().newCall(METHOD_TAKE, getCallOptions()), request);
  942. }
  943. /**
  944. * <pre>
  945. *获取候诊订单列表
  946. * </pre>
  947. */
  948. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetQueueListResponse> getQueueList(
  949. com.ywt.gapi.taihe.register.GetQueueListRequest request) {
  950. return futureUnaryCall(
  951. getChannel().newCall(METHOD_GET_QUEUE_LIST, getCallOptions()), request);
  952. }
  953. /**
  954. * <pre>
  955. *获取太和门诊记录
  956. * </pre>
  957. */
  958. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetCommonOrderListResponse> getCommonOrderList(
  959. com.ywt.gapi.taihe.register.GetCommonOrderListRequest request) {
  960. return futureUnaryCall(
  961. getChannel().newCall(METHOD_GET_COMMON_ORDER_LIST, getCallOptions()), request);
  962. }
  963. /**
  964. * <pre>
  965. *获取挂号订单列表
  966. * </pre>
  967. */
  968. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetRegisteredListResponse> getRegisteredList(
  969. com.ywt.gapi.taihe.register.GetRegisteredListRequest request) {
  970. return futureUnaryCall(
  971. getChannel().newCall(METHOD_GET_REGISTERED_LIST, getCallOptions()), request);
  972. }
  973. /**
  974. * <pre>
  975. *无诊疗卡挂号
  976. * </pre>
  977. */
  978. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse> registerWithoutMedicalCard(
  979. com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest request) {
  980. return futureUnaryCall(
  981. getChannel().newCall(METHOD_REGISTER_WITHOUT_MEDICAL_CARD, getCallOptions()), request);
  982. }
  983. /**
  984. * <pre>
  985. * 根据医生 id 获取下线问诊相关信息
  986. * </pre>
  987. */
  988. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse> getOfflineConsultInfoByDoctorId(
  989. com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest request) {
  990. return futureUnaryCall(
  991. getChannel().newCall(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID, getCallOptions()), request);
  992. }
  993. /**
  994. * <pre>
  995. * 获取最近一次挂号订单
  996. * </pre>
  997. */
  998. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse> getLatestRegOrder(
  999. com.ywt.gapi.taihe.register.GetLatestRegOrderRequest request) {
  1000. return futureUnaryCall(
  1001. getChannel().newCall(METHOD_GET_LATEST_REG_ORDER, getCallOptions()), request);
  1002. }
  1003. /**
  1004. * <pre>
  1005. * 计算加收费用
  1006. * </pre>
  1007. */
  1008. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse> calAdditionalFee(
  1009. com.ywt.gapi.taihe.register.CalAdditionalFeeRequest request) {
  1010. return futureUnaryCall(
  1011. getChannel().newCall(METHOD_CAL_ADDITIONAL_FEE, getCallOptions()), request);
  1012. }
  1013. /**
  1014. * <pre>
  1015. * 根据 userId &amp; mobile 获取 hisPatientId
  1016. * </pre>
  1017. */
  1018. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse> getHisPatientIdByUserIdAndMobile(
  1019. com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest request) {
  1020. return futureUnaryCall(
  1021. getChannel().newCall(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE, getCallOptions()), request);
  1022. }
  1023. /**
  1024. * <pre>
  1025. * HIS 建档并在系统创建诊疗卡
  1026. * </pre>
  1027. */
  1028. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.CreateMedicalCardResponse> createMedicalCard(
  1029. com.ywt.gapi.taihe.register.CreateMedicalCardRequest request) {
  1030. return futureUnaryCall(
  1031. getChannel().newCall(METHOD_CREATE_MEDICAL_CARD, getCallOptions()), request);
  1032. }
  1033. /**
  1034. * <pre>
  1035. * 扫码报道发送信息
  1036. * </pre>
  1037. */
  1038. public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse> registerCheckInMessage(
  1039. com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest request) {
  1040. return futureUnaryCall(
  1041. getChannel().newCall(METHOD_REGISTER_CHECK_IN_MESSAGE, getCallOptions()), request);
  1042. }
  1043. }
  1044. private static final int METHODID_CREATE_REGISTERED = 0;
  1045. private static final int METHODID_CANCEL_REGISTERED = 1;
  1046. private static final int METHODID_PAY_CALLBACK = 2;
  1047. private static final int METHODID_REFUND_CALLBACK = 3;
  1048. private static final int METHODID_REGISTER = 4;
  1049. private static final int METHODID_TAKE = 5;
  1050. private static final int METHODID_GET_QUEUE_LIST = 6;
  1051. private static final int METHODID_GET_COMMON_ORDER_LIST = 7;
  1052. private static final int METHODID_GET_REGISTERED_LIST = 8;
  1053. private static final int METHODID_REGISTER_WITHOUT_MEDICAL_CARD = 9;
  1054. private static final int METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID = 10;
  1055. private static final int METHODID_GET_LATEST_REG_ORDER = 11;
  1056. private static final int METHODID_CAL_ADDITIONAL_FEE = 12;
  1057. private static final int METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE = 13;
  1058. private static final int METHODID_CREATE_MEDICAL_CARD = 14;
  1059. private static final int METHODID_REGISTER_CHECK_IN_MESSAGE = 15;
  1060. private static final class MethodHandlers<Req, Resp> implements
  1061. io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
  1062. io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
  1063. io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
  1064. io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
  1065. private final TaiheRegisterServiceImplBase serviceImpl;
  1066. private final int methodId;
  1067. MethodHandlers(TaiheRegisterServiceImplBase serviceImpl, int methodId) {
  1068. this.serviceImpl = serviceImpl;
  1069. this.methodId = methodId;
  1070. }
  1071. @java.lang.Override
  1072. @java.lang.SuppressWarnings("unchecked")
  1073. public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
  1074. switch (methodId) {
  1075. case METHODID_CREATE_REGISTERED:
  1076. serviceImpl.createRegistered((com.ywt.gapi.taihe.register.CreateRegisteredRequest) request,
  1077. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateRegisteredResponse>) responseObserver);
  1078. break;
  1079. case METHODID_CANCEL_REGISTERED:
  1080. serviceImpl.cancelRegistered((com.ywt.gapi.taihe.register.CancelRegisteredRequest) request,
  1081. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CancelRegisteredResponse>) responseObserver);
  1082. break;
  1083. case METHODID_PAY_CALLBACK:
  1084. serviceImpl.payCallback((com.ywt.gapi.taihe.register.PayCallbackRequest) request,
  1085. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.PayCallbackResponse>) responseObserver);
  1086. break;
  1087. case METHODID_REFUND_CALLBACK:
  1088. serviceImpl.refundCallback((com.ywt.gapi.taihe.register.RefundCallbackRequest) request,
  1089. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RefundCallbackResponse>) responseObserver);
  1090. break;
  1091. case METHODID_REGISTER:
  1092. serviceImpl.register((com.ywt.gapi.taihe.register.RegisterRequest) request,
  1093. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterResponse>) responseObserver);
  1094. break;
  1095. case METHODID_TAKE:
  1096. serviceImpl.take((com.ywt.gapi.taihe.register.TakeRequest) request,
  1097. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.TakeResponse>) responseObserver);
  1098. break;
  1099. case METHODID_GET_QUEUE_LIST:
  1100. serviceImpl.getQueueList((com.ywt.gapi.taihe.register.GetQueueListRequest) request,
  1101. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetQueueListResponse>) responseObserver);
  1102. break;
  1103. case METHODID_GET_COMMON_ORDER_LIST:
  1104. serviceImpl.getCommonOrderList((com.ywt.gapi.taihe.register.GetCommonOrderListRequest) request,
  1105. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetCommonOrderListResponse>) responseObserver);
  1106. break;
  1107. case METHODID_GET_REGISTERED_LIST:
  1108. serviceImpl.getRegisteredList((com.ywt.gapi.taihe.register.GetRegisteredListRequest) request,
  1109. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetRegisteredListResponse>) responseObserver);
  1110. break;
  1111. case METHODID_REGISTER_WITHOUT_MEDICAL_CARD:
  1112. serviceImpl.registerWithoutMedicalCard((com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardRequest) request,
  1113. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterWithoutMedicalCardResponse>) responseObserver);
  1114. break;
  1115. case METHODID_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID:
  1116. serviceImpl.getOfflineConsultInfoByDoctorId((com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdRequest) request,
  1117. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetOfflineConsultInfoByDoctorIdResponse>) responseObserver);
  1118. break;
  1119. case METHODID_GET_LATEST_REG_ORDER:
  1120. serviceImpl.getLatestRegOrder((com.ywt.gapi.taihe.register.GetLatestRegOrderRequest) request,
  1121. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetLatestRegOrderResponse>) responseObserver);
  1122. break;
  1123. case METHODID_CAL_ADDITIONAL_FEE:
  1124. serviceImpl.calAdditionalFee((com.ywt.gapi.taihe.register.CalAdditionalFeeRequest) request,
  1125. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CalAdditionalFeeResponse>) responseObserver);
  1126. break;
  1127. case METHODID_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE:
  1128. serviceImpl.getHisPatientIdByUserIdAndMobile((com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileRequest) request,
  1129. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.GetHisPatientIdByUserIdAndMobileResponse>) responseObserver);
  1130. break;
  1131. case METHODID_CREATE_MEDICAL_CARD:
  1132. serviceImpl.createMedicalCard((com.ywt.gapi.taihe.register.CreateMedicalCardRequest) request,
  1133. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.CreateMedicalCardResponse>) responseObserver);
  1134. break;
  1135. case METHODID_REGISTER_CHECK_IN_MESSAGE:
  1136. serviceImpl.registerCheckInMessage((com.ywt.gapi.taihe.register.RegisterCheckInMessageRequest) request,
  1137. (io.grpc.stub.StreamObserver<com.ywt.gapi.taihe.register.RegisterCheckInMessageResponse>) responseObserver);
  1138. break;
  1139. default:
  1140. throw new AssertionError();
  1141. }
  1142. }
  1143. @java.lang.Override
  1144. @java.lang.SuppressWarnings("unchecked")
  1145. public io.grpc.stub.StreamObserver<Req> invoke(
  1146. io.grpc.stub.StreamObserver<Resp> responseObserver) {
  1147. switch (methodId) {
  1148. default:
  1149. throw new AssertionError();
  1150. }
  1151. }
  1152. }
  1153. private static abstract class TaiheRegisterServiceBaseDescriptorSupplier
  1154. implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
  1155. TaiheRegisterServiceBaseDescriptorSupplier() {}
  1156. @java.lang.Override
  1157. public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
  1158. return com.ywt.gapi.taihe.register.TaiheRegister.getDescriptor();
  1159. }
  1160. @java.lang.Override
  1161. public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
  1162. return getFileDescriptor().findServiceByName("TaiheRegisterService");
  1163. }
  1164. }
  1165. private static final class TaiheRegisterServiceFileDescriptorSupplier
  1166. extends TaiheRegisterServiceBaseDescriptorSupplier {
  1167. TaiheRegisterServiceFileDescriptorSupplier() {}
  1168. }
  1169. private static final class TaiheRegisterServiceMethodDescriptorSupplier
  1170. extends TaiheRegisterServiceBaseDescriptorSupplier
  1171. implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
  1172. private final String methodName;
  1173. TaiheRegisterServiceMethodDescriptorSupplier(String methodName) {
  1174. this.methodName = methodName;
  1175. }
  1176. @java.lang.Override
  1177. public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
  1178. return getServiceDescriptor().findMethodByName(methodName);
  1179. }
  1180. }
  1181. private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
  1182. public static io.grpc.ServiceDescriptor getServiceDescriptor() {
  1183. io.grpc.ServiceDescriptor result = serviceDescriptor;
  1184. if (result == null) {
  1185. synchronized (TaiheRegisterServiceGrpc.class) {
  1186. result = serviceDescriptor;
  1187. if (result == null) {
  1188. serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
  1189. .setSchemaDescriptor(new TaiheRegisterServiceFileDescriptorSupplier())
  1190. .addMethod(METHOD_CREATE_REGISTERED)
  1191. .addMethod(METHOD_CANCEL_REGISTERED)
  1192. .addMethod(METHOD_PAY_CALLBACK)
  1193. .addMethod(METHOD_REFUND_CALLBACK)
  1194. .addMethod(METHOD_REGISTER)
  1195. .addMethod(METHOD_TAKE)
  1196. .addMethod(METHOD_GET_QUEUE_LIST)
  1197. .addMethod(METHOD_GET_COMMON_ORDER_LIST)
  1198. .addMethod(METHOD_GET_REGISTERED_LIST)
  1199. .addMethod(METHOD_REGISTER_WITHOUT_MEDICAL_CARD)
  1200. .addMethod(METHOD_GET_OFFLINE_CONSULT_INFO_BY_DOCTOR_ID)
  1201. .addMethod(METHOD_GET_LATEST_REG_ORDER)
  1202. .addMethod(METHOD_CAL_ADDITIONAL_FEE)
  1203. .addMethod(METHOD_GET_HIS_PATIENT_ID_BY_USER_ID_AND_MOBILE)
  1204. .addMethod(METHOD_CREATE_MEDICAL_CARD)
  1205. .addMethod(METHOD_REGISTER_CHECK_IN_MESSAGE)
  1206. .build();
  1207. }
  1208. }
  1209. }
  1210. return result;
  1211. }
  1212. }