Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class Position.
The position of the code comment.
Generated from protobuf message google.cloud.securesourcemanager.v1.PullRequestComment.Position
Namespace
Google \ Cloud \ SecureSourceManager \ V1 \ PullRequestCommentMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ path | stringRequired. The path of the file. | 
| ↳ line | int|stringRequired. The line number of the comment. Positive value means it's on the new side of the diff, negative value means it's on the old side. | 
getPath
Required. The path of the file.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setPath
Required. The path of the file.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getLine
Required. The line number of the comment. Positive value means it's on the new side of the diff, negative value means it's on the old side.
| Returns | |
|---|---|
| Type | Description | 
| int|string | |
setLine
Required. The line number of the comment. Positive value means it's on the new side of the diff, negative value means it's on the old side.
| Parameter | |
|---|---|
| Name | Description | 
| var | int|string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |