calmerge_pb2_grpc.py 5.76 KB
Newer Older
Wei Shoulin's avatar
c3  
Wei Shoulin committed
1
2
3
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

Wei Shoulin's avatar
brick    
Wei Shoulin committed
4
from . import calmerge_pb2 as sls_dot_calmerge_dot_calmerge__pb2
Wei Shoulin's avatar
c3  
Wei Shoulin committed
5
6
7
8
9
10
11
12
13
14
15
16
17


class CalMergeSrvStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.Find = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
18
        '/dfs.sls.calmerge.CalMergeSrv/Find',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
19
20
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.FindCalMergeReq.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.FindCalMergeResp.FromString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
21
        )
Wei Shoulin's avatar
Wei Shoulin committed
22
    self.GetLatestByL0 = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
23
        '/dfs.sls.calmerge.CalMergeSrv/GetLatestByL0',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
24
25
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.GetLatestByL0Req.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.GetLatestByL0Resp.FromString,
Wei Shoulin's avatar
Wei Shoulin committed
26
        )
Wei Shoulin's avatar
c3  
Wei Shoulin committed
27
    self.Get = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
28
        '/dfs.sls.calmerge.CalMergeSrv/Get',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
29
30
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.GetCalMergeReq.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.GetCalMergeResp.FromString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
31
32
        )
    self.Write = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
33
        '/dfs.sls.calmerge.CalMergeSrv/Write',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
34
35
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.WriteCalMergeReq.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.WriteCalMergeResp.FromString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
36
37
        )
    self.UpdateQc1Status = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
38
        '/dfs.sls.calmerge.CalMergeSrv/UpdateQc1Status',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
39
40
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusReq.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusResp.FromString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
41
42
        )
    self.UpdateProcStatus = channel.unary_unary(
Wei Shoulin's avatar
error    
Wei Shoulin committed
43
        '/dfs.sls.calmerge.CalMergeSrv/UpdateProcStatus',
Wei Shoulin's avatar
brick    
Wei Shoulin committed
44
45
        request_serializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusReq.SerializeToString,
        response_deserializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusResp.FromString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
46
47
48
49
50
51
52
53
54
55
56
57
58
59
        )


class CalMergeSrvServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def Find(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!')

Wei Shoulin's avatar
Wei Shoulin committed
60
61
62
63
64
65
66
  def GetLatestByL0(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!')

Wei Shoulin's avatar
c3  
Wei Shoulin committed
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
  def Get(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 Write(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 UpdateQc1Status(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 UpdateProcStatus(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_CalMergeSrvServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'Find': grpc.unary_unary_rpc_method_handler(
          servicer.Find,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
100
101
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.FindCalMergeReq.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.FindCalMergeResp.SerializeToString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
102
      ),
Wei Shoulin's avatar
Wei Shoulin committed
103
104
      'GetLatestByL0': grpc.unary_unary_rpc_method_handler(
          servicer.GetLatestByL0,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
105
106
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.GetLatestByL0Req.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.GetLatestByL0Resp.SerializeToString,
Wei Shoulin's avatar
Wei Shoulin committed
107
      ),
Wei Shoulin's avatar
c3  
Wei Shoulin committed
108
109
      'Get': grpc.unary_unary_rpc_method_handler(
          servicer.Get,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
110
111
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.GetCalMergeReq.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.GetCalMergeResp.SerializeToString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
112
113
114
      ),
      'Write': grpc.unary_unary_rpc_method_handler(
          servicer.Write,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
115
116
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.WriteCalMergeReq.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.WriteCalMergeResp.SerializeToString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
117
118
119
      ),
      'UpdateQc1Status': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateQc1Status,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
120
121
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusReq.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateQc1StatusResp.SerializeToString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
122
123
124
      ),
      'UpdateProcStatus': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateProcStatus,
Wei Shoulin's avatar
brick    
Wei Shoulin committed
125
126
          request_deserializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusReq.FromString,
          response_serializer=sls_dot_calmerge_dot_calmerge__pb2.UpdateProcStatusResp.SerializeToString,
Wei Shoulin's avatar
c3  
Wei Shoulin committed
127
128
129
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
Wei Shoulin's avatar
error    
Wei Shoulin committed
130
      'dfs.sls.calmerge.CalMergeSrv', rpc_method_handlers)
Wei Shoulin's avatar
c3  
Wei Shoulin committed
131
  server.add_generic_rpc_handlers((generic_handler,))