{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/6","labels_url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/6/comments","events_url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/6/events","html_url":"https://github.com/cloudfoundry/dropsonde/issues/6","id":70146851,"number":6,"title":"Endianness of UUID and protobuf","user":{"login":"viniciusccarvalho","id":803893,"avatar_url":"https://avatars.githubusercontent.com/u/803893?v=3","gravatar_id":"","url":"https://api.github.com/users/viniciusccarvalho","html_url":"https://github.com/viniciusccarvalho","followers_url":"https://api.github.com/users/viniciusccarvalho/followers","following_url":"https://api.github.com/users/viniciusccarvalho/following{/other_user}","gists_url":"https://api.github.com/users/viniciusccarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciusccarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciusccarvalho/subscriptions","organizations_url":"https://api.github.com/users/viniciusccarvalho/orgs","repos_url":"https://api.github.com/users/viniciusccarvalho/repos","events_url":"https://api.github.com/users/viniciusccarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/viniciusccarvalho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-22T14:40:36Z","updated_at":"2015-04-23T18:46:46Z","closed_at":"2015-04-23T18:46:46Z","body":"Hi there, I just wanted to call out for an issue I'm experiencing, may or may not be a bug.\r\n\r\nTrying to parse the returned value from UUID of the protocol in Java, always return a mismatch UUID. So I took a peak into the code and found this line:\r\n\r\nreturn &control.UUID{Low: proto.Uint64(binary.LittleEndian.Uint64(id[:8])), High: proto.Uint64(binary.LittleEndian.Uint64(id[8:]))}\r\n\r\nI'm not that familiar with protobuf, but from discussions around the web, it seems that it should take care of endianness of the bytes, and each client convert to its native implementation.\r\n\r\nAnd because this is forcing little endian value, when java clients try to read them, I'm forced to read as BigIntegers, convert to bytes and revert them in order to construct the proper UUID string back.\r\n\r\nIs this really the expected behavior? Or should it be a more interoperable way to parse this info?\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/comments/95681814","html_url":"https://github.com/cloudfoundry/dropsonde/issues/6#issuecomment-95681814","issue_url":"https://api.github.com/repos/cloudfoundry/dropsonde/issues/6","id":95681814,"user":{"login":"jmtuley","id":625617,"avatar_url":"https://avatars.githubusercontent.com/u/625617?v=3","gravatar_id":"","url":"https://api.github.com/users/jmtuley","html_url":"https://github.com/jmtuley","followers_url":"https://api.github.com/users/jmtuley/followers","following_url":"https://api.github.com/users/jmtuley/following{/other_user}","gists_url":"https://api.github.com/users/jmtuley/gists{/gist_id}","starred_url":"https://api.github.com/users/jmtuley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmtuley/subscriptions","organizations_url":"https://api.github.com/users/jmtuley/orgs","repos_url":"https://api.github.com/users/jmtuley/repos","events_url":"https://api.github.com/users/jmtuley/events{/privacy}","received_events_url":"https://api.github.com/users/jmtuley/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T18:46:46Z","updated_at":"2015-04-23T18:46:46Z","body":"I'm going to close this issue, since the documentation will live over at [cloudfoundry/dropsonde-protocol](https://github.com/cloudfoundry/dropsonde-protocol). The [existing tracker story](https://www.pivotaltracker.com/story/show/93019308) will continue to reflect the progress of the work."}}