@DefaultSchema(value=AutoValueSchema.class) public abstract class PubsubWriteSchemaTransformConfiguration extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
PubsubWriteSchemaTransformConfiguration.Builder
Builder for
PubsubWriteSchemaTransformConfiguration . |
static class |
PubsubWriteSchemaTransformConfiguration.SourceConfiguration |
static class |
PubsubWriteSchemaTransformConfiguration.TargetConfiguration |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TIMESTAMP_ATTRIBUTE |
Constructor and Description |
---|
PubsubWriteSchemaTransformConfiguration() |
Modifier and Type | Method and Description |
---|---|
static PubsubWriteSchemaTransformConfiguration.Builder |
builder() |
abstract java.lang.String |
getFormat()
The expected format of the Pub/Sub message.
|
abstract java.lang.String |
getIdAttribute()
When writing to 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 PubsubWriteSchemaTransformConfiguration.SourceConfiguration |
getSource()
|
abstract PubsubWriteSchemaTransformConfiguration.TargetConfiguration |
getTarget()
Configuration details of the target
PubsubMessage . |
abstract java.lang.String |
getTopic()
The topic to which to write Pub/Sub messages.
|
static PubsubWriteSchemaTransformConfiguration.SourceConfiguration.Builder |
sourceConfigurationBuilder() |
static PubsubWriteSchemaTransformConfiguration.TargetConfiguration.Builder |
targetConfigurationBuilder() |
public static final java.lang.String DEFAULT_TIMESTAMP_ATTRIBUTE
public PubsubWriteSchemaTransformConfiguration()
public static PubsubWriteSchemaTransformConfiguration.Builder builder()
public static PubsubWriteSchemaTransformConfiguration.TargetConfiguration.Builder targetConfigurationBuilder()
public static PubsubWriteSchemaTransformConfiguration.SourceConfiguration.Builder sourceConfigurationBuilder()
@Nullable public abstract PubsubWriteSchemaTransformConfiguration.SourceConfiguration getSource()
public abstract PubsubWriteSchemaTransformConfiguration.TargetConfiguration getTarget()
PubsubMessage
.public abstract java.lang.String getTopic()
See PubsubIO.PubsubTopic.fromPath(String)
for more details on the format of the
topic string.
@Nullable public abstract java.lang.String getFormat()
Used to retrieve the PayloadSerializer
from
PayloadSerializers
. See list of supported
values by invoking Providers.loadProviders(Class)
.
Providers.loadProviders(PayloadSerializer.class).keySet()
@Nullable public abstract java.lang.String getIdAttribute()