Reference documentation and code samples for the Grafeas V1 Client class GerritSourceContext.
A SourceContext referring to a Gerrit project.
Generated from protobuf messagegrafeas.v1.GerritSourceContext
Namespace
Grafeas \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ host_uri
string
The URI of a running Gerrit instance.
↳ gerrit_project
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.
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
Type
Description
string
setGerritProject
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.
[[["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-09 UTC."],[],[],null,["# Grafeas V1 Client - Class GerritSourceContext (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.GerritSourceContext)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.GerritSourceContext)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.GerritSourceContext)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.GerritSourceContext)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.GerritSourceContext)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.GerritSourceContext)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.GerritSourceContext)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.GerritSourceContext)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.GerritSourceContext)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.GerritSourceContext)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.GerritSourceContext) \nReference documentation and code samples for the Grafeas V1 Client class GerritSourceContext.\n\nA SourceContext referring to a Gerrit project.\n\nGenerated from protobuf message `grafeas.v1.GerritSourceContext`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostUri\n\nThe URI of a running Gerrit instance.\n\n### setHostUri\n\nThe URI of a running Gerrit instance.\n\n### getGerritProject\n\nThe full project name within the host. Projects may be nested, so\n\"project/subproject\" is a valid project name. The \"repo name\" is the\nhostURI/project.\n\n### setGerritProject\n\nThe full project name within the host. Projects may be nested, so\n\"project/subproject\" is a valid project name. The \"repo name\" is the\nhostURI/project.\n\n### getRevisionId\n\nA revision (commit) ID.\n\n### hasRevisionId\n\n### setRevisionId\n\nA revision (commit) ID.\n\n### getAliasContext\n\nAn alias, which may be a branch or tag.\n\n### hasAliasContext\n\n### setAliasContext\n\nAn alias, which may be a branch or tag.\n\n### getRevision"]]