@DefaultSchema(value=AutoValueSchema.class) public abstract static class PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration.Builder |
Constructor and Description |
---|
PubsubLiteWriteSchemaTransformConfiguration() |
Modifier and Type | Method and Description |
---|---|
static PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration.Builder |
builder() |
abstract @Nullable java.lang.String |
getAttributeId() |
abstract @Nullable java.util.List<java.lang.String> |
getAttributes() |
abstract @Nullable ErrorHandling |
getErrorHandling() |
abstract @Nullable java.lang.String |
getFileDescriptorPath() |
abstract java.lang.String |
getFormat() |
abstract java.lang.String |
getLocation() |
abstract @Nullable java.lang.String |
getMessageName() |
abstract java.lang.String |
getProject() |
abstract @Nullable java.lang.String |
getSchema() |
abstract java.lang.String |
getTopicName() |
void |
validate() |
public PubsubLiteWriteSchemaTransformConfiguration()
public void validate()
@SchemaFieldDescription(value="The GCP project where the Pubsub Lite reservation resides. This can be a project number of a project ID.") public abstract java.lang.String getProject()
@SchemaFieldDescription(value="The region or zone where the Pubsub Lite reservation resides.") public abstract java.lang.String getLocation()
@SchemaFieldDescription(value="The name of the topic to publish data into. This will be concatenated with the project and location parameters to build a full topic path.") public abstract java.lang.String getTopicName()
@SchemaFieldDescription(value="The encoding format for the data stored in Pubsub Lite. Valid options are: RAW,JSON,AVRO,PROTO") public abstract java.lang.String getFormat()
@SchemaFieldDescription(value="This option specifies whether and where to output unwritable rows.") public abstract @Nullable ErrorHandling getErrorHandling()
@SchemaFieldDescription(value="List of attribute keys whose values will be pulled out as Pubsub Lite message attributes. For example, if the format is `JSON` and attributes is `[\"a\", \"b\"]` then elements of the form `Row(any_field=..., a=..., b=...)` will result in Pubsub Lite messages whose payload has the contents of any_field and whose attribute will be populated with the values of `a` and `b`.") public abstract @Nullable java.util.List<java.lang.String> getAttributes()
@SchemaFieldDescription(value="If set, will set an attribute for each Pubsub Lite message with the given name and a unique value. This attribute can then be used in a ReadFromPubSubLite PTransform to deduplicate messages.") public abstract @Nullable java.lang.String getAttributeId()
@SchemaFieldDescription(value="The path to the Protocol Buffer File Descriptor Set file. This file is used for schema definition and message serialization.") public abstract @Nullable java.lang.String getFileDescriptorPath()
@SchemaFieldDescription(value="The name of the Protocol Buffer message to be used for schema extraction and data conversion.") public abstract @Nullable java.lang.String getMessageName()
public abstract @Nullable java.lang.String getSchema()
public static PubsubLiteWriteSchemaTransformProvider.PubsubLiteWriteSchemaTransformConfiguration.Builder builder()