def __init__( self, stream: Union['IO.StreamHandle', dict, None] = None, ): if isinstance(stream, dict): stream = IO.StreamHandle(**stream) self.stream = stream
def __init__( self, stream: Union['IO.StreamHandle', dict, None] = None, streamCompression: Union['StreamCompression', dict, None] = None, ): if isinstance(stream, dict): stream = IO.StreamHandle(**stream) self.stream = stream if isinstance(streamCompression, dict): streamCompression = StreamCompression(**streamCompression) self.streamCompression = streamCompression
def __init__( self, stream: Union['IO.StreamHandle', dict, None] = None, traceFormat: Union['StreamFormat', dict, None] = None, streamCompression: Union['StreamCompression', dict, None] = None, ): if isinstance(stream, dict): stream = IO.StreamHandle(**stream) self.stream = stream if isinstance(traceFormat, dict): traceFormat = StreamFormat(**traceFormat) self.traceFormat = traceFormat if isinstance(streamCompression, dict): streamCompression = StreamCompression(**streamCompression) self.streamCompression = streamCompression
def __init__( self, dataLossOccurred: Union['bool', dict], stream: Union['IO.StreamHandle', dict, None] = None, traceFormat: Union['StreamFormat', dict, None] = None, streamCompression: Union['StreamCompression', dict, None] = None, ): if isinstance(dataLossOccurred, dict): dataLossOccurred = bool(**dataLossOccurred) self.dataLossOccurred = dataLossOccurred if isinstance(stream, dict): stream = IO.StreamHandle(**stream) self.stream = stream if isinstance(traceFormat, dict): traceFormat = StreamFormat(**traceFormat) self.traceFormat = traceFormat if isinstance(streamCompression, dict): streamCompression = StreamCompression(**streamCompression) self.streamCompression = streamCompression