Common Protos for Google Cloud APIs V1 Client - Class GerritSourceContext (0.3.8)

Reference documentation and code samples for the Common Protos for Google Cloud APIs V1 Client class GerritSourceContext.

A SourceContext referring to a Gerrit project.

Generated from protobuf message google.devtools.source.v1.GerritSourceContext

Methods

__construct

Constructor.

Parameters
NameDescription
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 hostURI/project.

↳ revision_id string

A revision (commit) ID.

↳ alias_name string

The name of an alias (branch, tag, etc.).

↳ alias_context Google\Cloud\DevTools\Source\V1\AliasContext

An alias, which may be a branch or tag.

getHostUri

The URI of a running Gerrit instance.

Returns
TypeDescription
string

setHostUri

The URI of a running Gerrit instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGerritProject

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.

Returns
TypeDescription
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 hostURI/project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRevisionId

A revision (commit) ID.

Returns
TypeDescription
string

hasRevisionId

setRevisionId

A revision (commit) ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAliasName

The name of an alias (branch, tag, etc.).

Returns
TypeDescription
string

hasAliasName

setAliasName

The name of an alias (branch, tag, etc.).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAliasContext

An alias, which may be a branch or tag.

Returns
TypeDescription
Google\Cloud\DevTools\Source\V1\AliasContext|null

hasAliasContext

setAliasContext

An alias, which may be a branch or tag.

Parameter
NameDescription
var Google\Cloud\DevTools\Source\V1\AliasContext
Returns
TypeDescription
$this

getRevision

Returns
TypeDescription
string