Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class SCMCommit.
SCMCommit represents commit metadata.
Generated from protobuf message google.cloud.developerconnect.v1.SCMCommit
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ sha |
string
Full 40-character SCM commit SHA. |
↳ message |
string
Commit message text. |
↳ author |
string
The author's display name. |
↳ author_email |
string
The author's email address. |
↳ commit_time |
Google\Protobuf\Timestamp
Timestamp when the commit was authored. |
↳ url |
string
The SCM provider's HTML URL link for this commit. |
getSha
Full 40-character SCM commit SHA.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSha
Full 40-character SCM commit SHA.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMessage
Commit message text.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMessage
Commit message text.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthor
The author's display name.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAuthor
The author's display name.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthorEmail
The author's email address.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAuthorEmail
The author's email address.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommitTime
Timestamp when the commit was authored.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCommitTime
clearCommitTime
setCommitTime
Timestamp when the commit was authored.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUrl
The SCM provider's HTML URL link for this commit.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUrl
The SCM provider's HTML URL link for this commit.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|