Class PubsubWriteSchemaTransformConfiguration


  • @DefaultSchema(org.apache.beam.sdk.schemas.AutoValueSchema.class)
    public abstract class PubsubWriteSchemaTransformConfiguration
    extends java.lang.Object
    Configuration 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.

    • Constructor Detail

      • PubsubWriteSchemaTransformConfiguration

        public PubsubWriteSchemaTransformConfiguration()
    • 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()