# Google Cloud Secure Source Manager V1 Client - Class Code (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 Code.

The comment on a code line.

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

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1 \\ PullRequestComment

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ body` | `string` Required. The comment body. |
| `↳ reply` | `string` Optional. Input only. The PullRequestComment resource name that this comment is replying to. |
| `↳ position` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequestComment.Position` Optional. The position of the comment. |
| `↳ effective_root_comment` | `string` Output only. The root comment of the conversation, derived from the reply field. |
| `↳ resolved` | `bool` Output only. Boolean indicator if the comment is resolved. |
| `↳ effective_commit_sha` | `string` Output only. The effective commit sha this code comment is pointing to. |

### getBody

Required. The comment body.

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

### setBody

Required. The comment body.

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

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

### getReply

Optional. Input only. The PullRequestComment resource name that this
comment is replying to.

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

### setReply

Optional. Input only. The PullRequestComment resource name that this
comment is replying to.

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

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

### getPosition

Optional. The position of the comment.

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

### hasPosition

### clearPosition

### setPosition

Optional. The position of the comment.

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

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

### getEffectiveRootComment

Output only. The root comment of the conversation, derived from the reply
field.

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

### setEffectiveRootComment

Output only. The root comment of the conversation, derived from the reply
field.

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

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

### getResolved

Output only. Boolean indicator if the comment is resolved.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setResolved

Output only. Boolean indicator if the comment is resolved.

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

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

### getEffectiveCommitSha

Output only. The effective commit sha this code comment is pointing to.

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

### setEffectiveCommitSha

Output only. The effective commit sha this code comment is pointing to.

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

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