Google Cloud Secure Source Manager V1 Client - Class Code (1.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
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 \ PullRequestCommentMethods
__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 |
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 |
Position|null |
|
hasPosition
clearPosition
setPosition
Optional. The position of the comment.
| Parameter | |
|---|---|
| Name | Description |
var |
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 |
|