{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/59097210","id":59097210,"diff_hunk":"@@ -319,6 +320,13 @@ public final boolean producesSortedKeys(PipelineOptions options) throws Exceptio\n     return sourceDelegate.producesSortedKeys(options);\n   }\n \n+  @Override\n+  public void populateDisplayData(DisplayData.Builder builder) {\n+    builder\n+        .include(sourceDelegate)\n+        .add(\"compressionMode\", channelFactory.toString());","path":"sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/io/CompressedSource.java","position":16,"original_position":16,"commit_id":"f4bca76f1bf639fe97cf79d48d68e256ea291688","original_commit_id":"06fd5ff7f6704e88c55905c47c05654f42a202a1","user":{"login":"swegner","id":674021,"avatar_url":"https://avatars.githubusercontent.com/u/674021?v=3","gravatar_id":"","url":"https://api.github.com/users/swegner","html_url":"https://github.com/swegner","followers_url":"https://api.github.com/users/swegner/followers","following_url":"https://api.github.com/users/swegner/following{/other_user}","gists_url":"https://api.github.com/users/swegner/gists{/gist_id}","starred_url":"https://api.github.com/users/swegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swegner/subscriptions","organizations_url":"https://api.github.com/users/swegner/orgs","repos_url":"https://api.github.com/users/swegner/repos","events_url":"https://api.github.com/users/swegner/events{/privacy}","received_events_url":"https://api.github.com/users/swegner/received_events","type":"User","site_admin":false},"body":"GZIP and BZIP are enum members which implement the class, so their `getClass()` returns something like `com.google.cloud.dataflow.sdk.io.CompressedSource$CompressionMode$1`\r\n\r\nI've modified it to check whether the implementing class is an enum, and if so use it's `.name()`.","created_at":"2016-04-08T22:20:16Z","updated_at":"2016-04-08T22:20:16Z","html_url":"https://github.com/apache/incubator-beam/pull/123#discussion_r59097210","pull_request_url":"https://api.github.com/repos/apache/incubator-beam/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/59097210"},"html":{"href":"https://github.com/apache/incubator-beam/pull/123#discussion_r59097210"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/123","id":65345218,"html_url":"https://github.com/apache/incubator-beam/pull/123","diff_url":"https://github.com/apache/incubator-beam/pull/123.diff","patch_url":"https://github.com/apache/incubator-beam/pull/123.patch","issue_url":"https://api.github.com/repos/apache/incubator-beam/issues/123","number":123,"state":"open","locked":false,"title":"[BEAM-121] Add DisplayData for IO transforms","user":{"login":"swegner","id":674021,"avatar_url":"https://avatars.githubusercontent.com/u/674021?v=3","gravatar_id":"","url":"https://api.github.com/users/swegner","html_url":"https://github.com/swegner","followers_url":"https://api.github.com/users/swegner/followers","following_url":"https://api.github.com/users/swegner/following{/other_user}","gists_url":"https://api.github.com/users/swegner/gists{/gist_id}","starred_url":"https://api.github.com/users/swegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swegner/subscriptions","organizations_url":"https://api.github.com/users/swegner/orgs","repos_url":"https://api.github.com/users/swegner/repos","events_url":"https://api.github.com/users/swegner/events{/privacy}","received_events_url":"https://api.github.com/users/swegner/received_events","type":"User","site_admin":false},"body":"Be sure to do all of the following to help us incorporate your contribution\r\nquickly and easily:\r\n\r\n - [x] Make sure the PR title is formatted like:\r\n   `[BEAM-<Jira issue #>] Description of pull request`\r\n - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable\r\n       Travis-CI on your fork and ensure the whole test matrix passes).\r\n - [x] Replace \"<Jira issue #>\" in the title with the actual Jira issue\r\n       number, if there is one.\r\n - [x] If this contribution is large, please file an Apache\r\n       [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt).\r\n\r\n---\r\n\r\n","created_at":"2016-04-05T17:44:04Z","updated_at":"2016-04-08T22:20:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e916408f5f23ba746359706bdd3980f13c578107","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-beam/pulls/123/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-beam/pulls/123/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-beam/issues/123/comments","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/f4bca76f1bf639fe97cf79d48d68e256ea291688","head":{"label":"swegner:displaydata-io","ref":"displaydata-io","sha":"f4bca76f1bf639fe97cf79d48d68e256ea291688","user":{"login":"swegner","id":674021,"avatar_url":"https://avatars.githubusercontent.com/u/674021?v=3","gravatar_id":"","url":"https://api.github.com/users/swegner","html_url":"https://github.com/swegner","followers_url":"https://api.github.com/users/swegner/followers","following_url":"https://api.github.com/users/swegner/following{/other_user}","gists_url":"https://api.github.com/users/swegner/gists{/gist_id}","starred_url":"https://api.github.com/users/swegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swegner/subscriptions","organizations_url":"https://api.github.com/users/swegner/orgs","repos_url":"https://api.github.com/users/swegner/repos","events_url":"https://api.github.com/users/swegner/events{/privacy}","received_events_url":"https://api.github.com/users/swegner/received_events","type":"User","site_admin":false},"repo":{"id":52832170,"name":"incubator-beam","full_name":"swegner/incubator-beam","owner":{"login":"swegner","id":674021,"avatar_url":"https://avatars.githubusercontent.com/u/674021?v=3","gravatar_id":"","url":"https://api.github.com/users/swegner","html_url":"https://github.com/swegner","followers_url":"https://api.github.com/users/swegner/followers","following_url":"https://api.github.com/users/swegner/following{/other_user}","gists_url":"https://api.github.com/users/swegner/gists{/gist_id}","starred_url":"https://api.github.com/users/swegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swegner/subscriptions","organizations_url":"https://api.github.com/users/swegner/orgs","repos_url":"https://api.github.com/users/swegner/repos","events_url":"https://api.github.com/users/swegner/events{/privacy}","received_events_url":"https://api.github.com/users/swegner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swegner/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":true,"url":"https://api.github.com/repos/swegner/incubator-beam","forks_url":"https://api.github.com/repos/swegner/incubator-beam/forks","keys_url":"https://api.github.com/repos/swegner/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swegner/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swegner/incubator-beam/teams","hooks_url":"https://api.github.com/repos/swegner/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/swegner/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/swegner/incubator-beam/events","assignees_url":"https://api.github.com/repos/swegner/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/swegner/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/swegner/incubator-beam/tags","blobs_url":"https://api.github.com/repos/swegner/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swegner/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swegner/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/swegner/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swegner/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/swegner/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/swegner/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/swegner/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/swegner/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/swegner/incubator-beam/subscription","commits_url":"https://api.github.com/repos/swegner/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/swegner/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/swegner/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/swegner/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/swegner/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/swegner/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swegner/incubator-beam/merges","archive_url":"https://api.github.com/repos/swegner/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swegner/incubator-beam/downloads","issues_url":"https://api.github.com/repos/swegner/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/swegner/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/swegner/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/swegner/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swegner/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/swegner/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/swegner/incubator-beam/deployments","created_at":"2016-02-29T23:20:08Z","updated_at":"2016-02-29T23:20:11Z","pushed_at":"2016-04-08T21:58:01Z","git_url":"git://github.com/swegner/incubator-beam.git","ssh_url":"git@github.com:swegner/incubator-beam.git","clone_url":"https://github.com/swegner/incubator-beam.git","svn_url":"https://github.com/swegner/incubator-beam","homepage":null,"size":11915,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"5d78420bf31ca7e289fc956dc5365d920afd2439","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":50904245,"name":"incubator-beam","full_name":"apache/incubator-beam","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-beam","forks_url":"https://api.github.com/repos/apache/incubator-beam/forks","keys_url":"https://api.github.com/repos/apache/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-beam/teams","hooks_url":"https://api.github.com/repos/apache/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-beam/events","assignees_url":"https://api.github.com/repos/apache/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-beam/tags","blobs_url":"https://api.github.com/repos/apache/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-beam/subscription","commits_url":"https://api.github.com/repos/apache/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-beam/merges","archive_url":"https://api.github.com/repos/apache/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-beam/downloads","issues_url":"https://api.github.com/repos/apache/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-beam/deployments","created_at":"2016-02-02T08:00:06Z","updated_at":"2016-04-08T15:03:51Z","pushed_at":"2016-04-08T22:13:03Z","git_url":"git://github.com/apache/incubator-beam.git","ssh_url":"git@github.com:apache/incubator-beam.git","clone_url":"https://github.com/apache/incubator-beam.git","svn_url":"https://github.com/apache/incubator-beam","homepage":null,"size":12474,"stargazers_count":121,"watchers_count":121,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":"git://git.apache.org/incubator-beam.git","open_issues_count":25,"forks":58,"open_issues":25,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/123"},"html":{"href":"https://github.com/apache/incubator-beam/pull/123"},"issue":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/123"},"comments":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-beam/statuses/f4bca76f1bf639fe97cf79d48d68e256ea291688"}}}}