Common Protos for Google Cloud APIs V1 Client - Class CloudRepoSourceContext (0.4.2)

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

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

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

Namespace

Google \ Cloud \ DevTools \ Source \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repo_id Google\Cloud\DevTools\Source\V1\RepoId

The ID of the repo.

↳ revision_id string

A revision 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.

getRepoId

The ID of the repo.

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

hasRepoId

clearRepoId

setRepoId

The ID of the repo.

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

getRevisionId

A revision ID.

Returns
TypeDescription
string

hasRevisionId

setRevisionId

A revision 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