{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/comments/229040425","pull_request_review_id":169444047,"id":229040425,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTA0MDQyNQ==","diff_hunk":"@@ -420,3 +412,13 @@ func (g *generator) handleOut(meth *descriptor.MethodDescriptorProto, valSet Sam\n \t}\n \treturn nil\n }\n+\n+func prependLines(b *bytes.Buffer, prefix string) {\n+\trep := bytes.Replace(b.Bytes(), []byte{'\\n'}, []byte(\"\\n\"+prefix), -1)\n+\tb.Reset()\n+\tb.WriteString(prefix)\n+\tb.Write(rep)\n+\n+\t// We added the prefix to all newlines, including the ending one, so we overwrote the prefix once.","path":"cmd/gen-go-sample/main.go","position":61,"original_position":61,"commit_id":"a3e9e43506a1b5ff607cda11115b299175f4cd00","original_commit_id":"a3e9e43506a1b5ff607cda11115b299175f4cd00","user":{"login":"vchudnov-g","id":5422149,"node_id":"MDQ6VXNlcjU0MjIxNDk=","avatar_url":"https://avatars3.githubusercontent.com/u/5422149?v=4","gravatar_id":"","url":"https://api.github.com/users/vchudnov-g","html_url":"https://github.com/vchudnov-g","followers_url":"https://api.github.com/users/vchudnov-g/followers","following_url":"https://api.github.com/users/vchudnov-g/following{/other_user}","gists_url":"https://api.github.com/users/vchudnov-g/gists{/gist_id}","starred_url":"https://api.github.com/users/vchudnov-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchudnov-g/subscriptions","organizations_url":"https://api.github.com/users/vchudnov-g/orgs","repos_url":"https://api.github.com/users/vchudnov-g/repos","events_url":"https://api.github.com/users/vchudnov-g/events{/privacy}","received_events_url":"https://api.github.com/users/vchudnov-g/received_events","type":"User","site_admin":false},"body":"I think you mean `s/we overwrite/we'll exclude it/`","created_at":"2018-10-29T18:09:12Z","updated_at":"2018-10-29T18:10:46Z","html_url":"https://github.com/googleapis/gapic-generator-go/pull/43#discussion_r229040425","pull_request_url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/comments/229040425"},"html":{"href":"https://github.com/googleapis/gapic-generator-go/pull/43#discussion_r229040425"},"pull_request":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43","id":225513425,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTEzNDI1","html_url":"https://github.com/googleapis/gapic-generator-go/pull/43","diff_url":"https://github.com/googleapis/gapic-generator-go/pull/43.diff","patch_url":"https://github.com/googleapis/gapic-generator-go/pull/43.patch","issue_url":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/43","number":43,"state":"open","locked":false,"title":"sample: indent request initialization","user":{"login":"pongad","id":1617025,"node_id":"MDQ6VXNlcjE2MTcwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1617025?v=4","gravatar_id":"","url":"https://api.github.com/users/pongad","html_url":"https://github.com/pongad","followers_url":"https://api.github.com/users/pongad/followers","following_url":"https://api.github.com/users/pongad/following{/other_user}","gists_url":"https://api.github.com/users/pongad/gists{/gist_id}","starred_url":"https://api.github.com/users/pongad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pongad/subscriptions","organizations_url":"https://api.github.com/users/pongad/orgs","repos_url":"https://api.github.com/users/pongad/repos","events_url":"https://api.github.com/users/pongad/events{/privacy}","received_events_url":"https://api.github.com/users/pongad/received_events","type":"User","site_admin":false},"body":"Fixes #41.","created_at":"2018-10-24T18:56:13Z","updated_at":"2018-10-29T18:10:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c30f65d1187450890c583200f69bcfd9b003451","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hzyi-google","id":33737743,"node_id":"MDQ6VXNlcjMzNzM3NzQz","avatar_url":"https://avatars0.githubusercontent.com/u/33737743?v=4","gravatar_id":"","url":"https://api.github.com/users/hzyi-google","html_url":"https://github.com/hzyi-google","followers_url":"https://api.github.com/users/hzyi-google/followers","following_url":"https://api.github.com/users/hzyi-google/following{/other_user}","gists_url":"https://api.github.com/users/hzyi-google/gists{/gist_id}","starred_url":"https://api.github.com/users/hzyi-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzyi-google/subscriptions","organizations_url":"https://api.github.com/users/hzyi-google/orgs","repos_url":"https://api.github.com/users/hzyi-google/repos","events_url":"https://api.github.com/users/hzyi-google/events{/privacy}","received_events_url":"https://api.github.com/users/hzyi-google/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43/commits","review_comments_url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43/comments","review_comment_url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/43/comments","statuses_url":"https://api.github.com/repos/googleapis/gapic-generator-go/statuses/a3e9e43506a1b5ff607cda11115b299175f4cd00","head":{"label":"pongad:indent","ref":"indent","sha":"a3e9e43506a1b5ff607cda11115b299175f4cd00","user":{"login":"pongad","id":1617025,"node_id":"MDQ6VXNlcjE2MTcwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1617025?v=4","gravatar_id":"","url":"https://api.github.com/users/pongad","html_url":"https://github.com/pongad","followers_url":"https://api.github.com/users/pongad/followers","following_url":"https://api.github.com/users/pongad/following{/other_user}","gists_url":"https://api.github.com/users/pongad/gists{/gist_id}","starred_url":"https://api.github.com/users/pongad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pongad/subscriptions","organizations_url":"https://api.github.com/users/pongad/orgs","repos_url":"https://api.github.com/users/pongad/repos","events_url":"https://api.github.com/users/pongad/events{/privacy}","received_events_url":"https://api.github.com/users/pongad/received_events","type":"User","site_admin":false},"repo":{"id":149223378,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkyMjMzNzg=","name":"gapic-generator-go","full_name":"pongad/gapic-generator-go","private":false,"owner":{"login":"pongad","id":1617025,"node_id":"MDQ6VXNlcjE2MTcwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1617025?v=4","gravatar_id":"","url":"https://api.github.com/users/pongad","html_url":"https://github.com/pongad","followers_url":"https://api.github.com/users/pongad/followers","following_url":"https://api.github.com/users/pongad/following{/other_user}","gists_url":"https://api.github.com/users/pongad/gists{/gist_id}","starred_url":"https://api.github.com/users/pongad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pongad/subscriptions","organizations_url":"https://api.github.com/users/pongad/orgs","repos_url":"https://api.github.com/users/pongad/repos","events_url":"https://api.github.com/users/pongad/events{/privacy}","received_events_url":"https://api.github.com/users/pongad/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pongad/gapic-generator-go","description":null,"fork":true,"url":"https://api.github.com/repos/pongad/gapic-generator-go","forks_url":"https://api.github.com/repos/pongad/gapic-generator-go/forks","keys_url":"https://api.github.com/repos/pongad/gapic-generator-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pongad/gapic-generator-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pongad/gapic-generator-go/teams","hooks_url":"https://api.github.com/repos/pongad/gapic-generator-go/hooks","issue_events_url":"https://api.github.com/repos/pongad/gapic-generator-go/issues/events{/number}","events_url":"https://api.github.com/repos/pongad/gapic-generator-go/events","assignees_url":"https://api.github.com/repos/pongad/gapic-generator-go/assignees{/user}","branches_url":"https://api.github.com/repos/pongad/gapic-generator-go/branches{/branch}","tags_url":"https://api.github.com/repos/pongad/gapic-generator-go/tags","blobs_url":"https://api.github.com/repos/pongad/gapic-generator-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pongad/gapic-generator-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pongad/gapic-generator-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/pongad/gapic-generator-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pongad/gapic-generator-go/statuses/{sha}","languages_url":"https://api.github.com/repos/pongad/gapic-generator-go/languages","stargazers_url":"https://api.github.com/repos/pongad/gapic-generator-go/stargazers","contributors_url":"https://api.github.com/repos/pongad/gapic-generator-go/contributors","subscribers_url":"https://api.github.com/repos/pongad/gapic-generator-go/subscribers","subscription_url":"https://api.github.com/repos/pongad/gapic-generator-go/subscription","commits_url":"https://api.github.com/repos/pongad/gapic-generator-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/pongad/gapic-generator-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/pongad/gapic-generator-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/pongad/gapic-generator-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/pongad/gapic-generator-go/contents/{+path}","compare_url":"https://api.github.com/repos/pongad/gapic-generator-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pongad/gapic-generator-go/merges","archive_url":"https://api.github.com/repos/pongad/gapic-generator-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pongad/gapic-generator-go/downloads","issues_url":"https://api.github.com/repos/pongad/gapic-generator-go/issues{/number}","pulls_url":"https://api.github.com/repos/pongad/gapic-generator-go/pulls{/number}","milestones_url":"https://api.github.com/repos/pongad/gapic-generator-go/milestones{/number}","notifications_url":"https://api.github.com/repos/pongad/gapic-generator-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pongad/gapic-generator-go/labels{/name}","releases_url":"https://api.github.com/repos/pongad/gapic-generator-go/releases{/id}","deployments_url":"https://api.github.com/repos/pongad/gapic-generator-go/deployments","created_at":"2018-09-18T03:27:25Z","updated_at":"2018-10-23T01:43:28Z","pushed_at":"2018-10-24T18:55:53Z","git_url":"git://github.com/pongad/gapic-generator-go.git","ssh_url":"git@github.com:pongad/gapic-generator-go.git","clone_url":"https://github.com/pongad/gapic-generator-go.git","svn_url":"https://github.com/pongad/gapic-generator-go","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"googleapis:master","ref":"master","sha":"d2df6dd261538f8a4bf03e67ceae96b08111c32a","user":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":149170309,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNzAzMDk=","name":"gapic-generator-go","full_name":"googleapis/gapic-generator-go","private":false,"owner":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/googleapis/gapic-generator-go","description":"Generate Go API client libraries from Protocol Buffers.","fork":false,"url":"https://api.github.com/repos/googleapis/gapic-generator-go","forks_url":"https://api.github.com/repos/googleapis/gapic-generator-go/forks","keys_url":"https://api.github.com/repos/googleapis/gapic-generator-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/gapic-generator-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/gapic-generator-go/teams","hooks_url":"https://api.github.com/repos/googleapis/gapic-generator-go/hooks","issue_events_url":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/gapic-generator-go/events","assignees_url":"https://api.github.com/repos/googleapis/gapic-generator-go/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/gapic-generator-go/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/gapic-generator-go/tags","blobs_url":"https://api.github.com/repos/googleapis/gapic-generator-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/gapic-generator-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/gapic-generator-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/gapic-generator-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/gapic-generator-go/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/gapic-generator-go/languages","stargazers_url":"https://api.github.com/repos/googleapis/gapic-generator-go/stargazers","contributors_url":"https://api.github.com/repos/googleapis/gapic-generator-go/contributors","subscribers_url":"https://api.github.com/repos/googleapis/gapic-generator-go/subscribers","subscription_url":"https://api.github.com/repos/googleapis/gapic-generator-go/subscription","commits_url":"https://api.github.com/repos/googleapis/gapic-generator-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/gapic-generator-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/gapic-generator-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/gapic-generator-go/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/gapic-generator-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/gapic-generator-go/merges","archive_url":"https://api.github.com/repos/googleapis/gapic-generator-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/gapic-generator-go/downloads","issues_url":"https://api.github.com/repos/googleapis/gapic-generator-go/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/gapic-generator-go/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/gapic-generator-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/gapic-generator-go/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/gapic-generator-go/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/gapic-generator-go/deployments","created_at":"2018-09-17T18:31:01Z","updated_at":"2018-10-25T23:28:25Z","pushed_at":"2018-10-25T23:28:26Z","git_url":"git://github.com/googleapis/gapic-generator-go.git","ssh_url":"git@github.com:googleapis/gapic-generator-go.git","clone_url":"https://github.com/googleapis/gapic-generator-go.git","svn_url":"https://github.com/googleapis/gapic-generator-go","homepage":"","size":272,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":2,"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":5,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43"},"html":{"href":"https://github.com/googleapis/gapic-generator-go/pull/43"},"issue":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/43"},"comments":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/gapic-generator-go/statuses/a3e9e43506a1b5ff607cda11115b299175f4cd00"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vchudnov-g"}}