Note: The following fields are mutually exclusive: alias_context, revision_id. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: alias_context, revision_id. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: alias_context, revision_id. If a field in that set is populated, all other fields in the set will automatically be cleared.
#gerrit_project
defgerrit_project()->::String
Returns
(::String) — The full project name within the host. Projects may be nested, so
"project/subproject" is a valid project name. The "repo name" is the
hostURI/project.
#gerrit_project=
defgerrit_project=(value)->::String
Parameter
value (::String) — The full project name within the host. Projects may be nested, so
"project/subproject" is a valid project name. The "repo name" is the
hostURI/project.
Returns
(::String) — The full project name within the host. Projects may be nested, so
"project/subproject" is a valid project name. The "repo name" is the
hostURI/project.
#host_uri
defhost_uri()->::String
Returns
(::String) — The URI of a running Gerrit instance.
#host_uri=
defhost_uri=(value)->::String
Parameter
value (::String) — The URI of a running Gerrit instance.
Returns
(::String) — The URI of a running Gerrit instance.
#revision_id
defrevision_id()->::String
Returns
(::String) — A revision (commit) ID.
Note: The following fields are mutually exclusive: revision_id, alias_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#revision_id=
defrevision_id=(value)->::String
Parameter
value (::String) — A revision (commit) ID.
Note: The following fields are mutually exclusive: revision_id, alias_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — A revision (commit) ID.
Note: The following fields are mutually exclusive: revision_id, alias_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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-09-04 UTC."],[],[],null,["# Grafeas V1 API - Class Grafeas::V1::GerritSourceContext (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-GerritSourceContext)\n- [1.3.1](/ruby/docs/reference/grafeas-v1/1.3.1/Grafeas-V1-GerritSourceContext)\n- [1.2.0](/ruby/docs/reference/grafeas-v1/1.2.0/Grafeas-V1-GerritSourceContext)\n- [1.1.1](/ruby/docs/reference/grafeas-v1/1.1.1/Grafeas-V1-GerritSourceContext)\n- [1.0.0](/ruby/docs/reference/grafeas-v1/1.0.0/Grafeas-V1-GerritSourceContext)\n- [0.16.1](/ruby/docs/reference/grafeas-v1/0.16.1/Grafeas-V1-GerritSourceContext)\n- [0.15.0](/ruby/docs/reference/grafeas-v1/0.15.0/Grafeas-V1-GerritSourceContext)\n- [0.14.2](/ruby/docs/reference/grafeas-v1/0.14.2/Grafeas-V1-GerritSourceContext)\n- [0.13.0](/ruby/docs/reference/grafeas-v1/0.13.0/Grafeas-V1-GerritSourceContext)\n- [0.12.1](/ruby/docs/reference/grafeas-v1/0.12.1/Grafeas-V1-GerritSourceContext)\n- [0.11.0](/ruby/docs/reference/grafeas-v1/0.11.0/Grafeas-V1-GerritSourceContext)\n- [0.10.0](/ruby/docs/reference/grafeas-v1/0.10.0/Grafeas-V1-GerritSourceContext)\n- [0.9.0](/ruby/docs/reference/grafeas-v1/0.9.0/Grafeas-V1-GerritSourceContext)\n- [0.8.0](/ruby/docs/reference/grafeas-v1/0.8.0/Grafeas-V1-GerritSourceContext)\n- [0.7.0](/ruby/docs/reference/grafeas-v1/0.7.0/Grafeas-V1-GerritSourceContext)\n- [0.6.1](/ruby/docs/reference/grafeas-v1/0.6.1/Grafeas-V1-GerritSourceContext)\n- [0.5.0](/ruby/docs/reference/grafeas-v1/0.5.0/Grafeas-V1-GerritSourceContext)\n- [0.4.0](/ruby/docs/reference/grafeas-v1/0.4.0/Grafeas-V1-GerritSourceContext)\n- [0.3.1](/ruby/docs/reference/grafeas-v1/0.3.1/Grafeas-V1-GerritSourceContext) \nReference documentation and code samples for the Grafeas V1 API class Grafeas::V1::GerritSourceContext.\n\nA SourceContext referring to a Gerrit project. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #alias_context\n\n def alias_context() -\u003e ::Grafeas::V1::AliasContext\n\n**Returns**\n\n- ([::Grafeas::V1::AliasContext](./Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.\n\n\n Note: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #alias_context=\n\n def alias_context=(value) -\u003e ::Grafeas::V1::AliasContext\n\n**Parameter**\n\n- **value** ([::Grafeas::V1::AliasContext](./Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.\n\n\nNote: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Grafeas::V1::AliasContext](./Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.\n\n\n Note: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #gerrit_project\n\n def gerrit_project() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project.\n\n### #gerrit_project=\n\n def gerrit_project=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project. \n**Returns**\n\n- (::String) --- The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project.\n\n### #host_uri\n\n def host_uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The URI of a running Gerrit instance.\n\n### #host_uri=\n\n def host_uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The URI of a running Gerrit instance. \n**Returns**\n\n- (::String) --- The URI of a running Gerrit instance.\n\n### #revision_id\n\n def revision_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A revision (commit) ID.\n\n Note: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #revision_id=\n\n def revision_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A revision (commit) ID.\n\n\nNote: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- A revision (commit) ID.\n\n Note: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]