CloudStorageConfigResponse

data class CloudStorageConfigResponse(val avroConfig: AvroConfigResponse, val bucket: String, val filenamePrefix: String, val filenameSuffix: String, val maxBytes: String, val maxDuration: String, val state: String, val textConfig: TextConfigResponse)

Configuration for a Cloud Storage subscription.

Constructors

Link copied to clipboard
fun CloudStorageConfigResponse(avroConfig: AvroConfigResponse, bucket: String, filenamePrefix: String, filenameSuffix: String, maxBytes: String, maxDuration: String, state: String, textConfig: TextConfigResponse)

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.

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://". See the bucket naming requirements (https://cloud.google.com/storage/docs/buckets#naming).

Link copied to clipboard

User-provided prefix for Cloud Storage filename. See the object naming requirements.

Link copied to clipboard

User-provided suffix for Cloud Storage filename. See the object naming requirements.

Link copied to clipboard

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 max_bytes limit may be exceeded in cases where messages are larger than the limit.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

If set, message data will be written to Cloud Storage in text format.