# Class SourceContext (1.11.0)

1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.5 1.4.2 1.3.0 1.2.8 1.1.0 1.0.0 0.1.4

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

A SourceContext is a reference to a tree of files. A
SourceContext together with a path point to a unique revision of
a single file or directory.

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** |
| `cloud_repo` | `https://docs.cloud.google.com/python/docs/reference/source/latest/google.cloud.source_context_v1.types.CloudRepoSourceContext` A SourceContext referring to a revision in a cloud repo. This field is a member of `oneof`_ `context`. |
| `cloud_workspace` | `https://docs.cloud.google.com/python/docs/reference/source/latest/google.cloud.source_context_v1.types.CloudWorkspaceSourceContext` A SourceContext referring to a snapshot in a cloud workspace. This field is a member of `oneof`_ `context`. |
| `gerrit` | `https://docs.cloud.google.com/python/docs/reference/source/latest/google.cloud.source_context_v1.types.GerritSourceContext` A SourceContext referring to a Gerrit project. This field is a member of `oneof`_ `context`. |
| `git` | `https://docs.cloud.google.com/python/docs/reference/source/latest/google.cloud.source_context_v1.types.GitSourceContext` A SourceContext referring to any third party Git repo (e.g. GitHub). This field is a member of `oneof`_ `context`. |