Grafeas V1 Client - Class CloudRepoSourceContext (1.1.1)

Reference documentation and code samples for the Grafeas V1 Client class CloudRepoSourceContext.

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Generated from protobuf message grafeas.v1.CloudRepoSourceContext

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ repo_id RepoId

The ID of the repo.

↳ revision_id string

A revision ID.

↳ alias_context AliasContext

An alias, which may be a branch or tag.

getRepoId

The ID of the repo.

Returns
Type Description
RepoId|null

hasRepoId

clearRepoId

setRepoId

The ID of the repo.

Parameter
Name Description
var RepoId
Returns
Type Description
$this

getRevisionId

A revision ID.

Returns
Type Description
string

hasRevisionId

setRevisionId

A revision ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getAliasContext

An alias, which may be a branch or tag.

Returns
Type Description
AliasContext|null

hasAliasContext

setAliasContext

An alias, which may be a branch or tag.

Parameter
Name Description
var AliasContext
Returns
Type Description
$this

getRevision

Returns
Type Description
string