Reference documentation and code samples for the Stackdriver Debugger Client class GerritSourceContext.
A SourceContext referring to a Gerrit project.
Example:
use Google\Cloud\Debugger\AliasContext;
use Google\Cloud\Debugger\GerritSourceContext;
$sourceContext = new GerritSourceContext(
'host-uri',
'gerrit-project',
'revision-id',
new AliasContext(AliasContext::KIND_FIXED, 'branch-alias')
);
Methods
__construct
Instantiate a new GerritSourceContext.
Parameters
Name
Description
hostUri
string
The URI of a running Gerrit instance.
gerritProject
string
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.
[[["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,[]]