# Google Cloud Secure Source Manager V1 Client - Class PullRequestComment (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class PullRequestComment.

PullRequestComment represents a comment on a pull request.

Generated from protobuf message `google.cloud.securesourcemanager.v1.PullRequestComment`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Creation timestamp. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Last updated timestamp. |
| `↳ review` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Review` Optional. The review summary comment. |
| `↳ comment` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Comment` Optional. The general pull request comment. |
| `↳ code` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Code` Optional. The comment on a code line. |

### getName

Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. Unique identifier for the pull request comment. The comment id
is generated by the server. Format:
`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Creation timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. Last updated timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last updated timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReview

Optional. The review summary comment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Review|null` |   |

### hasReview

### setReview

Optional. The review summary comment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Review` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getComment

Optional. The general pull request comment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Comment|null` |   |

### hasComment

### setComment

Optional. The general pull request comment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Comment` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCode

Optional. The comment on a code line.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Code|null` |   |

### hasCode

### setCode

Optional. The comment on a code line.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Code` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCommentDetail

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |