lostluck commented on code in PR #35369:
URL: https://github.com/apache/beam/pull/35369#discussion_r2187656944


##########
sdks/go/pkg/beam/io/pubsubio/pubsubio.go:
##########
@@ -52,32 +52,48 @@ func init() {
 
 // ReadOptions represents options for reading from PubSub.
 type ReadOptions struct {
-       Subscription       string
+       Topic              string // Topic sets the topic to be read from. A 
new subscription will be generated for the job. Mutually exclusive with setting 
a Subscription.
+       Subscription       string // Subscription sets the name of an existing 
subscription to read from. Mutually exclusive with setting a subscription.

Review Comment:
   ```suggestion
        Subscription       string // Subscription sets the name of an existing 
subscription to read from. Mutually exclusive with setting a Topic.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to