def __setstate__(self, state):
    'Support the pickle protocol.'
    self.__init__()
    serialized = state['serialized']
    if (not isinstance(serialized, bytes)):
        serialized = serialized.encode('latin1')
    self.ParseFromString(serialized)
Support the pickle protocol.
def __setstate__(self, state):
    
    self.__init__()
    serialized = state['serialized']
    if (not isinstance(serialized, bytes)):
        serialized = serialized.encode('latin1')
    self.ParseFromString(serialized)