Reference documentation and code samples for the Grafeas V1 Client class SourceContext.
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.
Generated from protobuf message grafeas.v1.SourceContext
Namespace
Grafeas \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ cloud_repo
↳ gerrit
↳ git
↳ labels
getCloudRepo
A SourceContext referring to a revision in a Google Cloud Source Repo.
hasCloudRepo
setCloudRepo
A SourceContext referring to a revision in a Google Cloud Source Repo.
$this
getGerrit
A SourceContext referring to a Gerrit project.
hasGerrit
setGerrit
A SourceContext referring to a Gerrit project.
$this
getGit
A SourceContext referring to any third party Git repo (e.g., GitHub).
hasGit
setGit
A SourceContext referring to any third party Git repo (e.g., GitHub).
$this
getLabels
Labels with user defined metadata.
setLabels
Labels with user defined metadata.
$this
getContext
string