Google Cloud Design Center V1 Client - Class GitReference (0.1.0)

Reference documentation and code samples for the Google Cloud Design Center V1 Client class GitReference.

The Git reference. Can be a commit SHA, branch name, or tag name.

Generated from protobuf message google.cloud.designcenter.v1.GitReference

Namespace

Google \ Cloud \ DesignCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ branch string

Optional. The name of the branch from which content should be read. For example: "main"

↳ ref_tag string

Optional. The reference tag from which content should be read. For example: "v1.2.3"

↳ commit_sha string

Optional. The full SHA hash of a specific commit from which content should be read.

getBranch

Optional. The name of the branch from which content should be read.

For example: "main"

Returns
Type Description
string

hasBranch

setBranch

Optional. The name of the branch from which content should be read.

For example: "main"

Parameter
Name Description
var string
Returns
Type Description
$this

getRefTag

Optional. The reference tag from which content should be read.

For example: "v1.2.3"

Returns
Type Description
string

hasRefTag

setRefTag

Optional. The reference tag from which content should be read.

For example: "v1.2.3"

Parameter
Name Description
var string
Returns
Type Description
$this

getCommitSha

Optional. The full SHA hash of a specific commit from which content should be read.

Returns
Type Description
string

hasCommitSha

setCommitSha

Optional. The full SHA hash of a specific commit from which content should be read.

Parameter
Name Description
var string
Returns
Type Description
$this

getReference

Returns
Type Description
string