[
https://issues.apache.org/jira/browse/BEAM-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16455575#comment-16455575
]
Eugene Kirpichov commented on BEAM-4179:
----------------------------------------
Here's what I got so far
https://gist.github.com/jkff/67ee0899cf277c350bb0c3ec14adaa37 - I couldn't get
rid of having to declare every interesting URN in this file.
> Go code should get standard URNs from proto annotations
> -------------------------------------------------------
>
> Key: BEAM-4179
> URL: https://issues.apache.org/jira/browse/BEAM-4179
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Eugene Kirpichov
> Assignee: Henning Rohde
> Priority: Minor
>
> https://github.com/apache/beam/pull/4672 makes standard URNs of various Beam
> entities be defined in annotations on some enums in the protos. Java and
> Python now don't hard-code the URNs, instead they get them from the proto
> annotations.
> However, Go still hard-codes the URNs. This JIRA is to make Go do something
> like what Java and Python do.
> (I tried coding this up, but couldn't come up with a good Go API for this -
> the Java and Python ways don't translate into idiomatic Go as far as I can
> tell; it's also complicated by the fact that Go protobuf compiler currently
> doesn't give easy access to enum descriptors:
> https://github.com/golang/protobuf/issues/364)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)