# Class GerritSourceContext (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

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

A SourceContext referring to a Gerrit project.

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** |
| `host_uri` | `str` The URI of a running Gerrit instance. |
| `gerrit_project` | `str` The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project. |
| `revision_id` | `str` A revision (commit) ID. This field is a member of `oneof`_ `revision`. |
| `alias_name` | `str` The name of an alias (branch, tag, etc.). This field is a member of `oneof`_ `revision`. |
| `alias_context` | `https://docs.cloud.google.com/python/docs/reference/source/latest/google.cloud.source_context_v1.types.AliasContext` An alias, which may be a branch or tag. This field is a member of `oneof`_ `revision`. |