class_docstr: 互联互通如果使用异步传输协议作为标准参考，Header会复用metadata传输互联互通协议报头，且metadata中会传输异步场景下的消息相关属性
  互联互通如果使用其他协议作为参考标准，Header会复用metadata传输互联互通协议报头
  互联互通如果使用GRPC作为参考标准，Header会复用HTTP2的报头传输互联互通协议报头
class_docstr_tok: ["\u4e92\u8054\u4e92\u901a\u5982\u679c\u4f7f\u7528\u5f02\u6b65\u4f20\u8f93\u534f\u8bae\u4f5c\u4e3a\u6807\u51c6\u53c2\u8003\uff0cHeader\u4f1a\u590d\u7528metadata\u4f20\u8f93\u4e92\u8054\u4e92\u901a\u534f\u8bae\u62a5\u5934\uff0c\u4e14metadata\u4e2d\u4f1a\u4f20\u8f93\u5f02\u6b65\u573a\u666f\u4e0b\u7684\u6d88\u606f\u76f8\u5173\u5c5e\u6027","\u4e92\u8054\u4e92\u901a\u5982\u679c\u4f7f\u7528\u5176\u4ed6\u534f\u8bae\u4f5c\u4e3a\u53c2\u8003\u6807\u51c6\uff0cHeader\u4f1a\u590d\u7528metadata\u4f20\u8f93\u4e92\u8054\u4e92\u901a\u534f\u8bae\u62a5\u5934","\u4e92\u8054\u4e92\u901a\u5982\u679c\u4f7f\u7528GRPC\u4f5c\u4e3a\u53c2\u8003\u6807\u51c6\uff0cHeader\u4f1a\u590d\u7528HTTP2\u7684\u62a5\u5934\u4f20\u8f93\u4e92\u8054\u4e92\u901a\u534f\u8bae\u62a5\u5934"]
docstr: Constructor.
  
  Args:
      channel: A grpc.Channel.
docstr_tok: ["Constructor",".","Args",":","channel",":","A","grpc.Channel","."]
code: def __init__(self, channel):
      """Constructor.
  
      Args:
          channel: A grpc.Channel.
      """
      self.transport = channel.stream_stream(
          "/org.ppc.ptp.PrivateTransferProtocol/transport",
          request_serializer=osx__pb2.Inbound.SerializeToString,
          response_deserializer=osx__pb2.Outbound.FromString,
      )
      self.invoke = channel.unary_unary(
          "/org.ppc.ptp.PrivateTransferProtocol/invoke",
          request_serializer=osx__pb2.Inbound.SerializeToString,
          response_deserializer=osx__pb2.Outbound.FromString,
      )
  
imports: import grpc
  import osx_pb2
label_desc: Use image node_id 1 to create a new PrivateTransferProtocolStub object from inherited base classes: object with example: obj = PrivateTransferProtocolStub(channel)