Cloud Pub/Sub v1 API - Class CloudStorageConfig.Types.AvroConfig (3.16.0)

public sealed class CloudStorageConfig.Types.AvroConfig : IMessage<CloudStorageConfig.Types.AvroConfig>, IEquatable<CloudStorageConfig.Types.AvroConfig>, IDeepCloneable<CloudStorageConfig.Types.AvroConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Pub/Sub v1 API class CloudStorageConfig.Types.AvroConfig.

Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.

Inheritance

object > CloudStorageConfig.Types.AvroConfig

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

AvroConfig()

public AvroConfig()

AvroConfig(AvroConfig)

public AvroConfig(CloudStorageConfig.Types.AvroConfig other)
Parameter
Name Description
other CloudStorageConfigTypesAvroConfig

Properties

UseTopicSchema

public bool UseTopicSchema { get; set; }

Optional. When true, the output Cloud Storage file will be serialized using the topic schema, if it exists.

Property Value
Type Description
bool

WriteMetadata

public bool WriteMetadata { get; set; }

Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output. The subscription name, message_id, and publish_time fields are put in their own fields while all other message properties other than data (for example, an ordering_key, if present) are added as entries in the attributes map.

Property Value
Type Description
bool