msggen: Regenerate for addition of SendCustomMsg

Performed using:
  PYTHONPATH=contrib/msggen python3 contrib/msggen/msggen/__main__.py
This commit is contained in:
Carl Dong
2023-02-06 12:14:54 -05:00
committed by Alex Myers
parent ef51ae3c6d
commit b83a19164c
8 changed files with 201 additions and 21 deletions

View File

@@ -234,6 +234,11 @@ class NodeStub(object):
request_serializer=node__pb2.PingRequest.SerializeToString,
response_deserializer=node__pb2.PingResponse.FromString,
)
self.SendCustomMsg = channel.unary_unary(
'/cln.Node/SendCustomMsg',
request_serializer=node__pb2.SendcustommsgRequest.SerializeToString,
response_deserializer=node__pb2.SendcustommsgResponse.FromString,
)
self.SetChannel = channel.unary_unary(
'/cln.Node/SetChannel',
request_serializer=node__pb2.SetchannelRequest.SerializeToString,
@@ -523,6 +528,12 @@ class NodeServicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SendCustomMsg(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SetChannel(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -770,6 +781,11 @@ def add_NodeServicer_to_server(servicer, server):
request_deserializer=node__pb2.PingRequest.FromString,
response_serializer=node__pb2.PingResponse.SerializeToString,
),
'SendCustomMsg': grpc.unary_unary_rpc_method_handler(
servicer.SendCustomMsg,
request_deserializer=node__pb2.SendcustommsgRequest.FromString,
response_serializer=node__pb2.SendcustommsgResponse.SerializeToString,
),
'SetChannel': grpc.unary_unary_rpc_method_handler(
servicer.SetChannel,
request_deserializer=node__pb2.SetchannelRequest.FromString,
@@ -1548,6 +1564,23 @@ class Node(object):
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SendCustomMsg(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/cln.Node/SendCustomMsg',
node__pb2.SendcustommsgRequest.SerializeToString,
node__pb2.SendcustommsgResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SetChannel(request,
target,