# Class SourceSpec (0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.15 0.10.0 0.9.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.3 0.3.1 0.2.1 0.1.0

    SourceSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents one path to the location that holds source data.

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.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `base_uri` | `str` The base URI for all files to be read in as sources for translation. This field is a member of `oneof`_ `source`. |
| `literal` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2.types.Literal` Source literal. This field is a member of `oneof`_ `source`. |
| `gcs_file_path` | `str` The path to a single source file in Cloud Storage. This field is a member of `oneof`_ `source`. |
| `encoding` | `str` Optional. The optional field to specify the encoding of the sql bytes. |