This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
google.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage.State
Output only. An output-only field that
indicates the state of the Cloud Storage
ingestion source.
bucket
:noindex:
str
Optional. Cloud Storage bucket. The bucket name must be
without any prefix like "gs://". See the [bucket naming
requirements]
(https://cloud.google.com/storage/docs/buckets#naming).
text_format
:noindex:
google.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage.TextFormat
Optional. Data from Cloud Storage will be
interpreted as text.
This field is a member of oneof_ input_format.
avro_format
:noindex:
google.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage.AvroFormat
Optional. Data from Cloud Storage will be
interpreted in Avro format.
This field is a member of oneof_ input_format.
pubsub_avro_format
:noindex:
google.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat
Optional. It will be assumed data from Cloud Storage was
written via `Cloud Storage
subscriptions
minimum_object_create_time
:noindex:
google.protobuf.timestamp_pb2.Timestamp
Optional. Only objects with a larger or equal
creation timestamp will be ingested.
match_glob
:noindex:
str
Optional. Glob pattern used to match objects that will be
ingested. If unset, all objects will be ingested. See the
`supported
patterns
Configuration for reading Cloud Storage data written via Cloud
Storage
subscriptions <https://cloud.google.com/pubsub/docs/cloudstorage>__.
The data and attributes fields of the originally exported Pub/Sub
message will be restored when publishing.
State
State(value)
Possible states for ingestion from Cloud Storage.
- storage.objects.list: to list the objects in a bucket.
- storage.objects.get: to read the objects in a bucket.
- storage.buckets.get: to verify the bucket exists.
PUBLISH_PERMISSION_DENIED (3):
Permission denied encountered while publishing to the topic.
This can happen if the Pub/Sub SA has not been granted the
`appropriate publish
permissions <https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher>`__
BUCKET_NOT_FOUND (4):
The provided Cloud Storage bucket doesn't
exist.
TOO_MANY_OBJECTS (5):
The Cloud Storage bucket has too many
objects, ingestion will be paused.
Configuration for reading Cloud Storage data in text format. Each
line of text as specified by the delimiter will be set to the
data field of a Pub/Sub message.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class CloudStorage (2.31.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.0 (latest)](/python/docs/reference/pubsub/latest/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.30.0](/python/docs/reference/pubsub/2.30.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.29.1](/python/docs/reference/pubsub/2.29.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.28.0](/python/docs/reference/pubsub/2.28.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.27.3](/python/docs/reference/pubsub/2.27.3/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.26.1](/python/docs/reference/pubsub/2.26.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.25.2](/python/docs/reference/pubsub/2.25.2/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.23.1](/python/docs/reference/pubsub/2.23.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.22.0](/python/docs/reference/pubsub/2.22.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.21.5](/python/docs/reference/pubsub/2.21.5/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.20.3](/python/docs/reference/pubsub/2.20.3/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.19.8](/python/docs/reference/pubsub/2.19.8/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.18.4](/python/docs/reference/pubsub/2.18.4/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.17.1](/python/docs/reference/pubsub/2.17.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.16.1](/python/docs/reference/pubsub/2.16.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.15.2](/python/docs/reference/pubsub/2.15.2/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.14.1](/python/docs/reference/pubsub/2.14.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.13.12](/python/docs/reference/pubsub/2.13.12/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.12.1](/python/docs/reference/pubsub/2.12.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.11.1](/python/docs/reference/pubsub/2.11.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.10.0](/python/docs/reference/pubsub/2.10.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.9.0](/python/docs/reference/pubsub/2.9.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.8.0](/python/docs/reference/pubsub/2.8.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.7.1](/python/docs/reference/pubsub/2.7.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.6.1](/python/docs/reference/pubsub/2.6.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.5.0](/python/docs/reference/pubsub/2.5.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.4.2](/python/docs/reference/pubsub/2.4.2/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.3.0](/python/docs/reference/pubsub/2.3.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.2.0](/python/docs/reference/pubsub/2.2.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.1.0](/python/docs/reference/pubsub/2.1.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [2.0.0](/python/docs/reference/pubsub/2.0.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.7.2](/python/docs/reference/pubsub/1.7.2/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.6.1](/python/docs/reference/pubsub/1.6.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.5.0](/python/docs/reference/pubsub/1.5.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.4.3](/python/docs/reference/pubsub/1.4.3/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.3.1](/python/docs/reference/pubsub/1.3.1/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.2.0](/python/docs/reference/pubsub/1.2.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.1.0](/python/docs/reference/pubsub/1.1.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [1.0.2](/python/docs/reference/pubsub/1.0.2/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [0.45.0](/python/docs/reference/pubsub/0.45.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [0.44.0](/python/docs/reference/pubsub/0.44.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage)\n- [0.43.0](/python/docs/reference/pubsub/0.43.0/google.cloud.pubsub_v1.types.IngestionDataSourceSettings.CloudStorage) \n\n CloudStorage(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nIngestion settings for Cloud Storage.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### AvroFormat\n\n AvroFormat(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nConfiguration for reading Cloud Storage data in Avro binary format.\nThe bytes of each object will be set to the `data` field of a\nPub/Sub message.\n\n### PubSubAvroFormat\n\n PubSubAvroFormat(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nConfiguration for reading Cloud Storage data written via `Cloud\nStorage\nsubscriptions \u003chttps://cloud.google.com/pubsub/docs/cloudstorage\u003e`__.\nThe data and attributes fields of the originally exported Pub/Sub\nmessage will be restored when publishing.\n\n### State\n\n State(value)\n\nPossible states for ingestion from Cloud Storage. \n\n - storage.objects.list: to list the objects in a bucket.\n - storage.objects.get: to read the objects in a bucket.\n - storage.buckets.get: to verify the bucket exists.\n PUBLISH_PERMISSION_DENIED (3):\n Permission denied encountered while publishing to the topic.\n This can happen if the Pub/Sub SA has not been granted the\n `appropriate publish\n permissions \u003chttps://cloud.google.com/pubsub/docs/access-control#pubsub.publisher\u003e`__\n BUCKET_NOT_FOUND (4):\n The provided Cloud Storage bucket doesn't\n exist.\n TOO_MANY_OBJECTS (5):\n The Cloud Storage bucket has too many\n objects, ingestion will be paused.\n\n### TextFormat\n\n TextFormat(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nConfiguration for reading Cloud Storage data in text format. Each\nline of text as specified by the delimiter will be set to the\n`data` field of a Pub/Sub message.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]