Skip to content

Commit

Permalink
fix: Make PubsubLiteIO not final and have protected constructor (#715)
Browse files Browse the repository at this point in the history
This will enable creating a POC for aliasing it in the beam repo.
  • Loading branch information
dpcollins-google committed Jun 17, 2021
1 parent 34a9811 commit a6a7fc2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.cloud.pubsublite.proto.PubSubMessage;
import com.google.cloud.pubsublite.proto.SequencedMessage;
import org.apache.beam.sdk.annotations.Experimental;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.values.PBegin;
Expand All @@ -31,9 +30,9 @@
* <p>For the differences between this and Google Pub/Sub, please refer to the <a
* href="https://cloud.google.com/pubsub/docs/choosing-pubsub-or-lite">product documentation</a>.
*/
@Experimental
public final class PubsubLiteIO {
private PubsubLiteIO() {}
public class PubsubLiteIO {
// Not final for aliasing in apache beam repo.
protected PubsubLiteIO() {}

/**
* Read messages from Pub/Sub Lite. These messages may contain duplicates if the publisher
Expand Down

0 comments on commit a6a7fc2

Please sign in to comment.