{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/743","repository_url":"https://api.github.com/repos/mapstruct/mapstruct","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/743/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/743/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/743/events","html_url":"https://github.com/mapstruct/mapstruct/issues/743","id":132119421,"node_id":"MDU6SXNzdWUxMzIxMTk0MjE=","number":743,"title":"Protobuf3-friendly mappers","user":{"login":"jvmlet","id":6664858,"node_id":"MDQ6VXNlcjY2NjQ4NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6664858?v=4","gravatar_id":"","url":"https://api.github.com/users/jvmlet","html_url":"https://github.com/jvmlet","followers_url":"https://api.github.com/users/jvmlet/followers","following_url":"https://api.github.com/users/jvmlet/following{/other_user}","gists_url":"https://api.github.com/users/jvmlet/gists{/gist_id}","starred_url":"https://api.github.com/users/jvmlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvmlet/subscriptions","organizations_url":"https://api.github.com/users/jvmlet/orgs","repos_url":"https://api.github.com/users/jvmlet/repos","events_url":"https://api.github.com/users/jvmlet/events{/privacy}","received_events_url":"https://api.github.com/users/jvmlet/received_events","type":"User","site_admin":false},"labels":[{"id":5877852,"node_id":"MDU6TGFiZWw1ODc3ODUy","url":"https://api.github.com/repos/mapstruct/mapstruct/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-02-08T11:36:32Z","updated_at":"2018-10-26T20:09:57Z","closed_at":null,"author_association":"NONE","body":"Hello\nI'm trying to map POJO to [protobuf 3](https://developers.google.com/protocol-buffers/docs/javatutorial) generated classes. As you may know, protobuf uses Builder pattern to instantiate structures and all inner fields as well as iterable internal fields. It also doesn't allow to set `null` values to any field.\nHaving said this, I would like to ask you to support the following  features :\n- Factory methods (except factory of root object if any) might be passed parent (field container) `target` object the same way you are passing it to @After/Before Mapping methods (using `@MappingTarget`).\n- Adding objects to iterable target field might be overridden in some way (there is no `setSomeList` in protobuf message, only `addSome(Object,[index])`)\n- `null-evaluated` source fields might be skipped  for mapping to target object. \n\nRegards,\nAlexander\n"},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/433528935","html_url":"https://github.com/mapstruct/mapstruct/issues/743#issuecomment-433528935","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/743","id":433528935,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzUyODkzNQ==","user":{"login":"vordimous","id":3012311,"node_id":"MDQ6VXNlcjMwMTIzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/3012311?v=4","gravatar_id":"","url":"https://api.github.com/users/vordimous","html_url":"https://github.com/vordimous","followers_url":"https://api.github.com/users/vordimous/followers","following_url":"https://api.github.com/users/vordimous/following{/other_user}","gists_url":"https://api.github.com/users/vordimous/gists{/gist_id}","starred_url":"https://api.github.com/users/vordimous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vordimous/subscriptions","organizations_url":"https://api.github.com/users/vordimous/orgs","repos_url":"https://api.github.com/users/vordimous/repos","events_url":"https://api.github.com/users/vordimous/events{/privacy}","received_events_url":"https://api.github.com/users/vordimous/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T20:09:57Z","updated_at":"2018-10-26T20:09:57Z","author_association":"NONE","body":"Cross posted: https://github.com/mapstruct/mapstruct-examples/issues/14#issuecomment-433528487\r\n\r\nBut I am trying to use mapstruct with protobuf3 and Gradle. any help would be appreciated"}}
{"actor":{"display_login":"vordimous"}}