public abstract static class PubsubSchemaTransformReadConfiguration.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract PubsubSchemaTransformReadConfiguration |
build()
Builds a
PubsubSchemaTransformReadConfiguration instance. |
abstract PubsubSchemaTransformReadConfiguration.Builder |
setDataSchema(Schema value)
The expected schema of the Pub/Sub message.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setDeadLetterQueue(java.lang.String value)
The Pub/Sub topic path to write failures.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setFormat(java.lang.String value)
The expected format of the Pub/Sub message.
|
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.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setProtoClass(java.lang.String value)
Used by the ProtoPayloadSerializerProvider when serializing from a Pub/Sub message.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setSubscription(java.lang.String value)
The subscription from which to read Pub/Sub messages.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setThriftClass(java.lang.String value)
Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setThriftProtocolFactoryClass(java.lang.String value)
Used by the ThriftPayloadSerializerProvider when serializing from a Pub/Sub message.
|
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.
|
abstract PubsubSchemaTransformReadConfiguration.Builder |
setTopic(java.lang.String value)
The topic from which to read Pub/Sub messages.
|
public abstract PubsubSchemaTransformReadConfiguration.Builder setDataSchema(Schema value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setDeadLetterQueue(java.lang.String value)
See PubsubIO.PubsubTopic.fromPath(String)
for more details on the format of the
dead letter queue topic string.
public abstract PubsubSchemaTransformReadConfiguration.Builder setFormat(java.lang.String value)
Used to retrieve the PayloadSerializer
from PayloadSerializers
.
public abstract PubsubSchemaTransformReadConfiguration.Builder setProtoClass(java.lang.String value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setSubscription(java.lang.String value)
See PubsubIO.PubsubSubscription.fromPath(String)
for more details on the format of
the subscription string.
public abstract PubsubSchemaTransformReadConfiguration.Builder setThriftClass(java.lang.String value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setThriftProtocolFactoryClass(java.lang.String value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setTimestampAttribute(java.lang.String value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setIdAttribute(java.lang.String value)
public abstract PubsubSchemaTransformReadConfiguration.Builder setTopic(java.lang.String value)
See PubsubIO.PubsubTopic.fromPath(String)
for more details on the format of the
topic string.
public abstract PubsubSchemaTransformReadConfiguration build()
PubsubSchemaTransformReadConfiguration
instance.