Class PubsubWriteSchemaTransformConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.pubsub.PubsubWriteSchemaTransformConfiguration
-
@DefaultSchema(org.apache.beam.sdk.schemas.AutoValueSchema.class) public abstract class PubsubWriteSchemaTransformConfiguration 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 classPubsubWriteSchemaTransformConfiguration.Builderstatic classPubsubWriteSchemaTransformConfiguration.ErrorHandling
-
Constructor Summary
Constructors Constructor Description PubsubWriteSchemaTransformConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PubsubWriteSchemaTransformConfiguration.Builderbuilder()abstract java.util.List<java.lang.String>getAttributes()abstract java.lang.StringgetAttributesMap()abstract PubsubWriteSchemaTransformConfiguration.ErrorHandlinggetErrorHandling()abstract java.lang.StringgetFormat()abstract java.lang.StringgetIdAttribute()abstract java.lang.StringgetTimestampAttribute()abstract java.lang.StringgetTopic()
-
-
-
Method Detail
-
getFormat
@SchemaFieldDescription("The encoding format for the data stored in Pubsub. Valid options are: RAW,AVRO,JSON") public abstract java.lang.String getFormat()
-
getTopic
@SchemaFieldDescription("The name of the topic to write data to. Format: projects/${PROJECT}/topics/${TOPIC}") public abstract java.lang.String getTopic()
-
getAttributes
@SchemaFieldDescription("The set of fields to write as PubSub attributes instead of part of the payload.") @Nullable public abstract java.util.List<java.lang.String> getAttributes()
-
getAttributesMap
@SchemaFieldDescription("A map field to write as PubSub attributes instead of part of the payload.") @Nullable public abstract java.lang.String getAttributesMap()
-
getIdAttribute
@SchemaFieldDescription("If set, will set an attribute for each Cloud Pub/Sub message with the given name and a unique value. This attribute can then be used in a ReadFromPubSub PTransform to deduplicate messages.") @Nullable public abstract java.lang.String getIdAttribute()
-
getTimestampAttribute
@SchemaFieldDescription("If set, will set an attribute for each Cloud Pub/Sub message with the given name and the message\'s publish time as the value.") @Nullable public abstract java.lang.String getTimestampAttribute()
-
getErrorHandling
@SchemaFieldDescription("Specifies how to handle errors.") @Nullable public abstract PubsubWriteSchemaTransformConfiguration.ErrorHandling getErrorHandling()
-
builder
public static PubsubWriteSchemaTransformConfiguration.Builder builder()
-
-