Class PubsubSchemaTransformReadConfiguration.Builder
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubSchemaTransformReadConfiguration.Builder
-
- Enclosing class:
- PubsubSchemaTransformReadConfiguration
public abstract static class PubsubSchemaTransformReadConfiguration.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PubsubSchemaTransformReadConfigurationbuild()Builds aPubsubSchemaTransformReadConfigurationinstance.abstract PubsubSchemaTransformReadConfiguration.BuildersetDataSchema(org.apache.beam.sdk.schemas.Schema value)The expected schema of the Pub/Sub message.abstract PubsubSchemaTransformReadConfiguration.BuildersetDeadLetterQueue(java.lang.String value)The Pub/Sub topic path to write failures.abstract PubsubSchemaTransformReadConfiguration.BuildersetFormat(java.lang.String value)The expected format of the Pub/Sub message.abstract PubsubSchemaTransformReadConfiguration.BuildersetIdAttribute(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 PubsubSchemaTransformReadConfiguration.BuildersetProtoClass(java.lang.String value)Used by the ProtoPayloadSerializerProvider when serializing from a Pub/Sub message.abstract PubsubSchemaTransformReadConfiguration.BuildersetSubscription(java.lang.String value)The subscription from which to read Pub/Sub messages.abstract PubsubSchemaTransformReadConfiguration.BuildersetThriftClass(java.lang.String value)Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.abstract PubsubSchemaTransformReadConfiguration.BuildersetThriftProtocolFactoryClass(java.lang.String value)Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.abstract PubsubSchemaTransformReadConfiguration.BuildersetTimestampAttribute(java.lang.String value)When reading from Cloud Pub/Sub where record timestamps are provided as Pub/Sub message attributes, specifies the name of the attribute that contains the timestamp.abstract PubsubSchemaTransformReadConfiguration.BuildersetTopic(java.lang.String value)The topic from which to read Pub/Sub messages.
-
-
-
Method Detail
-
setDataSchema
public abstract PubsubSchemaTransformReadConfiguration.Builder setDataSchema(org.apache.beam.sdk.schemas.Schema value)
The expected schema of the Pub/Sub message.
-
setDeadLetterQueue
public abstract PubsubSchemaTransformReadConfiguration.Builder setDeadLetterQueue(java.lang.String value)
The Pub/Sub topic path to write failures.See
PubsubIO.PubsubTopic.fromPath(String)for more details on the format of the dead letter queue topic string.
-
setFormat
public abstract PubsubSchemaTransformReadConfiguration.Builder setFormat(java.lang.String value)
The expected format of the Pub/Sub message.Used to retrieve the
PayloadSerializerfromPayloadSerializers.
-
setProtoClass
public abstract PubsubSchemaTransformReadConfiguration.Builder setProtoClass(java.lang.String value)
Used by the ProtoPayloadSerializerProvider when serializing from a Pub/Sub message.
-
setSubscription
public abstract PubsubSchemaTransformReadConfiguration.Builder setSubscription(java.lang.String value)
The subscription from which to read Pub/Sub messages.See
PubsubIO.PubsubSubscription.fromPath(String)for more details on the format of the subscription string.
-
setThriftClass
public abstract PubsubSchemaTransformReadConfiguration.Builder setThriftClass(java.lang.String value)
Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.
-
setThriftProtocolFactoryClass
public abstract PubsubSchemaTransformReadConfiguration.Builder setThriftProtocolFactoryClass(java.lang.String value)
Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.
-
setTimestampAttribute
public abstract PubsubSchemaTransformReadConfiguration.Builder setTimestampAttribute(java.lang.String value)
When reading from Cloud Pub/Sub where record timestamps are provided as Pub/Sub message attributes, specifies the name of the attribute that contains the timestamp.
-
setIdAttribute
public abstract PubsubSchemaTransformReadConfiguration.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.
-
setTopic
public abstract PubsubSchemaTransformReadConfiguration.Builder setTopic(java.lang.String value)
The topic from which to read Pub/Sub messages.See
PubsubIO.PubsubTopic.fromPath(String)for more details on the format of the topic string.
-
build
public abstract PubsubSchemaTransformReadConfiguration build()
Builds aPubsubSchemaTransformReadConfigurationinstance.
-
-