[
https://issues.apache.org/jira/browse/BEAM-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17145429#comment-17145429
]
Beam JIRA Bot commented on BEAM-2451:
-------------------------------------
This issue was marked "stale-P2" and has not received a public comment in 14
days. It is now automatically moved to P3. If you are still affected by it, you
can comment and move it back to P2.
> writeProtos() should allow a user to specify message attributes
> ---------------------------------------------------------------
>
> Key: BEAM-2451
> URL: https://issues.apache.org/jira/browse/BEAM-2451
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Affects Versions: 2.0.0
> Reporter: Keith Berkoben
> Priority: P3
>
> when using PubsubIO.writeProtos(protoMessage), the PubsubMessage is created
> in the background and there is no way to specify the attributes of the
> message. This makes the method useless if a user wants to then use the
> withTimestampAttribute() or withIdAttribute() of the writer with anything
> other than the default timestamp or ID (a common use case).
> As a workaround the user can manually create the PubsubMessage, but this
> basically requires duplication of the writeProtos() logic, which is brittle
> in the case that the encoding logic changes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)