Class SubscriptionBigqueryConfig


  • public final class SubscriptionBigqueryConfig
    extends java.lang.Object
    • Method Detail

      • dropUnknownFields

        public java.util.Optional<java.lang.Boolean> dropUnknownFields()
        Returns:
        When true and useTopicSchema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription's backlog.
      • table

        public java.lang.String table()
        Returns:
        The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
      • useTopicSchema

        public java.util.Optional<java.lang.Boolean> useTopicSchema()
        Returns:
        When true, use the topic's schema as the columns to write to in BigQuery, if it exists.
      • writeMetadata

        public java.util.Optional<java.lang.Boolean> writeMetadata()
        Returns:
        When true, write the subscription name, messageId, publishTime, attributes, and orderingKey to additional columns in the table. The subscription name, messageId, and publishTime fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.