{"action":"created","comment":{"url":"https://api.github.com/repos/square/wire/pulls/comments/195904664","pull_request_review_id":129364966,"id":195904664,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTkwNDY2NA==","diff_hunk":"@@ -0,0 +1,182 @@\n+import com.squareup.wire.EnumAdapter\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 com.squareup.wire.WireEnum\n+import com.squareup.wire.internal.Internal.missingRequiredFields\n+import com.squareup.wire.kotlin.JavaPerson\n+import com.squareup.wire.kotlin.Person2\n+import com.squareup.wire.kotlin.UNKNOWN_FIELD\n+import com.squareup.wire.kotlin.decodeMessage\n+import com.squareup.wire.kotlin.getAlien\n+import okio.ByteString\n+\n+data class Person(\n+    val name: String,\n+    val id: Int,\n+    val email: String? = null,\n+    val phone: List<PhoneNumber>,\n+    val unknownFields: ByteString = ByteString.EMPTY\n+) {\n+  companion object {\n+    @JvmField val ADAPTER = Person_ADAPTER()\n+  }\n+\n+  data class PhoneNumber(\n+      val number: String,\n+      val phoneType: PhoneType,\n+      val unknownFields: ByteString = ByteString.EMPTY\n+  ) {\n+\n+    enum class PhoneType(private val value: Int) : WireEnum {\n+      MOBILE(0),\n+      HOME(4),\n+      WORK(2);\n+\n+      // Ideally we should be able to declare the above field as public and use the getter below.","path":"wire-kotlin-generator/src/main/java/com/squareup/wire/kotlin/main.kt","position":37,"original_position":37,"commit_id":"81ac83a8a776beee464b38ba8c9ac8e18a72fee5","original_commit_id":"81ac83a8a776beee464b38ba8c9ac8e18a72fee5","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":"comments?","created_at":"2018-06-16T14:48:02Z","updated_at":"2018-06-16T14:48:03Z","html_url":"https://github.com/square/wire/pull/698#discussion_r195904664","pull_request_url":"https://api.github.com/repos/square/wire/pulls/698","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/comments/195904664"},"html":{"href":"https://github.com/square/wire/pull/698#discussion_r195904664"},"pull_request":{"href":"https://api.github.com/repos/square/wire/pulls/698"}}},"pull_request":{"url":"https://api.github.com/repos/square/wire/pulls/698","id":195335095,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzM1MDk1","html_url":"https://github.com/square/wire/pull/698","diff_url":"https://github.com/square/wire/pull/698.diff","patch_url":"https://github.com/square/wire/pull/698.patch","issue_url":"https://api.github.com/repos/square/wire/issues/698","number":698,"state":"open","locked":false,"title":"Sample Kotlin generated Class","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":"`kotlin/main.kt` is the suggested class to be generated by the proto file\r\n```\r\nmessage Person {\r\n  // The customer's full name.\r\n  required string name = 1;\r\n  // The customer's ID number.\r\n  required int32 id = 2;\r\n  // Email address for the customer.\r\n  optional string email = 3;\r\n\r\n  enum PhoneType {\r\n    MOBILE = 0;\r\n    HOME = 1;\r\n    /** Could be phone or fax. */\r\n    WORK = 2;\r\n  }\r\n\r\n  message PhoneNumber {\r\n    // The customer's phone number.\r\n    required string number = 1;\r\n    // The type of phone stored here.\r\n    optional PhoneType type = 2 [default = HOME];\r\n  }\r\n\r\n  // A list of the customer's phone numbers.\r\n  repeated PhoneNumber phone = 4;\r\n}\r\n```\r\n\r\n`kotlin/MessageHelper.kt` is the message helper class \r\n\r\nRest of the code is for testing","created_at":"2018-06-16T14:44:51Z","updated_at":"2018-06-16T14:48:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4519e043434b74ada6f8d6ce2ed409fb922b29e1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/square/wire/pulls/698/commits","review_comments_url":"https://api.github.com/repos/square/wire/pulls/698/comments","review_comment_url":"https://api.github.com/repos/square/wire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/wire/issues/698/comments","statuses_url":"https://api.github.com/repos/square/wire/statuses/81ac83a8a776beee464b38ba8c9ac8e18a72fee5","head":{"label":"mc-lovin:singla/kotWire","ref":"singla/kotWire","sha":"81ac83a8a776beee464b38ba8c9ac8e18a72fee5","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-06-16T14:39:24Z","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":5652,"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-06-15T10:22:29Z","pushed_at":"2018-06-16T14:44:51Z","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":5641,"stargazers_count":2406,"watchers_count":2406,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":328,"mirror_url":null,"archived":false,"open_issues_count":32,"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":328,"open_issues":32,"watchers":2406,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/wire/pulls/698"},"html":{"href":"https://github.com/square/wire/pull/698"},"issue":{"href":"https://api.github.com/repos/square/wire/issues/698"},"comments":{"href":"https://api.github.com/repos/square/wire/issues/698/comments"},"review_comments":{"href":"https://api.github.com/repos/square/wire/pulls/698/comments"},"review_comment":{"href":"https://api.github.com/repos/square/wire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/wire/pulls/698/commits"},"statuses":{"href":"https://api.github.com/repos/square/wire/statuses/81ac83a8a776beee464b38ba8c9ac8e18a72fee5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mc-lovin"}}