{"action":"created","issue":{"url":"https://api.github.com/repos/square/wire/issues/409","labels_url":"https://api.github.com/repos/square/wire/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/square/wire/issues/409/comments","events_url":"https://api.github.com/repos/square/wire/issues/409/events","html_url":"https://github.com/square/wire/pull/409","id":107310155,"number":409,"title":"Add unknown decoding helper to TagMap.Builder.","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T04:52:57Z","updated_at":"2015-09-19T05:01:38Z","closed_at":"2015-09-19T05:01:38Z","pull_request":{"url":"https://api.github.com/repos/square/wire/pulls/409","html_url":"https://github.com/square/wire/pull/409","diff_url":"https://github.com/square/wire/pull/409.diff","patch_url":"https://github.com/square/wire/pull/409.patch"},"body":"Also useful for `default` case in code gen:\r\n```java\r\n@Override public Person decode(ProtoReader reader) throws IOException {\r\n  Person.Builder builder = new Person.Builder();\r\n  long token = reader.beginMessage();\r\n  for (int tag; (tag = reader.nextTag()) != -1;) {\r\n    switch (tag) {\r\n      case 1: builder.name(nameAdapter.decode(reader)); break;\r\n      case 2: builder.id(idAdapter.decode(reader)); break;\r\n      case 3: builder.email(emailAdapter.decode(reader)); break;\r\n      default: builder.tagMap().decodeUnknown(reader, tag, Person.class); break;\r\n  }\r\n  reader.endMessage(token);\r\n  return builder.build();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/square/wire/issues/comments/141620320","html_url":"https://github.com/square/wire/pull/409#issuecomment-141620320","issue_url":"https://api.github.com/repos/square/wire/issues/409","id":141620320,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T05:01:38Z","updated_at":"2015-09-19T05:01:38Z","body":"Actually this `reader.getExtension` method is pretty good."}}