Reference documentation and code samples for the Common Protos for Google Cloud APIs 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 google.devtools.source.v1.SourceContext
Namespace
Google \ Cloud \ DevTools \ Source \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ cloud_repo |
CloudRepoSourceContext
A SourceContext referring to a revision in a cloud repo. |
↳ cloud_workspace |
CloudWorkspaceSourceContext
A SourceContext referring to a snapshot in a cloud workspace. |
↳ gerrit |
GerritSourceContext
A SourceContext referring to a Gerrit project. |
↳ git |
GitSourceContext
A SourceContext referring to any third party Git repo (e.g. GitHub). |
getCloudRepo
A SourceContext referring to a revision in a cloud repo.
| Returns | |
|---|---|
| Type | Description |
CloudRepoSourceContext|null |
|
hasCloudRepo
setCloudRepo
A SourceContext referring to a revision in a cloud repo.
| Parameter | |
|---|---|
| Name | Description |
var |
CloudRepoSourceContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCloudWorkspace
A SourceContext referring to a snapshot in a cloud workspace.
| Returns | |
|---|---|
| Type | Description |
CloudWorkspaceSourceContext|null |
|
hasCloudWorkspace
setCloudWorkspace
A SourceContext referring to a snapshot in a cloud workspace.
| Parameter | |
|---|---|
| Name | Description |
var |
CloudWorkspaceSourceContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGerrit
A SourceContext referring to a Gerrit project.
| Returns | |
|---|---|
| Type | Description |
GerritSourceContext|null |
|
hasGerrit
setGerrit
A SourceContext referring to a Gerrit project.
| Parameter | |
|---|---|
| Name | Description |
var |
GerritSourceContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGit
A SourceContext referring to any third party Git repo (e.g. GitHub).
| Returns | |
|---|---|
| Type | Description |
GitSourceContext|null |
|
hasGit
setGit
A SourceContext referring to any third party Git repo (e.g. GitHub).
| Parameter | |
|---|---|
| Name | Description |
var |
GitSourceContext
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContext
| Returns | |
|---|---|
| Type | Description |
string |
|