Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class PullRequestComment.
Message representing a SCM Pull Request Comment.
Generated from protobuf message google.cloud.developerconnect.v1.PullRequestComment
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
Output only. The ID of the comment. |
↳ body |
string
Required. The body of the comment. |
↳ author |
string
Output only. The username of the author. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. When the comment was created. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. When the comment was updated. |
getId
Output only. The ID of the comment.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
Output only. The ID of the comment.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBody
Required. The body of the comment.
| Returns | |
|---|---|
| Type | Description |
string |
|
setBody
Required. The body of the comment.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthor
Output only. The username of the author.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAuthor
Output only. The username of the author.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. When the comment was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. When the comment was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. When the comment was updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. When the comment was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|