Class PubsubSchemaTransformWriteConfiguration.Builder
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubSchemaTransformWriteConfiguration.Builder
-
- Enclosing class:
- PubsubSchemaTransformWriteConfiguration
public abstract static class PubsubSchemaTransformWriteConfiguration.Builder extends java.lang.Object
Builder forPubsubSchemaTransformWriteConfiguration
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PubsubSchemaTransformWriteConfiguration
build()
Builds aPubsubSchemaTransformWriteConfiguration
instance.abstract PubsubSchemaTransformWriteConfiguration.Builder
setFormat(java.lang.String value)
The expected format of the Pub/Sub message.abstract PubsubSchemaTransformWriteConfiguration.Builder
setIdAttribute(java.lang.String value)
When reading from 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 PubsubSchemaTransformWriteConfiguration.Builder
setTimestampAttribute(java.lang.String value)
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 PubsubSchemaTransformWriteConfiguration.Builder
setTopic(java.lang.String value)
The topic to which to write Pub/Sub messages.
-
-
-
Method Detail
-
setTopic
public abstract PubsubSchemaTransformWriteConfiguration.Builder setTopic(java.lang.String value)
The topic to which to write Pub/Sub messages.See
PubsubIO.PubsubTopic.fromPath(String)
for more details on the format of the topic string.
-
setFormat
public abstract PubsubSchemaTransformWriteConfiguration.Builder setFormat(java.lang.String value)
The expected format of the Pub/Sub message.Used to retrieve the
PayloadSerializer
fromPayloadSerializers
.
-
setTimestampAttribute
public abstract PubsubSchemaTransformWriteConfiguration.Builder setTimestampAttribute(java.lang.String value)
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.
-
setIdAttribute
public abstract PubsubSchemaTransformWriteConfiguration.Builder setIdAttribute(java.lang.String value)
When reading from Cloud Pub/Sub where unique record identifiers are provided as Pub/Sub message attributes, specifies the name of the attribute containing the unique identifier.
-
build
public abstract PubsubSchemaTransformWriteConfiguration build()
Builds aPubsubSchemaTransformWriteConfiguration
instance.
-
-