SubscriptionCloudStorageConfig

data class SubscriptionCloudStorageConfig(val avroConfig: SubscriptionCloudStorageConfigAvroConfig? = null, val bucket: String, val filenamePrefix: String? = null, val filenameSuffix: String? = null, val maxBytes: Int? = null, val maxDuration: String? = null, val state: String? = null)

Constructors

Link copied to clipboard
constructor(avroConfig: SubscriptionCloudStorageConfigAvroConfig? = null, bucket: String, filenamePrefix: String? = null, filenameSuffix: String? = null, maxBytes: Int? = null, maxDuration: String? = null, state: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If set, message data will be written to Cloud Storage in Avro format. Structure is documented below.

Link copied to clipboard

User-provided name for the Cloud Storage bucket. The bucket must be created by the user. The bucket name must be without any prefix like "gs://".

Link copied to clipboard
val filenamePrefix: String? = null

User-provided prefix for Cloud Storage filename.

Link copied to clipboard
val filenameSuffix: String? = null

User-provided suffix for Cloud Storage filename. Must not end in "/".

Link copied to clipboard
val maxBytes: Int? = null

The maximum bytes that can be written to a Cloud Storage file before a new file is created. Min 1 KB, max 10 GiB. The maxBytes limit may be exceeded in cases where messages are larger than the limit.

Link copied to clipboard
val maxDuration: String? = null

The maximum duration that can elapse before a new Cloud Storage file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed the subscription's acknowledgement deadline. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

Link copied to clipboard
val state: String? = null

(Output) An output-only field that indicates whether or not the subscription can receive messages.