Class PubsubSchemaTransformWriteConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubSchemaTransformWriteConfiguration
-
@Experimental @DefaultSchema(org.apache.beam.sdk.schemas.AutoValueSchema.class) public abstract class PubsubSchemaTransformWriteConfiguration extends java.lang.ObjectConfiguration for writing to Pub/Sub.Internal only: This class is actively being worked on, and it will likely change. We provide no backwards compatibility guarantees, and it should not be implemented outside the Beam repository.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPubsubSchemaTransformWriteConfiguration.BuilderBuilder forPubsubSchemaTransformWriteConfiguration.
-
Constructor Summary
Constructors Constructor Description PubsubSchemaTransformWriteConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.StringgetFormat()The expected format of the Pub/Sub message.abstract java.lang.StringgetIdAttribute()When writing to Cloud Pub/Sub where unique record identifiers are provided as Pub/Sub message attributes, specifies the name of the attribute containing the unique identifier.abstract java.lang.StringgetTimestampAttribute()When writing to Cloud Pub/Sub where record timestamps are configured as Pub/Sub message attributes, specifies the name of the attribute that contains the timestamp.abstract java.lang.StringgetTopic()The topic to which to write Pub/Sub messages.
-
-
-
Method Detail
-
getTopic
public abstract java.lang.String getTopic()
The topic to which to write Pub/Sub messages.See
PubsubIO.PubsubTopic.fromPath(String)for more details on the format of the topic string.
-
getFormat
@Nullable public abstract java.lang.String getFormat()
The expected format of the Pub/Sub message.Used to retrieve the
PayloadSerializerfromPayloadSerializers.
-
getTimestampAttribute
@Nullable public abstract java.lang.String getTimestampAttribute()
When writing to Cloud Pub/Sub where record timestamps are configured as Pub/Sub message attributes, specifies the name of the attribute that contains the timestamp.
-
getIdAttribute
@Nullable public abstract java.lang.String getIdAttribute()
When writing to Cloud Pub/Sub where unique record identifiers are provided as Pub/Sub message attributes, specifies the name of the attribute containing the unique identifier.
-
-