# Class Code (0.6.0)

0.6.0 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.17

    Code(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The comment on a code line.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `body` | `str` Required. The comment body. |
| `reply` | `str` Optional. Input only. The PullRequestComment resource name that this comment is replying to. |
| `position` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.PullRequestComment.Position` Optional. The position of the comment. |
| `effective_root_comment` | `str` 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` | `str` Output only. The effective commit sha this code comment is pointing to. |