{"action":"created","comment":{"url":"https://api.github.com/repos/square/wire/pulls/comments/68459093","id":68459093,"diff_hunk":"@@ -176,6 +191,17 @@ static WireCompiler forArgs(\n         for (String identifier : splitArg(arg, EXCLUDES_FLAG.length())) {\n           identifierSetBuilder.exclude(identifier);\n         }\n+      } else if (arg.startsWith(PROTO_ADAPTER)) {\n+        List<String> customProtoAdapterArgs = splitArg(arg, PROTO_ADAPTER.length());\n+        if (customProtoAdapterArgs.size() != 3) {\n+          throw new IllegalArgumentException(\"Wrong number of arguments in '\" + arg + \"'.\");\n+        }\n+\n+        ProtoType protoType = ProtoType.get(customProtoAdapterArgs.get(0).trim());\n+        ClassName javaClassName = ClassName.bestGuess(customProtoAdapterArgs.get(1).trim());\n+\n+        protoTypeToJavaClass.put(protoType, javaClassName);\n+        protoTypeToAdapter.put(protoType, new AdapterEntry(customProtoAdapterArgs.get(2).trim()));","path":"wire-compiler/src/main/java/com/squareup/wire/WireCompiler.java","position":84,"original_position":84,"commit_id":"e13c1abe333c80478ee5b9f9338616d9e5ce929a","original_commit_id":"e13c1abe333c80478ee5b9f9338616d9e5ce929a","user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"body":"nice","created_at":"2016-06-24T20:38:45Z","updated_at":"2016-06-24T20:38:45Z","html_url":"https://github.com/square/wire/pull/603#discussion_r68459093","pull_request_url":"https://api.github.com/repos/square/wire/pulls/603","_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/comments/68459093"},"html":{"href":"https://github.com/square/wire/pull/603#discussion_r68459093"},"pull_request":{"href":"https://api.github.com/repos/square/wire/pulls/603"}}},"pull_request":{"url":"https://api.github.com/repos/square/wire/pulls/603","id":74661691,"html_url":"https://github.com/square/wire/pull/603","diff_url":"https://github.com/square/wire/pull/603.diff","patch_url":"https://github.com/square/wire/pull/603.patch","issue_url":"https://api.github.com/repos/square/wire/issues/603","number":603,"state":"open","locked":false,"title":"pojo be gone","user":{"login":"matthewdu","id":5778592,"avatar_url":"https://avatars.githubusercontent.com/u/5778592?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdu","html_url":"https://github.com/matthewdu","followers_url":"https://api.github.com/users/matthewdu/followers","following_url":"https://api.github.com/users/matthewdu/following{/other_user}","gists_url":"https://api.github.com/users/matthewdu/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdu/subscriptions","organizations_url":"https://api.github.com/users/matthewdu/orgs","repos_url":"https://api.github.com/users/matthewdu/repos","events_url":"https://api.github.com/users/matthewdu/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdu/received_events","type":"User","site_admin":false},"body":"DO NOT MERGE\r\n\r\n### Add `--proto_adapter` flag\r\n`--proto_adapter` takes 3 comma separated arguments: `proto message name`, `java class` to be mapped to, and an `adapter` for encoding/decoding\r\n\r\nie `\r\n--proto_adapter=squareup.dinosaur.common.Tyrannosaurus, com.squareup.wire.Tyrannosaurus, com.squareup.wire.DinosaurAdapter#TYRANNOSAURUS_ADAPTER`\r\n\r\nA helper class `[proto_message_name]ProtoFields` is generated instead of the normal pojo class. This class has information about the tags and corresponding `ProtoAdapter`s for each proto field.\r\n\r\n@swankjesse ","created_at":"2016-06-21T18:26:16Z","updated_at":"2016-06-24T20:38:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2906a2a808e418cfcb44ec00181b1f17c5ce2478","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/square/wire/pulls/603/commits","review_comments_url":"https://api.github.com/repos/square/wire/pulls/603/comments","review_comment_url":"https://api.github.com/repos/square/wire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/wire/issues/603/comments","statuses_url":"https://api.github.com/repos/square/wire/statuses/e13c1abe333c80478ee5b9f9338616d9e5ce929a","head":{"label":"square:matthewdu/no-pojo","ref":"matthewdu/no-pojo","sha":"e13c1abe333c80478ee5b9f9338616d9e5ce929a","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":12274147,"name":"wire","full_name":"square/wire","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/wire","description":"Clean, lightweight protocol buffers for Android and Java.","fork":false,"url":"https://api.github.com/repos/square/wire","forks_url":"https://api.github.com/repos/square/wire/forks","keys_url":"https://api.github.com/repos/square/wire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/wire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/wire/teams","hooks_url":"https://api.github.com/repos/square/wire/hooks","issue_events_url":"https://api.github.com/repos/square/wire/issues/events{/number}","events_url":"https://api.github.com/repos/square/wire/events","assignees_url":"https://api.github.com/repos/square/wire/assignees{/user}","branches_url":"https://api.github.com/repos/square/wire/branches{/branch}","tags_url":"https://api.github.com/repos/square/wire/tags","blobs_url":"https://api.github.com/repos/square/wire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/wire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/wire/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/wire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/wire/statuses/{sha}","languages_url":"https://api.github.com/repos/square/wire/languages","stargazers_url":"https://api.github.com/repos/square/wire/stargazers","contributors_url":"https://api.github.com/repos/square/wire/contributors","subscribers_url":"https://api.github.com/repos/square/wire/subscribers","subscription_url":"https://api.github.com/repos/square/wire/subscription","commits_url":"https://api.github.com/repos/square/wire/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/wire/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/wire/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/wire/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/wire/contents/{+path}","compare_url":"https://api.github.com/repos/square/wire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/wire/merges","archive_url":"https://api.github.com/repos/square/wire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/wire/downloads","issues_url":"https://api.github.com/repos/square/wire/issues{/number}","pulls_url":"https://api.github.com/repos/square/wire/pulls{/number}","milestones_url":"https://api.github.com/repos/square/wire/milestones{/number}","notifications_url":"https://api.github.com/repos/square/wire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/wire/labels{/name}","releases_url":"https://api.github.com/repos/square/wire/releases{/id}","deployments_url":"https://api.github.com/repos/square/wire/deployments","created_at":"2013-08-21T15:45:47Z","updated_at":"2016-06-23T09:52:51Z","pushed_at":"2016-06-24T20:30:20Z","git_url":"git://github.com/square/wire.git","ssh_url":"git@github.com:square/wire.git","clone_url":"https://github.com/square/wire.git","svn_url":"https://github.com/square/wire","homepage":"","size":6426,"stargazers_count":1530,"watchers_count":1530,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":228,"mirror_url":null,"open_issues_count":26,"forks":228,"open_issues":26,"watchers":1530,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"7e834cb561888f865c425e66435674dfce19cecc","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":12274147,"name":"wire","full_name":"square/wire","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/wire","description":"Clean, lightweight protocol buffers for Android and Java.","fork":false,"url":"https://api.github.com/repos/square/wire","forks_url":"https://api.github.com/repos/square/wire/forks","keys_url":"https://api.github.com/repos/square/wire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/wire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/wire/teams","hooks_url":"https://api.github.com/repos/square/wire/hooks","issue_events_url":"https://api.github.com/repos/square/wire/issues/events{/number}","events_url":"https://api.github.com/repos/square/wire/events","assignees_url":"https://api.github.com/repos/square/wire/assignees{/user}","branches_url":"https://api.github.com/repos/square/wire/branches{/branch}","tags_url":"https://api.github.com/repos/square/wire/tags","blobs_url":"https://api.github.com/repos/square/wire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/wire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/wire/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/wire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/wire/statuses/{sha}","languages_url":"https://api.github.com/repos/square/wire/languages","stargazers_url":"https://api.github.com/repos/square/wire/stargazers","contributors_url":"https://api.github.com/repos/square/wire/contributors","subscribers_url":"https://api.github.com/repos/square/wire/subscribers","subscription_url":"https://api.github.com/repos/square/wire/subscription","commits_url":"https://api.github.com/repos/square/wire/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/wire/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/wire/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/wire/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/wire/contents/{+path}","compare_url":"https://api.github.com/repos/square/wire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/wire/merges","archive_url":"https://api.github.com/repos/square/wire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/wire/downloads","issues_url":"https://api.github.com/repos/square/wire/issues{/number}","pulls_url":"https://api.github.com/repos/square/wire/pulls{/number}","milestones_url":"https://api.github.com/repos/square/wire/milestones{/number}","notifications_url":"https://api.github.com/repos/square/wire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/wire/labels{/name}","releases_url":"https://api.github.com/repos/square/wire/releases{/id}","deployments_url":"https://api.github.com/repos/square/wire/deployments","created_at":"2013-08-21T15:45:47Z","updated_at":"2016-06-23T09:52:51Z","pushed_at":"2016-06-24T20:30:20Z","git_url":"git://github.com/square/wire.git","ssh_url":"git@github.com:square/wire.git","clone_url":"https://github.com/square/wire.git","svn_url":"https://github.com/square/wire","homepage":"","size":6426,"stargazers_count":1530,"watchers_count":1530,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":228,"mirror_url":null,"open_issues_count":26,"forks":228,"open_issues":26,"watchers":1530,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/603"},"html":{"href":"https://github.com/square/wire/pull/603"},"issue":{"href":"https://api.github.com/repos/square/wire/issues/603"},"comments":{"href":"https://api.github.com/repos/square/wire/issues/603/comments"},"review_comments":{"href":"https://api.github.com/repos/square/wire/pulls/603/comments"},"review_comment":{"href":"https://api.github.com/repos/square/wire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/wire/pulls/603/commits"},"statuses":{"href":"https://api.github.com/repos/square/wire/statuses/e13c1abe333c80478ee5b9f9338616d9e5ce929a"}}}}
{"actor":{"display_login":"swankjesse"}}