-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcrmsfa_pb2_grpc.py
More file actions
174 lines (150 loc) · 6.07 KB
/
crmsfa_pb2_grpc.py
File metadata and controls
174 lines (150 loc) · 6.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import common_types_pb2 as common__types__pb2
import crmsfa_pb2 as crmsfa__pb2
class CrmsfaProcsStub(object):
"""The service definition.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Ping = channel.unary_unary(
'/crmsfa.CrmsfaProcs/Ping',
request_serializer=common__types__pb2.PingRequest.SerializeToString,
response_deserializer=common__types__pb2.PingReply.FromString,
)
class CrmsfaProcsServicer(object):
"""The service definition.
"""
def Ping(self, request, context):
"""Sends a greeting
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_CrmsfaProcsServicer_to_server(servicer, server):
rpc_method_handlers = {
'Ping': grpc.unary_unary_rpc_method_handler(
servicer.Ping,
request_deserializer=common__types__pb2.PingRequest.FromString,
response_serializer=common__types__pb2.PingReply.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'crmsfa.CrmsfaProcs', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
class OdooProcsStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Login = channel.unary_unary(
'/crmsfa.OdooProcs/Login',
request_serializer=crmsfa__pb2.FaOdoo.SerializeToString,
response_deserializer=crmsfa__pb2.FaSession.FromString,
)
self.SwitchLang = channel.unary_unary(
'/crmsfa.OdooProcs/SwitchLang',
request_serializer=common__types__pb2.Text.SerializeToString,
response_deserializer=common__types__pb2.Result.FromString,
)
self.FieldsGet = channel.unary_unary(
'/crmsfa.OdooProcs/FieldsGet',
request_serializer=crmsfa__pb2.FaModel.SerializeToString,
response_deserializer=crmsfa__pb2.FaModel.FromString,
)
self.BrowseRecord = channel.unary_unary(
'/crmsfa.OdooProcs/BrowseRecord',
request_serializer=crmsfa__pb2.FaIds.SerializeToString,
response_deserializer=crmsfa__pb2.FaRecordset.FromString,
)
self.WriteRecord = channel.unary_unary(
'/crmsfa.OdooProcs/WriteRecord',
request_serializer=crmsfa__pb2.FaRecordset.SerializeToString,
response_deserializer=common__types__pb2.Result.FromString,
)
self.Ref = channel.unary_unary(
'/crmsfa.OdooProcs/Ref',
request_serializer=common__types__pb2.Text.SerializeToString,
response_deserializer=crmsfa__pb2.FaRecordset.FromString,
)
class OdooProcsServicer(object):
# missing associated documentation comment in .proto file
pass
def Login(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SwitchLang(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def FieldsGet(self, request, context):
"""model operations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def BrowseRecord(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WriteRecord(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Ref(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_OdooProcsServicer_to_server(servicer, server):
rpc_method_handlers = {
'Login': grpc.unary_unary_rpc_method_handler(
servicer.Login,
request_deserializer=crmsfa__pb2.FaOdoo.FromString,
response_serializer=crmsfa__pb2.FaSession.SerializeToString,
),
'SwitchLang': grpc.unary_unary_rpc_method_handler(
servicer.SwitchLang,
request_deserializer=common__types__pb2.Text.FromString,
response_serializer=common__types__pb2.Result.SerializeToString,
),
'FieldsGet': grpc.unary_unary_rpc_method_handler(
servicer.FieldsGet,
request_deserializer=crmsfa__pb2.FaModel.FromString,
response_serializer=crmsfa__pb2.FaModel.SerializeToString,
),
'BrowseRecord': grpc.unary_unary_rpc_method_handler(
servicer.BrowseRecord,
request_deserializer=crmsfa__pb2.FaIds.FromString,
response_serializer=crmsfa__pb2.FaRecordset.SerializeToString,
),
'WriteRecord': grpc.unary_unary_rpc_method_handler(
servicer.WriteRecord,
request_deserializer=crmsfa__pb2.FaRecordset.FromString,
response_serializer=common__types__pb2.Result.SerializeToString,
),
'Ref': grpc.unary_unary_rpc_method_handler(
servicer.Ref,
request_deserializer=common__types__pb2.Text.FromString,
response_serializer=crmsfa__pb2.FaRecordset.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'crmsfa.OdooProcs', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))