{"action":"created","comment":{"url":"https://api.github.com/repos/square/wire/pulls/comments/200526440","pull_request_review_id":134860567,"id":200526440,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDUyNjQ0MA==","diff_hunk":"@@ -0,0 +1,78 @@\n+package com.squareup.wire.kotlin\n+\n+import com.squareup.wire.FieldEncoding\n+import com.squareup.wire.ProtoAdapter\n+import com.squareup.wire.ProtoReader\n+import com.squareup.wire.ProtoWriter\n+import okio.Buffer\n+import okio.ByteString\n+import java.io.IOException\n+\n+class UnknownFieldsBuilder {\n+  var byteString = ByteString.EMPTY\n+  var buffer: Buffer? = null\n+  var writer: ProtoWriter? = null\n+\n+  constructor() {\n+    prepareUnknownFields()\n+  }\n+\n+  fun addUnknownField(\n+      tag: Int,\n+      fieldEncoding: FieldEncoding,\n+      value: Any\n+  ) {\n+    try {\n+      val protoAdapter = fieldEncoding.rawProtoAdapter() as ProtoAdapter<Any>\n+      protoAdapter.encodeWithTag(writer, tag, value)\n+    } catch (_: IOException) {\n+      throw AssertionError()","path":"wire-kotlin-generator/src/main/java/com/squareup/wire/kotlin/messageHelper.kt","position":29,"original_position":29,"commit_id":"47f13a69ed37bfb48997bf16b54515fd4b856913","original_commit_id":"47f13a69ed37bfb48997bf16b54515fd4b856913","user":{"login":"swankjesse","id":133019,"node_id":"MDQ6VXNlcjEzMzAxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/133019?v=4","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":"comment that this is impossible?","created_at":"2018-07-06T00:58:21Z","updated_at":"2018-07-06T01:01:20Z","html_url":"https://github.com/square/wire/pull/700#discussion_r200526440","pull_request_url":"https://api.github.com/repos/square/wire/pulls/700","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/comments/200526440"},"html":{"href":"https://github.com/square/wire/pull/700#discussion_r200526440"},"pull_request":{"href":"https://api.github.com/repos/square/wire/pulls/700"}}},"pull_request":{"url":"https://api.github.com/repos/square/wire/pulls/700","id":198358467,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MzU4NDY3","html_url":"https://github.com/square/wire/pull/700","diff_url":"https://github.com/square/wire/pull/700.diff","patch_url":"https://github.com/square/wire/pull/700.patch","issue_url":"https://api.github.com/repos/square/wire/issues/700","number":700,"state":"open","locked":false,"title":"Kotlin Generator V1","user":{"login":"mc-lovin","id":28383812,"node_id":"MDQ6VXNlcjI4MzgzODEy","avatar_url":"https://avatars0.githubusercontent.com/u/28383812?v=4","gravatar_id":"","url":"https://api.github.com/users/mc-lovin","html_url":"https://github.com/mc-lovin","followers_url":"https://api.github.com/users/mc-lovin/followers","following_url":"https://api.github.com/users/mc-lovin/following{/other_user}","gists_url":"https://api.github.com/users/mc-lovin/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-lovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-lovin/subscriptions","organizations_url":"https://api.github.com/users/mc-lovin/orgs","repos_url":"https://api.github.com/users/mc-lovin/repos","events_url":"https://api.github.com/users/mc-lovin/events{/privacy}","received_events_url":"https://api.github.com/users/mc-lovin/received_events","type":"User","site_admin":false},"body":"- [x] Basic Kotlin Generator\r\n- [x] Add generated file\r\n- [x] Add Tests\r\n- [x] Add Android support\r\n- [x] Check Java compatibility \r\n- [x] File KotlinPoet bugs\r\n- [ ] Change 4 -> 2 spaces in function and constructor defs \r\n\r\nFollow Up\r\n- [ ] Options support\r\n- [ ] Add oneof support\r\n- [ ] Add Map support\r\n- [ ] Add Custom Adapter support\r\n- [ ] Profile / package","created_at":"2018-06-29T15:55:48Z","updated_at":"2018-07-06T01:01:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9294e503b0eaf6f65155ae34753a5997f7ab647d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/square/wire/pulls/700/commits","review_comments_url":"https://api.github.com/repos/square/wire/pulls/700/comments","review_comment_url":"https://api.github.com/repos/square/wire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/wire/issues/700/comments","statuses_url":"https://api.github.com/repos/square/wire/statuses/47f13a69ed37bfb48997bf16b54515fd4b856913","head":{"label":"mc-lovin:singla/constructor","ref":"singla/constructor","sha":"47f13a69ed37bfb48997bf16b54515fd4b856913","user":{"login":"mc-lovin","id":28383812,"node_id":"MDQ6VXNlcjI4MzgzODEy","avatar_url":"https://avatars0.githubusercontent.com/u/28383812?v=4","gravatar_id":"","url":"https://api.github.com/users/mc-lovin","html_url":"https://github.com/mc-lovin","followers_url":"https://api.github.com/users/mc-lovin/followers","following_url":"https://api.github.com/users/mc-lovin/following{/other_user}","gists_url":"https://api.github.com/users/mc-lovin/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-lovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-lovin/subscriptions","organizations_url":"https://api.github.com/users/mc-lovin/orgs","repos_url":"https://api.github.com/users/mc-lovin/repos","events_url":"https://api.github.com/users/mc-lovin/events{/privacy}","received_events_url":"https://api.github.com/users/mc-lovin/received_events","type":"User","site_admin":false},"repo":{"id":121056509,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEwNTY1MDk=","name":"wire","full_name":"mc-lovin/wire","owner":{"login":"mc-lovin","id":28383812,"node_id":"MDQ6VXNlcjI4MzgzODEy","avatar_url":"https://avatars0.githubusercontent.com/u/28383812?v=4","gravatar_id":"","url":"https://api.github.com/users/mc-lovin","html_url":"https://github.com/mc-lovin","followers_url":"https://api.github.com/users/mc-lovin/followers","following_url":"https://api.github.com/users/mc-lovin/following{/other_user}","gists_url":"https://api.github.com/users/mc-lovin/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-lovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-lovin/subscriptions","organizations_url":"https://api.github.com/users/mc-lovin/orgs","repos_url":"https://api.github.com/users/mc-lovin/repos","events_url":"https://api.github.com/users/mc-lovin/events{/privacy}","received_events_url":"https://api.github.com/users/mc-lovin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mc-lovin/wire","description":"Clean, lightweight protocol buffers for Android and Java.","fork":true,"url":"https://api.github.com/repos/mc-lovin/wire","forks_url":"https://api.github.com/repos/mc-lovin/wire/forks","keys_url":"https://api.github.com/repos/mc-lovin/wire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mc-lovin/wire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mc-lovin/wire/teams","hooks_url":"https://api.github.com/repos/mc-lovin/wire/hooks","issue_events_url":"https://api.github.com/repos/mc-lovin/wire/issues/events{/number}","events_url":"https://api.github.com/repos/mc-lovin/wire/events","assignees_url":"https://api.github.com/repos/mc-lovin/wire/assignees{/user}","branches_url":"https://api.github.com/repos/mc-lovin/wire/branches{/branch}","tags_url":"https://api.github.com/repos/mc-lovin/wire/tags","blobs_url":"https://api.github.com/repos/mc-lovin/wire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mc-lovin/wire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mc-lovin/wire/git/refs{/sha}","trees_url":"https://api.github.com/repos/mc-lovin/wire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mc-lovin/wire/statuses/{sha}","languages_url":"https://api.github.com/repos/mc-lovin/wire/languages","stargazers_url":"https://api.github.com/repos/mc-lovin/wire/stargazers","contributors_url":"https://api.github.com/repos/mc-lovin/wire/contributors","subscribers_url":"https://api.github.com/repos/mc-lovin/wire/subscribers","subscription_url":"https://api.github.com/repos/mc-lovin/wire/subscription","commits_url":"https://api.github.com/repos/mc-lovin/wire/commits{/sha}","git_commits_url":"https://api.github.com/repos/mc-lovin/wire/git/commits{/sha}","comments_url":"https://api.github.com/repos/mc-lovin/wire/comments{/number}","issue_comment_url":"https://api.github.com/repos/mc-lovin/wire/issues/comments{/number}","contents_url":"https://api.github.com/repos/mc-lovin/wire/contents/{+path}","compare_url":"https://api.github.com/repos/mc-lovin/wire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mc-lovin/wire/merges","archive_url":"https://api.github.com/repos/mc-lovin/wire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mc-lovin/wire/downloads","issues_url":"https://api.github.com/repos/mc-lovin/wire/issues{/number}","pulls_url":"https://api.github.com/repos/mc-lovin/wire/pulls{/number}","milestones_url":"https://api.github.com/repos/mc-lovin/wire/milestones{/number}","notifications_url":"https://api.github.com/repos/mc-lovin/wire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mc-lovin/wire/labels{/name}","releases_url":"https://api.github.com/repos/mc-lovin/wire/releases{/id}","deployments_url":"https://api.github.com/repos/mc-lovin/wire/deployments","created_at":"2018-02-10T21:37:21Z","updated_at":"2018-02-10T21:37:24Z","pushed_at":"2018-07-04T20:54:28Z","git_url":"git://github.com/mc-lovin/wire.git","ssh_url":"git@github.com:mc-lovin/wire.git","clone_url":"https://github.com/mc-lovin/wire.git","svn_url":"https://github.com/mc-lovin/wire","homepage":"","size":5753,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"b618257942cfcf6167bad59fcee02094cc333c4a","user":{"login":"square","id":82592,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNTky","avatar_url":"https://avatars0.githubusercontent.com/u/82592?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3NDE0Nw==","name":"wire","full_name":"square/wire","owner":{"login":"square","id":82592,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNTky","avatar_url":"https://avatars0.githubusercontent.com/u/82592?v=4","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":"2018-07-05T14:24:26Z","pushed_at":"2018-07-05T15:23:24Z","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":5653,"stargazers_count":2447,"watchers_count":2447,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":333,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":333,"open_issues":34,"watchers":2447,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/700"},"html":{"href":"https://github.com/square/wire/pull/700"},"issue":{"href":"https://api.github.com/repos/square/wire/issues/700"},"comments":{"href":"https://api.github.com/repos/square/wire/issues/700/comments"},"review_comments":{"href":"https://api.github.com/repos/square/wire/pulls/700/comments"},"review_comment":{"href":"https://api.github.com/repos/square/wire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/wire/pulls/700/commits"},"statuses":{"href":"https://api.github.com/repos/square/wire/statuses/47f13a69ed37bfb48997bf16b54515fd4b856913"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"swankjesse"}}