class SourceContext extends Message

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 google.devtools.source.v1.SourceContext

Properties

protected $context

Methods

__construct()

No description

getCloudRepo()

A SourceContext referring to a revision in a cloud repo.

$this
setCloudRepo(CloudRepoSourceContext $var)

A SourceContext referring to a revision in a cloud repo.

getCloudWorkspace()

A SourceContext referring to a snapshot in a cloud workspace.

$this
setCloudWorkspace(CloudWorkspaceSourceContext $var)

A SourceContext referring to a snapshot in a cloud workspace.

getGerrit()

A SourceContext referring to a Gerrit project.

$this
setGerrit(GerritSourceContext $var)

A SourceContext referring to a Gerrit project.

getGit()

A SourceContext referring to any third party Git repo (e.g. GitHub).

$this
setGit(GitSourceContext $var)

A SourceContext referring to any third party Git repo (e.g. GitHub).

string
getContext()

No description

Details

at line 21
__construct()

at line 32
CloudRepoSourceContext getCloudRepo()

A SourceContext referring to a revision in a cloud repo.

Generated from protobuf field .google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;

Return Value

CloudRepoSourceContext

at line 44
$this setCloudRepo(CloudRepoSourceContext $var)

A SourceContext referring to a revision in a cloud repo.

Generated from protobuf field .google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1;

Parameters

CloudRepoSourceContext $var

Return Value

$this

at line 58
CloudWorkspaceSourceContext getCloudWorkspace()

A SourceContext referring to a snapshot in a cloud workspace.

Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;

at line 70
$this setCloudWorkspace(CloudWorkspaceSourceContext $var)

A SourceContext referring to a snapshot in a cloud workspace.

Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2;

Parameters

CloudWorkspaceSourceContext $var

Return Value

$this

at line 84
GerritSourceContext getGerrit()

A SourceContext referring to a Gerrit project.

Generated from protobuf field .google.devtools.source.v1.GerritSourceContext gerrit = 3;

Return Value

GerritSourceContext

at line 96
$this setGerrit(GerritSourceContext $var)

A SourceContext referring to a Gerrit project.

Generated from protobuf field .google.devtools.source.v1.GerritSourceContext gerrit = 3;

Parameters

GerritSourceContext $var

Return Value

$this

at line 110
GitSourceContext getGit()

A SourceContext referring to any third party Git repo (e.g. GitHub).

Generated from protobuf field .google.devtools.source.v1.GitSourceContext git = 6;

Return Value

GitSourceContext

at line 122
$this setGit(GitSourceContext $var)

A SourceContext referring to any third party Git repo (e.g. GitHub).

Generated from protobuf field .google.devtools.source.v1.GitSourceContext git = 6;

Parameters

GitSourceContext $var

Return Value

$this

at line 133
string getContext()

Return Value

string