public byte[] ToProtoBytes()
 {
     return(CodeLock.SerializeToBytes(this));
 }
 public static void SerializeLengthDelimited(Stream stream, CodeLock instance)
 {
     byte[] bytes = CodeLock.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }