|
| 1 | +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| 2 | +"""Client and server classes corresponding to protobuf-defined services.""" |
| 3 | +import grpc |
| 4 | + |
| 5 | +import question_analysis_pb2 as question__analysis__pb2 |
| 6 | + |
| 7 | + |
| 8 | +class LanguageAnalysisServiceStub(object): |
| 9 | + """Missing associated documentation comment in .proto file.""" |
| 10 | + |
| 11 | + def __init__(self, channel): |
| 12 | + """Constructor. |
| 13 | +
|
| 14 | + Args: |
| 15 | + channel: A grpc.Channel. |
| 16 | + """ |
| 17 | + self.GetStringAnswer = channel.unary_unary( |
| 18 | + '/LanguageAnalysisService/GetStringAnswer', |
| 19 | + request_serializer=question__analysis__pb2.GetStringAnswerRequest.SerializeToString, |
| 20 | + response_deserializer=question__analysis__pb2.GetStringAnswerResponse.FromString, |
| 21 | + ) |
| 22 | + self.GetProductProductAnswer = channel.unary_unary( |
| 23 | + '/LanguageAnalysisService/GetProductProductAnswer', |
| 24 | + request_serializer=question__analysis__pb2.GetProductAnswerRequest.SerializeToString, |
| 25 | + response_deserializer=question__analysis__pb2.GetProductAnswerResponse.FromString, |
| 26 | + ) |
| 27 | + self.GetAnswerType = channel.unary_unary( |
| 28 | + '/LanguageAnalysisService/GetAnswerType', |
| 29 | + request_serializer=question__analysis__pb2.GetAnswerTypeRequest.SerializeToString, |
| 30 | + response_deserializer=question__analysis__pb2.GetAnswerTypeResponse.FromString, |
| 31 | + ) |
| 32 | + self.GetQuestionType = channel.unary_unary( |
| 33 | + '/LanguageAnalysisService/GetQuestionType', |
| 34 | + request_serializer=question__analysis__pb2.GetQuestionTypeRequest.SerializeToString, |
| 35 | + response_deserializer=question__analysis__pb2.GetQuestionTypeResponse.FromString, |
| 36 | + ) |
| 37 | + self.GetTimeOfAnswer = channel.unary_unary( |
| 38 | + '/LanguageAnalysisService/GetTimeOfAnswer', |
| 39 | + request_serializer=question__analysis__pb2.GetTimeOfAnswerRequest.SerializeToString, |
| 40 | + response_deserializer=question__analysis__pb2.GetTimeOfAnswerResponse.FromString, |
| 41 | + ) |
| 42 | + |
| 43 | + |
| 44 | +class LanguageAnalysisServiceServicer(object): |
| 45 | + """Missing associated documentation comment in .proto file.""" |
| 46 | + |
| 47 | + def GetStringAnswer(self, request, context): |
| 48 | + """Missing associated documentation comment in .proto file.""" |
| 49 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 50 | + context.set_details('Method not implemented!') |
| 51 | + raise NotImplementedError('Method not implemented!') |
| 52 | + |
| 53 | + def GetProductProductAnswer(self, request, context): |
| 54 | + """Missing associated documentation comment in .proto file.""" |
| 55 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 56 | + context.set_details('Method not implemented!') |
| 57 | + raise NotImplementedError('Method not implemented!') |
| 58 | + |
| 59 | + def GetAnswerType(self, request, context): |
| 60 | + """Missing associated documentation comment in .proto file.""" |
| 61 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 62 | + context.set_details('Method not implemented!') |
| 63 | + raise NotImplementedError('Method not implemented!') |
| 64 | + |
| 65 | + def GetQuestionType(self, request, context): |
| 66 | + """Missing associated documentation comment in .proto file.""" |
| 67 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 68 | + context.set_details('Method not implemented!') |
| 69 | + raise NotImplementedError('Method not implemented!') |
| 70 | + |
| 71 | + def GetTimeOfAnswer(self, request, context): |
| 72 | + """Missing associated documentation comment in .proto file.""" |
| 73 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 74 | + context.set_details('Method not implemented!') |
| 75 | + raise NotImplementedError('Method not implemented!') |
| 76 | + |
| 77 | + |
| 78 | +def add_LanguageAnalysisServiceServicer_to_server(servicer, server): |
| 79 | + rpc_method_handlers = { |
| 80 | + 'GetStringAnswer': grpc.unary_unary_rpc_method_handler( |
| 81 | + servicer.GetStringAnswer, |
| 82 | + request_deserializer=question__analysis__pb2.GetStringAnswerRequest.FromString, |
| 83 | + response_serializer=question__analysis__pb2.GetStringAnswerResponse.SerializeToString, |
| 84 | + ), |
| 85 | + 'GetProductProductAnswer': grpc.unary_unary_rpc_method_handler( |
| 86 | + servicer.GetProductProductAnswer, |
| 87 | + request_deserializer=question__analysis__pb2.GetProductAnswerRequest.FromString, |
| 88 | + response_serializer=question__analysis__pb2.GetProductAnswerResponse.SerializeToString, |
| 89 | + ), |
| 90 | + 'GetAnswerType': grpc.unary_unary_rpc_method_handler( |
| 91 | + servicer.GetAnswerType, |
| 92 | + request_deserializer=question__analysis__pb2.GetAnswerTypeRequest.FromString, |
| 93 | + response_serializer=question__analysis__pb2.GetAnswerTypeResponse.SerializeToString, |
| 94 | + ), |
| 95 | + 'GetQuestionType': grpc.unary_unary_rpc_method_handler( |
| 96 | + servicer.GetQuestionType, |
| 97 | + request_deserializer=question__analysis__pb2.GetQuestionTypeRequest.FromString, |
| 98 | + response_serializer=question__analysis__pb2.GetQuestionTypeResponse.SerializeToString, |
| 99 | + ), |
| 100 | + 'GetTimeOfAnswer': grpc.unary_unary_rpc_method_handler( |
| 101 | + servicer.GetTimeOfAnswer, |
| 102 | + request_deserializer=question__analysis__pb2.GetTimeOfAnswerRequest.FromString, |
| 103 | + response_serializer=question__analysis__pb2.GetTimeOfAnswerResponse.SerializeToString, |
| 104 | + ), |
| 105 | + } |
| 106 | + generic_handler = grpc.method_handlers_generic_handler( |
| 107 | + 'LanguageAnalysisService', rpc_method_handlers) |
| 108 | + server.add_generic_rpc_handlers((generic_handler,)) |
| 109 | + |
| 110 | + |
| 111 | + # This class is part of an EXPERIMENTAL API. |
| 112 | +class LanguageAnalysisService(object): |
| 113 | + """Missing associated documentation comment in .proto file.""" |
| 114 | + |
| 115 | + @staticmethod |
| 116 | + def GetStringAnswer(request, |
| 117 | + target, |
| 118 | + options=(), |
| 119 | + channel_credentials=None, |
| 120 | + call_credentials=None, |
| 121 | + insecure=False, |
| 122 | + compression=None, |
| 123 | + wait_for_ready=None, |
| 124 | + timeout=None, |
| 125 | + metadata=None): |
| 126 | + return grpc.experimental.unary_unary(request, target, '/LanguageAnalysisService/GetStringAnswer', |
| 127 | + question__analysis__pb2.GetStringAnswerRequest.SerializeToString, |
| 128 | + question__analysis__pb2.GetStringAnswerResponse.FromString, |
| 129 | + options, channel_credentials, |
| 130 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 131 | + |
| 132 | + @staticmethod |
| 133 | + def GetProductProductAnswer(request, |
| 134 | + target, |
| 135 | + options=(), |
| 136 | + channel_credentials=None, |
| 137 | + call_credentials=None, |
| 138 | + insecure=False, |
| 139 | + compression=None, |
| 140 | + wait_for_ready=None, |
| 141 | + timeout=None, |
| 142 | + metadata=None): |
| 143 | + return grpc.experimental.unary_unary(request, target, '/LanguageAnalysisService/GetProductProductAnswer', |
| 144 | + question__analysis__pb2.GetProductAnswerRequest.SerializeToString, |
| 145 | + question__analysis__pb2.GetProductAnswerResponse.FromString, |
| 146 | + options, channel_credentials, |
| 147 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 148 | + |
| 149 | + @staticmethod |
| 150 | + def GetAnswerType(request, |
| 151 | + target, |
| 152 | + options=(), |
| 153 | + channel_credentials=None, |
| 154 | + call_credentials=None, |
| 155 | + insecure=False, |
| 156 | + compression=None, |
| 157 | + wait_for_ready=None, |
| 158 | + timeout=None, |
| 159 | + metadata=None): |
| 160 | + return grpc.experimental.unary_unary(request, target, '/LanguageAnalysisService/GetAnswerType', |
| 161 | + question__analysis__pb2.GetAnswerTypeRequest.SerializeToString, |
| 162 | + question__analysis__pb2.GetAnswerTypeResponse.FromString, |
| 163 | + options, channel_credentials, |
| 164 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 165 | + |
| 166 | + @staticmethod |
| 167 | + def GetQuestionType(request, |
| 168 | + target, |
| 169 | + options=(), |
| 170 | + channel_credentials=None, |
| 171 | + call_credentials=None, |
| 172 | + insecure=False, |
| 173 | + compression=None, |
| 174 | + wait_for_ready=None, |
| 175 | + timeout=None, |
| 176 | + metadata=None): |
| 177 | + return grpc.experimental.unary_unary(request, target, '/LanguageAnalysisService/GetQuestionType', |
| 178 | + question__analysis__pb2.GetQuestionTypeRequest.SerializeToString, |
| 179 | + question__analysis__pb2.GetQuestionTypeResponse.FromString, |
| 180 | + options, channel_credentials, |
| 181 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 182 | + |
| 183 | + @staticmethod |
| 184 | + def GetTimeOfAnswer(request, |
| 185 | + target, |
| 186 | + options=(), |
| 187 | + channel_credentials=None, |
| 188 | + call_credentials=None, |
| 189 | + insecure=False, |
| 190 | + compression=None, |
| 191 | + wait_for_ready=None, |
| 192 | + timeout=None, |
| 193 | + metadata=None): |
| 194 | + return grpc.experimental.unary_unary(request, target, '/LanguageAnalysisService/GetTimeOfAnswer', |
| 195 | + question__analysis__pb2.GetTimeOfAnswerRequest.SerializeToString, |
| 196 | + question__analysis__pb2.GetTimeOfAnswerResponse.FromString, |
| 197 | + options, channel_credentials, |
| 198 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
0 commit comments