func processPubSubMsgFn(ctx context.Context, in *pubsub.PubsubMessage) v1.someProto {
someProto := &v1.someProto{}
if err := proto.Unmarshal((in.Data), someProto); err != nil {
log.Fatalln("Failed to parse address book:", err)
}
return *someProto
}
Causes: bad return type caused by: encoding struct v1.someProto type has unexported field: state
When trying to run the pipeline, In java I would set the coder for the message type, not sure how to do this in the Go Version of Apache Beam